.ap-integrations-refresh {
    --ap-ir-blue: #107edb;
    --ap-ir-light-blue: #22a7f0;
    --ap-ir-navy: #1a2638;
    --ap-ir-navy-2: #22354a;
    --ap-ir-pale: #f3f9fd;
    --ap-ir-soft: #f6f7fa;
    --ap-ir-border: #d0d2d6;
    --ap-ir-muted: #aaa;
    --ap-ir-white: #fff;
    color: var(--ap-ir-navy);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
}

.ap-integrations-refresh *,
.ap-integrations-refresh *::before,
.ap-integrations-refresh *::after { box-sizing: border-box; }

.ap-integrations-refresh__container {
    width: min(1198.764px, calc(100% - 48px));
    margin: 0 auto;
}

/* Shared typography */
.ap-integrations-refresh__eyebrow {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ap-integrations-refresh__eyebrow--blue { color: var(--ap-ir-blue); }

.ap-integrations-refresh__section-title {
    margin: 0;
    color: var(--ap-ir-navy);
    font-size: 42px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: 0;
}

.ap-integrations-refresh__section-heading--center {
    text-align: center;
}

.ap-integrations-refresh__section-heading--center .ap-integrations-refresh__eyebrow { margin-bottom: 8px; }

/* Shared buttons */
.ap-integrations-refresh__button {
    width: 169px;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}
.ap-integrations-refresh__button:hover { text-decoration: none; }
.ap-integrations-refresh__button--white { background: #fff; color: var(--ap-ir-blue); }
.ap-integrations-refresh__button--outline-white { border-color: #fff; background: transparent; color: #fff; }
.ap-integrations-refresh__button--blue { background: linear-gradient(90deg, var(--ap-ir-light-blue), var(--ap-ir-blue)); color: #fff; }
.ap-integrations-refresh__button--outline-blue { border: 2px solid var(--ap-ir-blue); background: transparent; color: var(--ap-ir-blue); }

/* Hero: Figma 3974:18410 / 3974:18413 */
.ap-integrations-refresh__hero {
    position: relative;
    height: 564px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--ap-ir-light-blue) 0%, var(--ap-ir-blue) 100%);
    color: #fff;
}

.ap-integrations-refresh__hero-inner {
    position: relative;
    height: 100%;
}

.ap-integrations-refresh__hero-content {
    position: absolute;
    z-index: 2;
    top: 129px;
    left: 0;
    width: 559px;
}

.ap-integrations-refresh__hero .ap-integrations-refresh__eyebrow { color: #fff; margin-bottom: 8px; }

.ap-integrations-refresh__hero-title {
    width: 559px;
    margin: 0;
    color: #fff;
    font-size: 42px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: 0;
}

.ap-integrations-refresh__hero-copy {
    width: 559px;
    margin: 23px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: normal;
    font-weight: 400;
}

.ap-integrations-refresh__hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.ap-integrations-refresh__hero-visual {
    position: absolute;
    z-index: 1;
    top: 35px;
    right: -80px;
    width: 748px;
    height: 518px;
    background-image: var(--ap-integrations-hero-image, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* Filters: white bridge between hero and results */
.ap-integrations-refresh__filter-section {
    background: #fff;
    padding: 94px 0 77px;
}

.ap-integrations-refresh__filters { margin: 0; }

.ap-integrations-refresh__filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ap-integrations-refresh__search-wrap {
    position: relative;
    flex: 0 0 698px;
    width: 698px;
}

.ap-integrations-refresh__search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}
.ap-integrations-refresh__search-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--ap-ir-navy-2);
    border-radius: 50%;
}
.ap-integrations-refresh__search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    left: 11px;
    top: 13px;
    background: var(--ap-ir-navy-2);
    transform: rotate(45deg);
    transform-origin: left center;
}

.ap-integrations-refresh__search {
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 4px 16px 4px 42px;
    border: 1px solid #dde1e6;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: var(--ap-ir-navy-2);
    font: 400 16px/20px "Plus Jakarta Sans", sans-serif;
    box-shadow: none;
}
.ap-integrations-refresh__search::placeholder { color: var(--ap-ir-muted); opacity: 1; }
.ap-integrations-refresh__search:focus { border-color: var(--ap-ir-blue); }

.ap-integrations-refresh__type-filters {
    flex: 0 0 488px;
    width: 488px;
    height: 46px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 0;
    padding: 3px;
    border: 0;
    border-radius: 25px;
    background: #ebedf2;
}

.ap-integrations-refresh__type-button {
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 5px 10px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #6e7174;
    font: 600 15px/30px "Plus Jakarta Sans", sans-serif;
    text-align: center;
    cursor: pointer;
}
.ap-integrations-refresh__type-button.is-active {
    background: #fff;
    color: var(--ap-ir-navy);
    box-shadow: 0 0 8px 0 var(--ap-ir-blue);
}

.ap-integrations-refresh__category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 17px 10px;
    margin-top: 43px;
}

