.compare-page {
    --compare-red: #ed2632;
    --compare-ink: #18191d;
    --compare-muted: #626a78;
    background: #fff;
    color: var(--compare-ink);
    padding-bottom: clamp(48px, 7vw, 88px);
}

.compare-page *,
.compare-page *::before,
.compare-page *::after { box-sizing: border-box; }

.compare-hero {
    position: relative;
    display: grid;
    min-height: 490px;
    margin: 0 calc((100% - 100vw) / 2);
    place-items: center;
    overflow: hidden;
    padding: 78px 28px 72px;
    isolation: isolate;
    background: #101114;
    color: #fff;
    text-align: center;
}

.compare-hero__art {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("../assets/portfolio/portfolio-hero-abstract.webp");
    background-position: center 47%;
    background-size: cover;
    opacity: .56;
    pointer-events: none;
}

.compare-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(10, 11, 13, .88), rgba(10, 11, 13, .72) 50%, rgba(10, 11, 13, .88)), linear-gradient(0deg, rgba(10, 11, 13, .24), rgba(10, 11, 13, .24));
    pointer-events: none;
}

.compare-hero__inner { position: relative; z-index: 1; width: min(100%, 920px); }

.compare-hero__eyebrow,
.compare-matrix__eyebrow,
.compare-cta__eyebrow {
    margin: 0 0 12px;
    font-family: Khand, sans-serif;
    font-size: 1.16rem;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: 1.1;
    text-transform: uppercase;
}

.compare-hero__eyebrow {
    margin-bottom: 6px;
    font-size: clamp(1.08rem, 1.5vw, 1.24rem);
    line-height: 1.22;
}

