/*
 * Shared content layout — sections, prose, cards, callouts, grids.
 * Used by inner pages (about, contact, edi, partners, plans, features, legal).
 */

.lfs-section {
    padding: 2.5rem 0 3rem;
    background: var(--surface);
}

.lfs-section--alt {
    background: var(--surface-alt);
}

.lfs-section--accent {
    background: #e8f6f8;
}

.lfs-section--dark {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    overflow: hidden;
}

.lfs-section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.lfs-section--dark .mid-content {
    position: relative;
    z-index: 1;
}

.lfs-section--dark .lfs-prose,
.lfs-section--dark p,
.lfs-section--dark a {
    color: rgba(255, 255, 255, 0.92);
}

.lfs-section .mid-content {
    max-width: var(--container);
}

.lfs-callout {
    margin: 1.5rem auto 2rem;
    max-width: 28rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--emerald);
    border-radius: var(--r);
    background: var(--surface-alt);
    box-shadow: var(--shadow-sm);
}

.lfs-callout ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.lfs-list-grid {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.5rem 1.5rem;
}

@media (min-width: 48rem) {
    .lfs-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lfs-list-grid li {
    position: relative;
    padding-left: 1.125rem;
    margin: 0;
    color: var(--body);
    line-height: 1.55;
}

.lfs-list-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--emerald);
}

.lfs-card-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .lfs-card-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lfs-card-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lfs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.lfs-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.lfs-card p {
    margin: 0 0 0.75rem;
    color: var(--body);
    line-height: 1.55;
}

.lfs-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    margin-bottom: 1rem;
}

.lfs-card__logo img {
    max-height: 3.5rem;
    width: auto;
    margin: 0 auto;
}

.lfs-partner-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 36rem) {
    .lfs-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .lfs-partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lfs-partner-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lfs-partner-card:hover {
    transform: translateY(-2px);
    border-color: var(--emerald);
    box-shadow: var(--shadow-md);
}

.lfs-partner-card img {
    max-height: 3.5rem;
    width: auto;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.lfs-partner-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.lfs-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .lfs-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lfs-feature-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.lfs-feature-card__icon {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-alt);
    overflow: hidden;
}

.lfs-feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.lfs-feature-card__body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.lfs-feature-card__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lfs-feature-card__body li {
    position: relative;
    padding-left: 1.1rem;
    margin: 0 0 0.3rem;
    line-height: 1.55;
    color: var(--body);
}

.lfs-feature-card__body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.35em;
    height: 0.35em;
    border-radius: 50%;
    background: var(--emerald);
}

.lfs-edi-accordion {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.lfs-edi-accordion details {
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-alt);
    overflow: hidden;
}

.lfs-edi-accordion summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.lfs-edi-accordion summary::-webkit-details-marker {
    display: none;
}

.lfs-edi-accordion summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--emerald);
}

.lfs-edi-accordion details[open] summary::after {
    content: "−";
}

.lfs-edi-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem 1rem;
    align-items: center;
}

.lfs-edi-logos a {
    display: inline-flex;
    align-items: center;
}

.lfs-edi-logos img {
    max-height: 3.5rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

.lfs-contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 48rem) {
    .lfs-contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

.lfs-contact-form {
    display: grid;
    gap: 0.85rem;
}

.lfs-contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.lfs-contact-form input,
.lfs-contact-form select,
.lfs-contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}

.lfs-contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.lfs-contact-form input:focus,
.lfs-contact-form select:focus,
.lfs-contact-form textarea:focus {
    outline: 2px solid var(--emerald-soft);
    border-color: var(--emerald);
}

.lfs-contact-form button[type="submit"] {
    justify-self: start;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--r-pill);
    background: var(--emerald);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.lfs-contact-form button[type="submit"]:hover {
    background: var(--lfs-teal-hover);
}

.lfs-form-status {
    margin: 0;
    font-size: 0.875rem;
}

.lfs-form-status.is-error {
    color: #b91c1c;
}

.lfs-form-status.is-success {
    color: var(--emerald);
}

.lfs-contact-info p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.lfs-contact-info strong {
    color: var(--text);
}

/* Page intro band (about, inner landing sections) */
.lfs-page-intro {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.lfs-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald);
}

.lfs-intro-headline {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.lfs-intro-subtitle {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--body);
}

.lfs-section-heading {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.lfs-subheading {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
}

.lfs-subheading:first-of-type {
    margin-top: 0.5rem;
}

.lfs-link-card-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .lfs-link-card-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lfs-link-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.35rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lfs-link-card:hover {
    transform: translateY(-2px);
    border-color: var(--emerald);
    box-shadow: var(--shadow-md);
}

.lfs-link-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--emerald);
}

.lfs-link-card p {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--body);
}

.lfs-link-card__cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald);
}

.lfs-link-card:hover .lfs-link-card__cta {
    color: var(--lfs-teal-hover);
}

.lfs-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 48rem) {
    .lfs-split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 2.5rem;
    }
}

.lfs-logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
    padding: 0.5rem 0;
}

.lfs-logo-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    padding: 0.5rem 0.75rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.lfs-logo-strip a:hover {
    opacity: 1;
}

.lfs-logo-strip img {
    max-height: 4.5rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
}

.lfs-partners-link {
    margin: 1.25rem 0 0;
    text-align: center;
}

.lfs-partners-link a {
    font-weight: 600;
    color: var(--emerald);
    text-decoration: none;
}

.lfs-partners-link a:hover {
    color: var(--lfs-teal-hover);
    text-decoration: underline;
}

.lfs-cta-band {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.lfs-cta-band__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #fff;
}

.lfs-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.lfs-section--dark .lfs-section-heading,
.lfs-section--dark .lfs-cta-band__title {
    color: #fff;
}

/* Shopify app landing buttons — aliases for mockup markup */
#main-shopify-app .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    gap: 0.5rem;
    background: linear-gradient(110deg, #008060 0%, #00a77e 40%, #008060 80%);
    background-size: 250% auto;
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    text-decoration: none;
    animation: lfs-btn-shimmer 6s ease infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
}

#main-shopify-app .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 128, 96, 0.35);
    color: #fff;
}

#main-shopify-app .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--r-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

#main-shopify-app .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

#main-shopify-app .btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    background: var(--emerald-soft);
    color: var(--emerald);
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

#main-shopify-app .btn-soft:hover {
    background: #a7f3d0;
}

@keyframes lfs-btn-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
