/* Shopify Apps index + GS1 Assistant landing */
:root {
    --lfs-teal: #267884;
    --lfs-teal-hover: #226c77;
    --lfs-teal-soft: #e8f4f6;
    --lfs-text: #152528;
    --lfs-text-muted: #4a6670;
    --lfs-surface: #ffffff;
    --lfs-bg: #eef3f4;
    --lfs-radius: 0.75rem;
    --lfs-radius-pill: 624.9375rem;
    --lfs-shadow-md: 0 4px 24px rgba(21, 37, 40, 0.08);
    --shopify-green: #008060;
    --shopify-green-hover: #006e52;
}

/*
 * Theme sets html { font-size: 62.5% }, so rem ≈ 10px. Scope Shopify pages with px/em
 * from these wrappers so body copy stays readable at 100% zoom.
 */
.lfs-shopify-page,
.lfs-gs1-subnav {
    font-size: 17px;
    line-height: 1.6;
}

.lfs-shopify-page {
    background: var(--lfs-bg);
}

.lfs-shopify-page .parallax-section {
    padding-top: 3rem !important;
    padding-bottom: 3.25rem !important;
    margin: 0 !important;
}

.lfs-shopify-page .mid-content {
    max-width: 68.75rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Apps index intro (page title uses .lfs-page-title in 3pl-page.css) --- */
.lfs-shopify-page .lfs-shopify-intro {
    background: var(--lfs-surface) !important;
    color: var(--lfs-text) !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
    border-top: none !important;
}

.lfs-shopify-page .lfs-intro-headline {
    font-size: clamp(1.25em, 2.5vw, 1.5em);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--lfs-text) !important;
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: -0.02em;
}

.lfs-shopify-page .lfs-shopify-intro .lfs-prose {
    max-width: 40rem;
    margin: 0;
    color: var(--lfs-text-muted);
    line-height: 1.65;
}

#content > .lfs-content-offset + main > .parallax-section:first-child {
    padding-top: 1.5rem !important;
}

.lfs-apps-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 0;
}