.ap-integrations-refresh__category-button {
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--ap-ir-muted);
    border-radius: 20px;
    background: #fff;
    color: var(--ap-ir-muted);
    font: 600 14px/15.4px "Plus Jakarta Sans", sans-serif;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}
.ap-integrations-refresh__category-button.is-active {
    border-color: var(--ap-ir-blue);
    background: #fff;
    color: var(--ap-ir-blue);
}

/* Results */
.ap-integrations-refresh__directory {
    background: var(--ap-ir-pale);
    padding: 145px 0 170px;
}

.ap-integrations-refresh__results-header {
    margin: 0 0 38px;
}

.ap-integrations-refresh__results-title {
    margin: 0;
    color: var(--ap-ir-navy);
    font-size: 42px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: lowercase;
}
.ap-integrations-refresh__results-title::first-letter { text-transform: uppercase; }
.ap-integrations-refresh__results-title span { color: var(--ap-ir-light-blue); }

.ap-integrations-refresh__results-meta {
    margin-top: 15px;
    color: var(--ap-ir-navy-2);
    font-size: 18px;
    line-height: normal;
    font-weight: 400;
}

.ap-integrations-refresh__grid,
.ap-integrations-refresh__generic-grid,
.ap-isr-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 366.764px));
    column-gap: 49px;
    row-gap: 59px;
    justify-content: space-between;
}

/* Figma integration card 366.764 x 218.312 */
.ap-integrations-refresh-card {
    position: relative;
    width: 100%;
    height: 218.312px;
    min-height: 218.312px;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ap-ir-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ap-ir-navy-2);
    text-decoration: none;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ap-integrations-refresh-card:hover {
    border-color: var(--ap-ir-blue);
    box-shadow: 0 0 8px rgba(16,126,219,.16);
    color: var(--ap-ir-navy-2);
    text-decoration: none;
}
.ap-integrations-refresh-card[hidden] { display: none !important; }

.ap-integrations-refresh-card__top { display: block; }

.ap-integrations-refresh-card__heading {
    position: absolute;
    top: 32px;
    left: 26px;
    right: 25px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ap-integrations-refresh-card__logo-wrap {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    display: grid;
    place-items: center;
}
.ap-integrations-refresh-card__logo {
    max-width: 55px;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ap-integrations-refresh-card__heading > div:last-child {
    min-width: 0;
    flex: 1 1 0;
}
.ap-integrations-refresh-card__title {
    margin: 0;
    padding: 2px 0;
    color: var(--ap-ir-navy);
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    overflow: visible;
    text-overflow: clip;
}
.ap-integrations-refresh-card__subtitle { display: none; }

.ap-integrations-refresh-card__type {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 25px;
    min-width: 105px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: .2px solid var(--ap-ir-light-blue);
    border-radius: 15px;
    background: var(--ap-ir-pale);
    color: var(--ap-ir-blue);
    font-size: 10px;
    line-height: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ap-integrations-refresh-card__description {
    position: absolute;
    top: 92px;
    left: 26px;
    right: 25px;
    max-height: 59px;
    margin: 0;
    overflow: hidden;
    color: var(--ap-ir-navy-2);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.ap-integrations-refresh-card__footer {
    position: absolute;
    left: 26px;
    right: 25px;
    bottom: 20px;
    height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding-top: 11px;
    border-top: 1px solid var(--ap-ir-border);
}

.ap-integrations-refresh-card__pricing {
    max-width: 220px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 16px;
    border-radius: 10px;
    background: var(--ap-ir-soft);
    white-space: nowrap;
}
.ap-integrations-refresh-card__pricing-title {
    color: var(--ap-ir-navy-2);
    font-size: 12px;
    line-height: 16.8px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-integrations-refresh-card__pricing-subtitle { display: none; }
.ap-integrations-refresh-card__arrow {
    width: 14px;
    height: 14px;
    overflow: hidden;
    color: var(--ap-ir-blue);
    font-size: 0;
    line-height: 0;
}
.ap-integrations-refresh-card__arrow::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin: 1px 0 0 1px;
    border-right: 1.5px solid var(--ap-ir-blue);
    border-bottom: 1.5px solid var(--ap-ir-blue);
    transform: rotate(-45deg);
}

.ap-integrations-refresh__empty { padding: 48px 0 0; text-align: center; }

/* Pagination rendered as the Figma dot control */
.ap-integrations-refresh__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}
.ap-integrations-refresh__pagination[hidden] { display: none !important; }
.ap-integrations-refresh__pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}
.ap-integrations-refresh__pagination-arrow { display: none; }
.ap-integrations-refresh__pagination-page {
    width: 14px;
    min-width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #d9d9d9;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}
.ap-integrations-refresh__pagination-page.is-active { background: var(--ap-ir-blue); }

/* Generic integrations */
.ap-integrations-refresh__generic {
    background: #fff;
    padding: 80px 0 118px;
}
.ap-integrations-refresh__generic .ap-integrations-refresh__section-title { text-align: center; }
.ap-integrations-refresh__generic-grid { margin-top: 64px; row-gap: 64px; }
.ap-integrations-refresh__static-dots {
    display: flex;
    justify-content: center;
    gap: 17px;
    margin-top: 64px;
}
.ap-integrations-refresh__static-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d9d9d9;
}
.ap-integrations-refresh__static-dots span.is-active { background: var(--ap-ir-blue); }

/* How it works */
.ap-integrations-refresh__how {
    background: #fff;
    padding: 74px 0 208px;
}
.ap-integrations-refresh__how-inner { width: min(1202px, calc(100% - 48px)); }
.ap-integrations-refresh__how .ap-integrations-refresh__section-title { text-align: center; }
.ap-integrations-refresh__steps {
    display: grid;
    grid-template-columns: repeat(4, 263px);
    justify-content: space-between;
    gap: 41px;
    margin-top: 56px;
}
.ap-integrations-refresh__step { text-align: center; }
.ap-integrations-refresh__step-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--ap-ir-blue);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}
.ap-integrations-refresh__step h3 {
    margin: 0 0 10px;
    color: var(--ap-ir-navy);
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}
.ap-integrations-refresh__step p {
    width: 225px;
    margin: 0 auto;
    color: var(--ap-ir-navy-2);
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
}

