/* ==========================================================================
   Compare pages (Packy vs. competitor)
   Shares the base look of style.css / new-style.css. Loaded only on
   /en/compare/* pages via a relative <link>.
   ========================================================================== */

/* ---------- Header nav (Tracking API / Carriers / Pricing + Sign Up / Sign In) ---------- */
.header {
    height: auto;
    min-height: 32px;
}

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

/* new-style.css / style.css space the links with margins — the gap replaces them */
.header .nav-mobile-links .link-tracking-api,
.header .nav-mobile-links .link-carriers {
    margin-left: 0;
}

.header .nav-mobile-links a.fw-5 {
    font-size: 15px;
    font-weight: 500;
    color: #131218;
}

.header .nav-mobile-links a.active {
    position: relative;
}

.header .nav-mobile-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 1px;
    background: #EC4A0A;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 26px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}

.header .nav-mobile-links .btn-sign-up {
    margin-left: 12px;
}

.btn-auth.btn-sign-up {
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    border: 1px solid #EC4A0A;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(236, 74, 10, 0.12);
}

.btn-auth.btn-sign-up:hover {
    opacity: 0.92;
}

.btn-auth.btn-sign-in {
    background: #ffffff;
    border: 1px solid #F1A375;
    color: #EC4A0A;
}

.btn-auth.btn-sign-in:hover {
    border-color: #EC4A0A;
}

/* ---------- Mobile menu (Sign Up / Sign In instead of store badges) ---------- */
/* selectors carry extra specificity to win over new-style.css, loaded after this file */
#block-mob-menu div.wrap-menu ul {
    font-size: 18px;
}

#block-mob-menu div.wrap-menu ul li + li {
    margin-top: 28px;
}

#block-mob-menu div.wrap-menu a img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

#block-mob-menu div.btns-text {
    font-size: 14px;
}

#block-mob-menu .wrap-btns .btn-auth {
    flex: 1 1 0;
    padding: 13px 16px;
}

/* ---------- Hero ---------- */
.compare-hero {
    position: relative;
    z-index: 10;
    margin-top: -275px;
    padding-bottom: 8px;
}

.compare-hero-inner {
    max-width: 896px;
    margin: 0 auto;
    text-align: left;
    padding-top: 40px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Left column: copy + form; right column: the vs-logos visual */
.compare-hero-copy {
    flex: 1 1 0;
    min-width: 0;
}

.compare-hero-copy .hero-kicker,
.compare-hero-copy h1,
.compare-hero-copy .hero-lead,
.compare-hero-copy .email-capture {
    margin-left: 0;
    margin-right: 0;
}

.compare-hero-copy .cta-row {
    justify-content: flex-start;
}

.compare-hero-visual {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-hero-visual .compare-logos {
    margin: 0;
}

.compare-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 18px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid #ffffff;
    margin: 0 auto 20px;
}

.compare-badge .cb-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #131218;
    line-height: 1;
}

.compare-badge .cb-brand img {
    display: block;
}

.compare-badge .cb-vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.compare-badge .cb-vendor {
    font-size: 18px;
    font-weight: 600;
    color: #5E5B6B;
    line-height: 1;
}

.compare-hero h1 {
    line-height: 52px;
    margin: 0 auto 14px;
    letter-spacing: -0.02em;
    max-width: 100%;
}

.compare-hero .hero-lead {
    margin: 0 auto 24px;
    max-width: 100%;
}

.compare-hero .hero-kicker {
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}

/* ---------- Email capture ---------- */
.email-capture {
    max-width: 560px;
    margin: 0 auto 18px;
}

.email-capture form {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #746F8C26;
}

.email-capture input[type="email"] {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border: none;
    border-radius: 12px;
    color: #201E26;
    background-color: #ffffff !important;
    letter-spacing: 0.3px;
    caret-color: #FB6514;
    min-width: 0;
}

.email-capture input[type="email"]::placeholder {
    color: #7B778C;
}

.email-capture form:focus-within {
    border: 1px solid #FB6514;
    box-shadow: 0 0 0 4px #EC4A0A14;
}

.email-capture form.error {
    border-color: #FF0004;
    box-shadow: 0 0 0 4px rgba(255, 0, 4, 0.08);
}

.email-capture-error {
    display: none;
    margin: 8px 0 0;
    color: #D92D20;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
}

.email-capture-error.show {
    display: block;
}

.email-capture .ec-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    margin: 4px;
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    border: 0.5px solid #EC4A0A;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

/* ---------- CTA buttons ---------- */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 20px 0 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.1px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.btn-cta.primary {
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    border-color: #EC4A0A;
    color: #fff;
}

.btn-cta.primary:hover {
    opacity: 0.92;
}

.btn-cta.secondary {
    background: #ffffff;
    border-color: #746F8C40;
    color: #131218;
}