@media (min-width: 48rem) {
    .lfs-apps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lfs-app-card {
    background: var(--lfs-surface);
    border-radius: var(--lfs-radius);
    box-shadow: var(--lfs-shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(38, 120, 132, 0.1);
}

.lfs-app-card--featured {
    border-color: var(--lfs-teal);
    box-shadow: 0 8px 32px rgba(38, 120, 132, 0.15);
}

.lfs-app-card h2 {
    font-size: 1.25em;
    margin: 0 0 0.5rem;
    color: var(--lfs-text);
    text-transform: none !important;
    text-align: left !important;
    padding: 0 !important;
}

.lfs-app-card .lfs-app-rating {
    font-size: 0.875em;
    color: var(--lfs-text-muted);
    margin-bottom: 0.75rem;
}

.lfs-app-card p {
    flex: 1;
    color: var(--lfs-text-muted);
    font-size: 0.9375em;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.lfs-app-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- GS1 in-page subnav (scrolls with content; main masthead stays fixed) --- */
.lfs-gs1-subnav {
    position: static;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(38, 120, 132, 0.12);
    box-shadow: 0 2px 12px rgba(21, 37, 40, 0.06);
}

/* Clear the site’s fixed masthead so subnav is fully visible on load */
body.parallax-on .lfs-gs1-subnav {
    margin-top: 6.25rem;
}

@media screen and (max-width: 768px) {
    body.parallax-on .lfs-gs1-subnav {
        margin-top: 0;
    }
}

/* Anchor jumps land below fixed masthead */
body.parallax-on .lfs-shopify-page [id="features"],
body.parallax-on .lfs-shopify-page [id="how-it-works"],
body.parallax-on .lfs-shopify-page [id="video"],
body.parallax-on .lfs-shopify-page [id="pricing"],
body.parallax-on .lfs-shopify-page [id="faq"] {
    scroll-margin-top: 7rem;
}

.lfs-gs1-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    flex-wrap: wrap;
}

.lfs-gs1-subnav-brand {
    font-weight: 700;
    font-size: 1em;
    color: var(--lfs-text);
    white-space: nowrap;
}

.lfs-gs1-subnav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lfs-gs1-subnav-links a {
    font-size: 0.9375em;
    font-weight: 500;
    color: var(--lfs-text-muted);
    text-decoration: none;
}

.lfs-gs1-subnav-links a:hover,
.lfs-gs1-subnav-links a.is-active {
    color: var(--lfs-teal);
}

/* --- CTAs --- */
.lfs-cta-shopify {
    display: inline-block;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    font-size: 0.9375em;
    text-decoration: none;
    color: #fff !important;
    background: var(--shopify-green);
    border-radius: var(--lfs-radius-pill);
    border: 2px solid var(--shopify-green);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lfs-cta-shopify:hover {
    background: var(--shopify-green-hover);
    border-color: var(--shopify-green-hover);
    color: #fff !important;
}

.lfs-cta-outline {
    display: inline-block;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    font-size: 0.9375em;
    text-decoration: none;
    color: var(--lfs-teal) !important;
    background: transparent;
    border: 2px solid var(--lfs-teal);
    border-radius: var(--lfs-radius-pill);
    transition: background 0.2s ease, color 0.2s ease;
}

.lfs-cta-outline:hover {
    background: var(--lfs-teal-soft);
}

.lfs-cta-outline--on-dark {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.85);
}

.lfs-cta-outline--on-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.lfs-cta-teal {
    display: inline-block;
    padding: 0.65rem 1.15rem;
    font-weight: 600;
    font-size: 0.875em;
    text-decoration: none;
    color: var(--lfs-teal) !important;
    background: var(--lfs-teal-soft);
    border-radius: var(--lfs-radius-pill);
}

.lfs-cta-teal:hover {
    background: #d4ecef;
}

/* --- GS1 Hero --- */
.lfs-gs1-hero {
    background: linear-gradient(145deg, #153a42 0%, var(--lfs-teal) 42%, #3a9bab 100%) !important;
    color: #fff !important;
    padding-top: 2.5rem !important;
    padding-bottom: 3rem !important;
    border-top: none !important;
}

.lfs-gs1-hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 56rem) {
    .lfs-gs1-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.lfs-gs1-hero h1 {
    font-size: clamp(1.65em, 3.5vw, 2.35em);
    font-weight: 700;
    line-height: 1.15;
    margin: 0.75rem 0;
    color: #fff !important;
    text-transform: none !important;
    text-align: left !important;
    padding: 0 !important;
}

.lfs-gs1-hero .lfs-prose--on-dark {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
    font-size: 1.05em;
    line-height: 1.55;
}

.lfs-built-badge {
    height: 2.25rem;
    width: auto;
    display: block;
}

.lfs-gs1-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lfs-gs1-social-proof {
    font-size: 0.9375em;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.lfs-gs1-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--lfs-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Trust bar --- */
.lfs-trust-bar {
    background: var(--lfs-surface);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.lfs-trust-bar-label {
    text-align: center;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lfs-text-muted);
    margin: 0 0 1rem;
}

.lfs-trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
}

.lfs-trust-logos img {
    max-height: 2.5rem;
    width: auto;
    max-width: 7rem;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
}

.lfs-trust-logos .lfs-trust-text {
    font-size: 0.8125em;
    font-weight: 600;
    color: var(--lfs-text-muted);
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(38, 120, 132, 0.2);
    border-radius: 0.35rem;
}

.lfs-bfs-callout {
    text-align: center;
    font-size: 0.9375em;
    color: var(--lfs-text-muted);
    margin: 1.25rem 0 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Sections --- */
.lfs-shopify-section {
    background: var(--lfs-surface);
    border-top: 1px solid rgba(38, 120, 132, 0.08);
}

.lfs-shopify-section--alt {
    background: #f4f8f9;
}

.lfs-shopify-section h2 {
    font-size: clamp(1.35em, 2.5vw, 1.75em);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--lfs-text);
    text-transform: none !important;
    text-align: left !important;
    padding: 0 !important;
}

.lfs-section-label {
    font-size: 0.8125em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lfs-teal);
    margin: 0 0 0.5rem;
}

.lfs-section-intro {
    color: var(--lfs-text-muted);
    max-width: 40rem;
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

/* --- Comparison table --- */
.lfs-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lfs-compare-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.9375em;
}

.lfs-compare-table th,
.lfs-compare-table td {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(38, 120, 132, 0.12);
    text-align: left;
    vertical-align: top;
}

.lfs-compare-table thead th {
    background: var(--lfs-teal-soft);
    font-weight: 600;
    color: var(--lfs-text);
}

.lfs-compare-table tbody th {
    font-weight: 600;
    background: #fafcfd;
    width: 28%;
}

.lfs-compare-old {
    color: #a63d3d;
}

.lfs-compare-new {
    color: var(--lfs-teal);
    font-weight: 500;
}

/* --- Feature cards --- */
.lfs-feature-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 40rem) {
    .lfs-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .lfs-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lfs-feature-card {
    background: var(--lfs-surface);
    border: 1px solid rgba(38, 120, 132, 0.1);
    border-radius: var(--lfs-radius);
    padding: 1.35rem;
    box-shadow: var(--lfs-shadow-md);
}

.lfs-shopify-section--alt .lfs-feature-card {
    background: #fff;
}

.lfs-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--lfs-teal-soft);
    color: var(--lfs-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25em;
    margin-bottom: 0.75rem;
}

.lfs-feature-card h3 {
    font-size: 1.0625em;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--lfs-text);
}