.compare-hero__eyebrow,
.compare-cta__eyebrow { color: #ff3b46; }

.compare-hero h1 {
    max-width: 860px;
    margin: 0 auto;
    color: #fff;
    font-family: Urbanist, Inter, sans-serif;
    font-size: clamp(2.3rem, 4.2vw, 3.45rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .99;
    text-transform: uppercase;
}

.compare-hero__title-accent { color: var(--compare-red); }

.compare-hero__description {
    max-width: 650px;
    margin: 11px auto 0;
    color: rgba(255,255,255,.78);
    font-size: 1.02rem;
    line-height: 1.52;
}

.compare-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.compare-hero__button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.compare-hero__button:hover { transform: translateY(-2px); }
.compare-hero__button--primary { background: var(--compare-red); color: #fff; }
.compare-hero__button--primary:hover { background: #d81f2b; }
.compare-hero__button--secondary { border-color: rgba(255, 255, 255, .28); background: transparent; color: #fff; }
.compare-hero__button--secondary:hover { background: rgba(255, 255, 255, .1); }

.compare-hero__breadcrumb {
    margin: 13px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(255,255,255,.72);
    font-size: .74rem;
    line-height: 1.3;
}
.compare-hero__breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.compare-hero__breadcrumb a:hover { color: #ff3b46; }

.compare-matrix {
    width: min(calc(100% - 42px), 1240px);
    margin: 0 auto;
    padding-top: clamp(42px, 6vw, 70px);
    scroll-margin-top: 105px;
}

.compare-matrix__heading {
    margin: 0 0 12px;
    text-align: center;
}

.compare-matrix__eyebrow { color: var(--compare-red); }

.compare-matrix__heading h2,
.compare-cta h2 {
    margin: 0;
    font-family: Urbanist, Inter, sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.compare-matrix__heading > p:last-child {
    margin: 11px auto 0;
    color: var(--compare-muted);
    line-height: 1.55;
}

.compare-carousel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: stretch;
    gap: 14px;
    padding-top: 21px;
}

.compare-carousel__viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
}

.compare-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.compare-page .comp-col-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    padding: 24px 18px 20px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 20, 28, .055);
}

.compare-carousel__arrow {
    position: relative;
    z-index: 1;
    grid-row: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    align-self: center;
    transform: translateY(-68px);
    padding: 0;
    border: 1.5px solid #ed2632;
    border-radius: 50%;
    background: #fff;
    color: #ed2632;
    box-shadow: 0 5px 16px rgba(237, 38, 50, .16);
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.compare-carousel__arrow.is-prev { grid-column: 1; }
.compare-carousel__arrow.is-next { grid-column: 3; }
.compare-carousel__arrow svg { width: 20px; height: 20px; fill: none; stroke: #ed2632; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.compare-carousel__arrow:hover:not(:disabled) { transform: translateY(-68px) scale(1.06); border-color: #ed2632; background: #fff1f2; color: #ed2632; }
.compare-carousel__arrow:disabled { cursor: default; opacity: 1; }
.compare-carousel__arrow:focus-visible { outline: 3px solid rgba(237, 38, 50, .28); outline-offset: 3px; }

.compare-carousel__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.compare-page .comp-col-featured {
    background: #fffafa;
    border-color: rgba(237, 38, 50, .42);
}

.compare-page .comp-col-header { margin-bottom: 10px; }
.compare-page .comp-card-meta { align-items: center; gap: 8px; margin-bottom: 13px; }
.compare-page .comp-card-num { font-size: 2.25rem; }
.compare-page .comp-meta-sep { color: #a5a8ae !important; }
.compare-page .comp-category-text { color: #707782 !important; font-size: .7rem; line-height: 1.25; }
.compare-page .comp-col-title { min-height: 2.5em; margin: 0 0 9px; font-size: 1.28rem; line-height: 1.15; }
.compare-page .comp-col-purpose { min-height: 82px; color: #626a78; font-size: .84rem; line-height: 1.48; }

.compare-page .comp-specs-list {
    gap: 10px;
    margin: 12px 0 17px;
    padding: 14px 0;
    border-color: #e7e8eb;
}

.compare-page .comp-spec-row { gap: 3px; }
.compare-page .spec-label { color: #747c87 !important; font-size: .68rem; letter-spacing: .045em; }
.compare-page .spec-value { margin: 0; color: #202228; font-size: .81rem; line-height: 1.4; }
.compare-page .comp-col-action .btn-block { min-height: 43px; padding: 10px 11px; font-size: .78rem; line-height: 1.25; }
.compare-page .comp-col-action .btn-outline { border-color: #d9dce1; color: #22242a; }
.compare-page .comp-col-action .btn-outline:hover { border-color: var(--compare-red); color: var(--compare-red); }
.compare-page .comp-featured-badge { right: 11px; font-size: .63rem; padding: 4px 9px; }

.compare-matrix__note {
    max-width: 900px;
    margin: 17px auto 0;
    color: #747c87;
    font-size: .8rem;
    line-height: 1.5;
    text-align: center;
}

.compare-cta {
    display: flex;
    width: min(calc(100% - 42px), 1240px);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: clamp(42px, 6vw, 72px) auto 0;
    padding: clamp(25px, 3.8vw, 42px);
    border-radius: 16px;
    background: #18191d;
    color: #fff;
}

.compare-cta__copy { max-width: 580px; }
.compare-cta__eyebrow { margin-bottom: 8px; }
.compare-cta h2 { color: #fff; font-size: clamp(2.1rem, 3.8vw, 3.15rem); }
.compare-cta__copy > p:last-child { margin: 10px 0 0; color: #c8cbd2; line-height: 1.55; }
.compare-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.compare-cta__button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 6px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.compare-cta__button--light { background: #fff; color: #18191d; }
.compare-cta__button--whatsapp { background: #118c58; color: #fff; }
.compare-cta__button--whatsapp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.compare-page a:focus-visible { outline: 3px solid #ff6871; outline-offset: 4px; }

@media (max-width: 1024px) {
    .compare-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 10px; }
    .compare-page .comp-col-card { flex-basis: calc((100% - 16px) / 2); }
    .compare-page .comp-col-title { min-height: 0; }
    .compare-page .comp-col-purpose { min-height: 60px; }
}

@media (max-width: 680px) {
    .compare-hero { min-height: 380px; padding: 24px 22px 28px; }
    .compare-hero__art { background-position: 53% center; opacity: .44; }
    .compare-hero::after { background: rgba(10, 11, 13, .72); }
    .compare-hero__desktop-break { display: none; }
    .compare-hero h1 { font-size: clamp(2rem, 8.4vw, 2.45rem); letter-spacing: -.06em; line-height: 1; }
    .compare-hero__description { max-width: 355px; margin-top: 8px; font-size: .95rem; line-height: 1.42; }
    .compare-hero__eyebrow { margin-bottom: 3px; font-size: 1.06rem; }
    .compare-hero__actions { flex-direction: row; align-items: center; justify-content: center; margin: 10px auto 0; max-width: none; gap: 8px; }
    .compare-hero__button { width: auto; min-height: 38px; padding: 0 12px; font-size: .78rem; }
    .compare-hero__breadcrumb { margin-top: 12px; font-size: .7rem; }
    .compare-matrix, .compare-cta { width: min(calc(100% - 30px), 480px); }
    .compare-matrix { padding-top: 43px; }
    .compare-carousel { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 7px; }
    .compare-carousel__track { gap: 12px; }
    .compare-carousel__arrow { width: 32px; height: 32px; }
    .compare-carousel__arrow svg { width: 16px; height: 16px; }
    .compare-page .comp-col-card { flex-basis: 100%; padding: 22px 19px 19px; }
    .compare-page .comp-col-title { min-height: 0; }
    .compare-page .comp-col-purpose { min-height: 0; }
    .compare-page .comp-spec-row { flex-direction: column !important; align-items: flex-start; gap: 3px; }
    .compare-page .spec-value { text-align: left !important; }
    .compare-page .comp-col-action .btn-block { font-size: .87rem; }
    .compare-cta { align-items: flex-start; flex-direction: column; }
    .compare-cta__actions { width: 100%; flex-direction: column; }
    .compare-cta__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .compare-page *, .compare-page *::before, .compare-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