.btn-cta.secondary:hover {
    border-color: #FB6514;
    color: #EC4A0A;
}

.btn-cta.ghost {
    background: transparent;
    border-color: #EC4A0A;
    color: #EC4A0A;
}

.btn-cta.ghost:hover {
    background: #EC4A0A0D;
}

/* Centered single CTA between sections */
.cta-inline {
    text-align: center;
    padding: 8px 0 4px;
}

/* ---------- Content sections ---------- */
.compare-section {
    padding: 32px 0;
}

.compare-section > h2 {
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.compare-prose p {
    margin-bottom: 16px;
}

.compare-prose p:last-child {
    margin-bottom: 0;
}

.compare-list {
    margin: 4px 0 0;
    padding: 0;
}

.compare-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #5E5B6B;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.01em;
}

.compare-list li:last-child {
    margin-bottom: 0;
}

.compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2312B76A'/%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

.compare-list li strong {
    color: #131218;
    font-weight: 600;
}

.compare-list.neutral li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8' stroke='%23746F8C' stroke-opacity='0.5' stroke-width='1.5'/%3E%3Ccircle cx='9' cy='9' r='3' fill='%23746F8C'/%3E%3C/svg%3E");
}

/* ---------- Comparison table (native <table> for SEO/LLM) ---------- */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 8px;
    border-radius: 16px;
    border: 1px solid #746F8C26;
    background: #FFFFFF;
}

table.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 15px;
}

table.compare-table th,
table.compare-table td {
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid #746F8C1f;
    vertical-align: top;
    line-height: 22px;
}

table.compare-table thead th {
    font-size: 15px;
    font-weight: 600;
    color: #131218;
    background: #FAFAFC;
    border-bottom: 1px solid #746F8C26;
    white-space: nowrap;
}

table.compare-table thead th.col-packy {
    color: #EC4A0A;
}

table.compare-table tbody tr:last-child th,
table.compare-table tbody tr:last-child td {
    border-bottom: none;
}

table.compare-table tbody th {
    font-weight: 600;
    color: #131218;
    width: 32%;
}

table.compare-table td {
    color: #5E5B6B;
    width: 34%;
}

table.compare-table td.cell-packy {
    color: #131218;
    font-weight: 500;
    background: #FFF7F3;
}

.cmp-ico {
    font-style: normal;
    margin-right: 6px;
}

/* ---------- Stats strip ---------- */
.compare-stats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.compare-stats li {
    flex: 1;
    min-width: 150px;
    background: #FFFFFF;
    border: 1px solid #746F8C26;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.compare-stats .number {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: #131218;
    line-height: 1.1;
    margin-bottom: 6px;
}