.lfs-feature-card p {
    margin: 0;
    font-size: 0.9em;
    color: var(--lfs-text-muted);
    line-height: 1.5;
}

/* --- Steps --- */
.lfs-steps {
    display: grid;
    gap: 1.5rem;
    counter-reset: step;
}

@media (min-width: 48rem) {
    .lfs-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lfs-step {
    position: relative;
    padding: 1.25rem;
    background: var(--lfs-surface);
    border-radius: var(--lfs-radius);
    border: 1px solid rgba(38, 120, 132, 0.1);
}

.lfs-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--lfs-teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375em;
    margin-bottom: 0.75rem;
}

.lfs-step h3 {
    font-size: 1.0625em;
    margin: 0 0 0.5rem;
    color: var(--lfs-text);
}

.lfs-step p {
    margin: 0;
    font-size: 0.9em;
    color: var(--lfs-text-muted);
    line-height: 1.5;
}

/* --- Testimonials --- */
.lfs-testimonials {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .lfs-testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lfs-testimonial {
    background: var(--lfs-surface);
    border-radius: var(--lfs-radius);
    padding: 1.35rem;
    border: 1px solid rgba(38, 120, 132, 0.1);
    margin: 0;
}

.lfs-testimonial cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.875em;
    color: var(--lfs-teal);
    margin-top: 0.75rem;
}

.lfs-testimonial p {
    margin: 0;
    font-size: 0.9375em;
    color: var(--lfs-text);
    line-height: 1.55;
}

/* --- Video placeholder --- */
.lfs-video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 48rem;
    margin: 0 auto;
    background: linear-gradient(135deg, #153a42, var(--lfs-teal));
    border-radius: var(--lfs-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--lfs-shadow-md);
}

.lfs-video-placeholder:hover {
    opacity: 0.95;
}

.lfs-video-play {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--lfs-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    padding-left: 0.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lfs-video-note {
    text-align: center;
    font-size: 0.8125em;
    color: var(--lfs-text-muted);
    margin-top: 0.75rem;
}

/* --- Pricing --- */
.lfs-pricing-table-wrap {
    overflow-x: auto;
}

.lfs-pricing-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9em;
}

.lfs-pricing-table th,
.lfs-pricing-table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(38, 120, 132, 0.12);
    text-align: center;
}

.lfs-pricing-table thead th {
    background: var(--lfs-teal);
    color: #fff;
    font-weight: 600;
}

.lfs-pricing-table tbody th {
    text-align: left;
    font-weight: 500;
    background: #fafcfd;
}

.lfs-pricing-table .lfs-check {
    color: var(--shopify-green);
    font-weight: 700;
}

.lfs-pricing-note {
    font-size: 0.875em;
    color: var(--lfs-text-muted);
    margin: 1rem 0 0;
}

/* --- FAQ --- */
.lfs-faq-list {
    max-width: 48rem;
}

.lfs-faq-item {
    border: 1px solid rgba(38, 120, 132, 0.12);
    border-radius: var(--lfs-radius);
    margin-bottom: 0.5rem;
    background: var(--lfs-surface);
}

.lfs-faq-item summary {
    padding: 1rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--lfs-text);
    list-style: none;
}

.lfs-faq-item summary::-webkit-details-marker {
    display: none;
}

.lfs-faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 400;
    color: var(--lfs-teal);
}

.lfs-faq-item[open] summary::after {
    content: "−";
}

.lfs-faq-item p {
    margin: 0;
    padding: 0 1.15rem 1rem;
    color: var(--lfs-text-muted);
    font-size: 0.9375em;
    line-height: 1.55;
}

/* --- Final CTA --- */
.lfs-gs1-final-cta {
    background: linear-gradient(145deg, #153a42 0%, var(--lfs-teal) 50%, #3a9bab 100%) !important;
    color: #fff !important;
    text-align: center;
}

.lfs-gs1-final-cta h2 {
    color: #fff !important;
    text-align: center !important;
}

.lfs-gs1-final-cta .lfs-section-intro {
    color: rgba(255, 255, 255, 0.9);
    margin-left: auto;
    margin-right: auto;
}

.lfs-gs1-final-cta .lfs-gs1-hero-ctas {
    justify-content: center;
}

.lfs-gs1-reassurance {
    font-size: 0.875em;
    color: rgba(255, 255, 255, 0.85);
    margin: 1rem 0 0;
}

.lfs-gs1-page-footer {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    font-size: 0.875em;
    color: var(--lfs-text-muted);
    border-top: 1px solid rgba(38, 120, 132, 0.1);
    margin-top: 2rem;
}

.lfs-gs1-page-footer a {
    color: var(--lfs-teal);
    margin: 0 0.35rem;
}
