/* Sway POS section — scoped so nothing here leaks into the hero or the
   marketplace section above (both reuse .section-header / .cta-btn). */

.sway-section {
    width: 100%;
    padding: 5rem 2rem;
    background: var(--brand-softer);
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.sway-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(50px);
    z-index: 0;
}

.sway-section .section-header h2 {
    font-size: 2.4rem;
}

/* flex (not inline-flex) so the pill keeps its own line above the heading,
   which is an inline-block for the sake of its underline pseudo-element */
.sway-eyebrow {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 auto 1.25rem;
}

/* Feature grid ------------------------------------------------------- */

.sway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .sway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .sway-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sway-card {
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(15, 28, 63, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sway-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 12px 28px rgba(15, 28, 63, 0.08);
}

.sway-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.sway-card-icon i {
    font-size: 1.3rem;
    color: var(--brand);
}

.sway-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.sway-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Screenshot + integrations ------------------------------------------ */

.sway-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .sway-showcase {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3.5rem;
    }
}

.sway-shot {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 18px 40px rgba(15, 28, 63, 0.1);
    line-height: 0;
}

.sway-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.sway-copy h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.sway-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sway-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.sway-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
}

.sway-pills i {
    color: var(--brand);
    font-size: 0.85rem;
}

/* Closing CTA --------------------------------------------------------- */

.sway-section .cta-container {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.sway-section .cta-container h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.sway-section .cta-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 auto 2rem;
}

.sway-section .cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.sway-section .cta-btn:hover {
    background: var(--brand-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 768px) {
    .sway-section {
        padding: 3.5rem 1.25rem;
    }

    .sway-section .section-header h2 {
        font-size: 1.9rem;
    }

    .sway-copy h3 {
        font-size: 1.5rem;
    }

    .sway-section .cta-container h3 {
        font-size: 1.6rem;
    }
}