.compare-stats p {
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Two-column "right choice / better fit" ---------- */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.choice-card {
    background: #FFFFFF;
    border: 1px solid #746F8C26;
    border-radius: 16px;
    padding: 24px;
}

.choice-card h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.choice-card.accent {
    border-color: #EC4A0A66;
    background: #FFF7F3;
}

/* ---------- Pre-footer CTA band (mirrors packyapp.com/tracking-api #block-power) ---------- */
.cta-band {
    position: relative;
    color: #fff;
    background: linear-gradient(0deg, #FB6514 0%, #F26113 70%);
    box-shadow: 0 -24px 64px 0 rgba(202, 0, 0, 0.35) inset;
    padding: 128px 0 88px;
}

/* Eyebrow + eyes anchored to the top edge of the band */
.cta-band .bl-eyes {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

/* White "eyebrow": matches the page background above the band, so it reads
   as a tab hanging down from the section above. */
.cta-band .bl-eyes-line {
    width: 200px;
    height: 12px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    background: #f4f3f8;
}

.cta-band .bl-eyes-content {
    margin-top: 32px;
    text-align: center;
}

.cta-band .eyes-wrap {
    display: inline-block;
}

.cta-band .eyes-svg {
    display: block;
}

.cta-band .eye-look {
    transition: transform 0.08s linear;
    will-change: transform;
}

.cta-band-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.cta-band h2 {
    color: #ffffff;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.02em;
    max-width: 620px;
    margin: 0 auto 16px;
}

.cta-band-inner > p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta-band-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.cta-band-btn svg {
    display: block;
}

.cta-band-btn.primary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.cta-band-btn.primary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cta-band-btn.secondary {
    background: #ffffff;
    border-color: #ffffff;
    color: #EC4A0A;
}

.cta-band-btn.secondary:hover {
    opacity: 0.92;
}

/* ---------- Footer ---------- */
.compare-footer {
    background: #ffffff;
    border-top: none;
}

.compare-footer .cf-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 56px 0 64px;
}

.cf-left {
    max-width: 300px;
}

.cf-left .header-logo {
    display: inline-flex;
    width: auto;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.cf-tagline {
    font-size: 14px;
    line-height: 20px;
    color: #5E5B6B;
    margin-bottom: 16px;
}

.cf-auth {
    display: flex;
    gap: 12px;
}

.cf-links {
    display: flex;
    gap: 56px;
}

.cf-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cf-links li + li {
    margin-top: 16px;
}

.cf-links a {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: #131218;
}

.cf-links a:hover {
    color: #FB6514;
}

@media (max-width: 768px) {
    .cta-band {
        padding: 112px 0 64px;
    }

    .cta-band h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .compare-footer .cf-inner {
        flex-direction: column;
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .cf-links {
        gap: 40px;
        flex-wrap: wrap;
    }
}

/* ---------- FAQ (reuses .list-block-faq from style.css) ---------- */

/* ---------- Final CTA band ---------- */
.final-cta {
    background: #FFFFFF;
    border: 1px solid #746F8C26;
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    margin: 8px 0 16px;
}

.final-cta h2 {
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.final-cta p {
    max-width: 520px;
    margin: 0 auto 24px;
}

/* ---------- Demo / Contact modal ---------- */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(19, 18, 24, 0.45);
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.demo-modal.open {
    display: flex;
}

body.demo-modal-open {
    overflow: hidden;
}

.demo-modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.demo-modal-content h2 {
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.demo-modal-content .demo-sub {
    margin-bottom: 20px;
}

.demo-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #7B778C;
    cursor: pointer;
    padding: 0;
}

.demo-field {
    display: block;
    margin-bottom: 12px;
}

.demo-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #131218;
    margin-bottom: 6px;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #201E26;
    border: 1px solid #746F8C40;
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: #FB6514;
    box-shadow: 0 0 0 3px #EC4A0A14;
}

.demo-field textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-modal .btn-cta.primary {
    width: 100%;
    margin-top: 4px;
}

.demo-success {
    display: none;
    text-align: center;
    padding: 12px 0;
}

.demo-success.show {
    display: block;
}

.demo-success h2 {
    margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
/* Side gutters on mobile, matching home.html (16px at <=928px). style.css
   already pads .header and .footer-container at this breakpoint; here we pad
   the compare-page content wrappers so text doesn't touch the screen edge. */
@media (max-width: 928px) {
    .compare-section,
    .compare-hero-inner,
    .compare-footer .cf-inner {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .compare-hero {
        margin-top: -200px;
    }

    .compare-hero-inner {
        padding-top: 24px;
    }

    .compare-hero h1 {
        line-height: 40px;
    }

    .compare-badge {
        gap: 10px;
        padding: 8px 14px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .email-capture .ec-submit {
        padding: 13px 14px;
    }
}

@media (max-width: 520px) {
    .compare-badge .cb-brand,
    .compare-badge .cb-vendor {
        font-size: 16px;
    }

    .final-cta {
        padding: 28px 18px;
    }
}

/* ---------- Hero VS logos (big, mirrors the reference vs-badge) ---------- */
.compare-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.compare-logos .cl-logo {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.04),
                0 36px 36px rgba(0, 0, 0, 0.03),
                0 2px 4px rgba(0, 0, 0, 0.04);
}
.compare-logos .cl-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.compare-logos .cl-vendor img {
    width: 72px;
    height: 72px;
    image-rendering: auto;
}
.compare-logos .cl-trackingmore img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}
.compare-logos .cl-vs {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 -18px;
    border-radius: 50%;
    background: linear-gradient(360deg, #EC4A0A 77%, #F26113 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(236, 74, 10, 0.35);
}

@media (max-width: 768px) {
    .compare-logos .cl-logo {
        width: 92px;
        height: 92px;
    }
    .compare-logos .cl-logo img {
        width: 48px;
        height: 48px;
    }
    .compare-logos .cl-vendor img {
        width: 54px;
        height: 54px;
    }
    .compare-logos .cl-trackingmore img {
        width: 48px;
        height: 48px;
        border-radius: 9px;
    }
    .compare-logos .cl-vs {
        width: 52px;
        height: 52px;
        margin: 0 -14px;
        font-size: 17px;
    }
}

/* ---------- Two-column hero -> single column on mobile ---------- */
@media (max-width: 768px) {
    .compare-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }
    .compare-hero-copy .hero-kicker,
    .compare-hero-copy h1,
    .compare-hero-copy .hero-lead,
    .compare-hero-copy .email-capture {
        margin-left: auto;
        margin-right: auto;
    }
    .compare-hero-copy .cta-row {
        justify-content: center;
    }
    .compare-hero-visual {
        order: -1;
    }
}

/* ---------- Hero: lead paragraphs + secondary CTA below the two columns ---------- */
.compare-hero-below {
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