/* Closing CTA */
.ap-integrations-refresh__cta {
    min-height: 478px;
    display: flex;
    align-items: center;
    background: var(--ap-ir-pale);
    color: var(--ap-ir-navy);
    text-align: center;
}
.ap-integrations-refresh__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ap-integrations-refresh__cta-copy { width: 100%; }
.ap-integrations-refresh__cta .ap-integrations-refresh__section-title { text-align: center; }
.ap-integrations-refresh__cta-copy p {
    margin: 25px 0 0;
    color: #21272a;
    font-size: 18px;
    line-height: 1.4;
}
.ap-integrations-refresh__cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

@media (max-width: 1200px) {
    .ap-integrations-refresh__hero-visual { opacity: .36; right: -170px; }
    .ap-integrations-refresh__filter-row { align-items: stretch; flex-direction: column; }
    .ap-integrations-refresh__search-wrap,
    .ap-integrations-refresh__type-filters { width: 100%; flex-basis: auto; }
    .ap-integrations-refresh__grid,
    .ap-integrations-refresh__generic-grid,
    .ap-isr-related__grid { grid-template-columns: repeat(2, minmax(0, 366.764px)); justify-content: center; }
    .ap-integrations-refresh__steps { grid-template-columns: repeat(2, 263px); justify-content: center; row-gap: 60px; }
}

@media (max-width: 700px) {
    .ap-integrations-refresh__container { width: min(100% - 32px, 1198.764px); }
    .ap-integrations-refresh__hero { height: auto; min-height: 540px; }
    .ap-integrations-refresh__hero-content { position: relative; top: auto; left: auto; width: 100%; padding: 72px 0; }
    .ap-integrations-refresh__hero-title,
    .ap-integrations-refresh__section-title,
    .ap-integrations-refresh__results-title { width: auto; font-size: 34px; line-height: 1.2; }
    .ap-integrations-refresh__hero-copy { width: auto; }
    .ap-integrations-refresh__hero-visual { display: none; }
    .ap-integrations-refresh__hero-actions,
    .ap-integrations-refresh__cta-actions { flex-direction: column; }
    .ap-integrations-refresh__button { width: 100%; }
    .ap-integrations-refresh__filter-section { padding: 64px 0; }
    .ap-integrations-refresh__type-filters { height: auto; }
    .ap-integrations-refresh__category-filters { margin-top: 28px; gap: 10px; }
    .ap-integrations-refresh__directory { padding: 72px 0 90px; }
    .ap-integrations-refresh__grid,
    .ap-integrations-refresh__generic-grid,
    .ap-isr-related__grid { grid-template-columns: minmax(0, 366.764px); row-gap: 28px; }
    .ap-integrations-refresh__pagination { margin-top: 48px; }
    .ap-integrations-refresh__generic { padding: 64px 0 80px; }
    .ap-integrations-refresh__how { padding: 64px 0 100px; }
    .ap-integrations-refresh__steps { grid-template-columns: 1fr; gap: 48px; }
    .ap-integrations-refresh__cta { min-height: 420px; padding: 72px 0; }
}
