html:has(body.agency-public) {
    scroll-behavior: smooth;
}

body.agency-public {
    background: #f6f5f2;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
}

body.agency-public #app {
    background: #f6f5f2;
}

:root {
    --ap-nav-h: 76px;
}

body.agency-public main.agency-public-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
}

body.agency-public #backToTop {
    display: none !important;
}

body.agency-public h1,
body.agency-public h2,
body.agency-public p {
    margin-top: 0;
}

body.agency-public :is(h1, h2, h3, h4, h5, h6),
.ap-scope,
.ap-scope * {
    font-family: "Plus Jakarta Sans", sans-serif !important;
}

.ap-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.ap-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    height: var(--ap-nav-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.ap-nav.is-solid,
.ap-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: rgba(18, 20, 23, 0.06);
}

.ap-nav.is-scrolled {
    box-shadow: 0 10px 30px rgba(18, 20, 23, 0.06);
}

.ap-nav-inner {
    width: min(1120px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ap-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ap-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #121417 !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.ap-brand img {
    display: block;
    max-height: 36px;
    max-width: 168px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.ap-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.ap-link {
    color: #121417 !important;
    font-size: 0.94rem;
    font-weight: 500;
}

.ap-link:hover {
    color: var(--agency-brand-color, #121417) !important;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.ap-btn:hover {
    transform: translateY(-1px);
}

.ap-btn.is-disabled,
a.ap-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
}

.ap-btn:focus-visible {
    outline: 2px solid var(--agency-brand-color, #121417);
    outline-offset: 3px;
}

:is(body.agency-public, .ap-scope) a.ap-btn--fill {
    background: var(--agency-brand-color, #121417) !important;
    border-color: var(--agency-brand-color, #121417) !important;
    color: #fff !important;
}

:is(body.agency-public, .ap-scope) a.ap-btn--fill:hover {
    filter: brightness(0.92);
    color: #fff !important;
}

:is(body.agency-public, .ap-scope) a.ap-btn--line {
    background: transparent !important;
    border-color: rgba(18, 20, 23, 0.18) !important;
    color: #121417 !important;
}

:is(body.agency-public, .ap-scope) a.ap-btn--line:hover {
    border-color: var(--agency-brand-color, #121417) !important;
    color: #121417 !important;
}

.ap-banner {
    margin-top: calc(-1 * var(--ap-nav-h));
    padding: calc(var(--ap-nav-h) + 72px) 0 80px;
    background:
        radial-gradient(60% 80% at 85% 20%, color-mix(in srgb, var(--agency-brand-color, #121417) 12%, transparent) 0%, transparent 70%),
        #eef0f4;
}

.ap-banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.ap-banner-copy,
.ap-banner h1 {
    text-align: left;
}

.ap-banner h1 {
    max-width: 13em;
    margin: 0 0 22px !important;
    font-weight: 700;
    font-size: clamp(2.3rem, 4.4vw, 3.5rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #121417;
}

.ap-btn--lg {
    min-height: 50px;
    padding: 0 26px;
    font-size: 1rem;
}

.ap-banner .ap-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
    color: #5c6570;
    font-size: 0.92rem;
}

.ap-stars {
    display: inline-flex;
    gap: 2px;
    color: #f5b301;
}

.ap-banner-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #121417;
    box-shadow: 0 30px 70px rgba(18, 20, 23, 0.18), 0 0 0 1px rgba(18, 20, 23, 0.06);
    aspect-ratio: 16 / 10;
}

.ap-banner-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-trust {
    padding: 44px 0 40px;
    background: #fff;
    border-bottom: 1px solid rgba(18, 20, 23, 0.06);
    text-align: center;
}

.ap-logo-mask {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.ap-logo-track {
    display: flex;
    width: max-content;
    animation: ap-logo-scroll 36s linear infinite;
}

.ap-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 34px;
    padding: 0 22px;
}

.ap-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
}

@keyframes ap-logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ap-trust-count {
    margin: 26px 0 0;
    color: var(--agency-brand-color, #121417);
    font-size: 0.95rem;
    font-weight: 600;
}

.ap-feature-band {
    scroll-margin-top: 84px;
    padding: 88px 0;
    background: color-mix(in srgb, var(--agency-brand-color, #121417) 7%, #f6f5f2);
}

.ap-feature-head {
    max-width: 40rem;
    margin: 0 auto 40px;
    text-align: center;
}

.ap-feature-head h2 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.ap-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ap-feature-card {
    padding: 30px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 0 rgba(18, 20, 23, 0.04), 0 14px 34px rgba(18, 20, 23, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ap-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(18, 20, 23, 0.04), 0 22px 44px rgba(18, 20, 23, 0.09);
}

.ap-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    color: var(--agency-brand-color, #121417);
    background: color-mix(in srgb, var(--agency-brand-color, #121417) 12%, #fff);
}

.ap-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ap-feature-card p {
    margin: 0;
    color: #5c6570;
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .ap-logo-track {
        animation: none;
    }
}

.ap-kicker {
    margin: 0 0 18px;
    color: var(--agency-brand-color, #5c6570);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ap-lede {
    max-width: 38rem;
    margin: 0 0 32px;
    color: #3d4450;
    font-size: 1.12rem;
    line-height: 1.6;
}

.ap-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ap-pricing {
    scroll-margin-top: 84px;
    padding: 88px 0;
}

.ap-pricing h2,
.ap-close h2 {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.ap-section-copy {
    max-width: 36rem;
    margin: 0 0 36px;
    color: #5c6570;
    font-size: 1.05rem;
    line-height: 1.55;
}

.ap-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ap-plan {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 26px 24px;
    background: #fff;
    border: 1px solid rgba(18, 20, 23, 0.08);
    border-radius: 22px;
    box-shadow: 0 1px 0 rgba(18, 20, 23, 0.03);
}

.ap-plan.is-focus {
    border-color: var(--agency-brand-color, #121417);
    box-shadow: 0 22px 50px rgba(18, 20, 23, 0.07);
    transform: translateY(-8px);
}

.ap-plan h3 {
    margin: 0 0 18px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ap-price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0 0 16px;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ap-price-unit {
    margin-left: 4px;
    color: #5c6570;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
}

.ap-plan-desc {
    margin: 0 0 18px;
    color: #3d4450;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ap-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex-grow: 1;
}

.ap-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: #3d4450;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ap-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--agency-brand-color, #121417);
}

.ap-plan .ap-btn {
    width: 100%;
    margin-top: auto;
}

.ap-empty {
    margin: 0;
    color: #5c6570;
}

.ap-close {
    padding: 8px 0 88px;
}

.ap-close .ap-btn {
    margin-top: 8px;
}

.ap-foot {
    width: 100%;
    padding: 72px 28px 0;
    background: #101215;
    color: #c9ced6;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.ap-foot--slim {
    padding: 0 28px;
}

.ap-foot--slim .ap-foot-bottom {
    border-top: 0;
    padding-top: 28px;
}

.ap-foot-main {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 56px;
}

.ap-foot p {
    margin: 0;
}

.ap-foot-brand {
    margin: 0 0 12px !important;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ap-foot-tagline {
    max-width: 22rem;
    margin: 0 0 24px !important;
    color: #9aa1ab;
    font-size: 0.96rem;
    line-height: 1.6;
}

.ap-foot-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.ap-foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ap-foot-social a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.ap-foot-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.ap-foot-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ap-foot-heading {
    margin: 0 0 4px !important;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ap-foot-col a,
.ap-foot-col span {
    color: #9aa1ab !important;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.ap-foot-col a:hover,
.ap-foot-legal a:hover {
    color: #fff !important;
}

.ap-foot-bottom {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7b828c;
    font-size: 0.86rem;
}

.ap-foot-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ap-foot-legal a {
    color: #7b828c !important;
}

body:has(.ap-scope) .js-cookie-consent.cookie-consent {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 0;
    background: #121417;
    box-shadow: none;
    z-index: 70;
}

body:has(.ap-scope) .js-cookie-consent.cookie-consent ~ .js-cookie-consent {
    display: none !important;
}

body:has(.ap-scope) .js-cookie-consent .cookie-close {
    display: none;
}

body:has(.ap-scope) .js-cookie-consent.cookie-consent span,
body:has(.ap-scope) .js-cookie-consent.cookie-consent span p {
    margin: 0;
    color: #f6f5f2;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

body:has(.ap-scope) button.js-cookie-consent-agree.cookie-consent__agree {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--agency-brand-color, #f6f5f2);
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .ap-banner-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ap-banner h1 {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .ap-nav-links {
        display: none;
    }

    .ap-foot-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ap-foot-about {
        grid-column: 1 / -1;
    }

    .ap-feature-grid,
    .ap-plan-grid {
        grid-template-columns: 1fr;
    }

    .ap-plan.is-focus {
        transform: none;
    }

    .ap-banner {
        padding: calc(var(--ap-nav-h) + 40px) 0 56px;
    }

    .ap-feature-band,
    .ap-pricing {
        padding: 64px 0;
    }
}

@media (max-width: 640px) {
    .ap-wrap {
        width: min(1120px, calc(100% - 32px));
    }

    :root {
        --ap-nav-h: 64px;
    }

    .ap-nav-inner {
        width: calc(100% - 32px);
        gap: 12px;
    }

    .ap-brand img {
        max-height: 30px;
        max-width: 120px;
    }

    .ap-nav-actions {
        gap: 12px;
    }

    .ap-foot {
        padding: 56px 16px 0;
    }

    .ap-foot-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body:has(.ap-scope) .js-cookie-consent.cookie-consent {
        align-items: center;
        text-align: left;
    }

    body:has(.ap-scope) .js-cookie-consent.cookie-consent span {
        flex: 1;
    }
}
