/* =========================================================
   POS MACHINE GUIDE PAGE
   ========================================================= */

.pos-hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.pos-hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.pos-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.pos-jump a {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--white);
    color: var(--heading-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.pos-jump a:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* SECTIONS */

.pos-section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.pos-section-alt {
    background: var(--background);
}

.pos-section-header {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.pos-section-header h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--heading-dark);
}

.pos-section-header p {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}


/* MOBILE FIRST */

.pos-mobile-section {
    padding-bottom: 0;
}

.pos-mobile {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 44px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
}

.pos-mobile .section-tag {
    background: var(--white);
}

.pos-mobile-content h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--heading-dark);
}

.pos-mobile-content p {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.pos-mobile-content strong {
    color: var(--primary);
}

.pos-mobile-card {
    padding: 26px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 152, 70, 0.10);
}

.pos-mobile-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-dark);
}

.pos-mobile-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pos-mobile-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--gray-200);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.pos-mobile-card li:last-child {
    border-bottom: 0;
}

.pos-mobile-card li i {
    width: 20px;
    margin-right: 6px;
    color: var(--primary);
    text-align: center;
}

.guide-card-image {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: -6px auto 6px;
}

.pos-mobile-card li strong {
    flex-shrink: 0;
    color: var(--primary);
}


.pos-section-header a {
    color: var(--primary);
    font-weight: 600;
}


/* TYPES */

.pos-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pos-type {
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pos-type-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
}

.pos-type h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-dark);
}

.pos-type-price {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.pos-type p {
    flex: 1;
    margin: 0 0 16px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

.pos-type-best {
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
}

.pos-type-best strong {
    color: var(--heading-dark);
}


/* COMPARISON TABLE */

.pos-compare-wrap {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

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

.pos-compare thead th {
    padding: 18px 22px;
    background: var(--heading-dark);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.pos-compare thead th i {
    margin-right: 6px;
    color: #4ade80;
}

.pos-compare tbody th,
.pos-compare tbody td {
    padding: 16px 22px;
    border-top: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.pos-compare tbody th {
    width: 22%;
    color: var(--heading-dark);
    font-weight: 700;
}

.pos-compare tbody td {
    width: 39%;
    color: var(--text);
}

.pos-compare tbody tr:nth-child(even) {
    background: var(--gray-50);
}


/* COST SETUPS */

.pos-setups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

.pos-setup {
    position: relative;
    padding: 26px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pos-setup.is-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px rgba(0, 152, 70, 0.12);
}

.pos-setup-badge {
    position: absolute;
    top: -12px;
    left: 22px;
    padding: 4px 10px;
    border-radius: 30px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-setup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.pos-setup-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-dark);
}

.pos-setup-tag {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.pos-setup-tag.android {
    background: var(--primary-light);
    color: var(--primary);
}

.pos-setup-tag.windows {
    background: #e0edff;
    color: #1d4ed8;
}

.pos-setup ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pos-setup li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gray-200);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.pos-setup li span:last-child {
    flex-shrink: 0;
    color: var(--heading-dark);
    font-weight: 600;
    text-align: right;
}

.pos-setup-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.pos-setup-total span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.pos-setup-total strong {
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    text-align: right;
}

.pos-setup p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.pos-note {
    margin: 30px auto 0;
    max-width: 760px;
    color: var(--text);
    font-size: 14px;
    text-align: center;
}

.pos-note i {
    margin-right: 6px;
    color: var(--primary);
}

.pos-note a {
    color: var(--primary);
    font-weight: 600;
}


/* BENEFITS */

.pos-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pos-benefit {
    padding: 26px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pos-benefit i {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 24px;
}

.pos-benefit h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-dark);
}

.pos-benefit p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
}

.pos-payback {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 36px;
    align-items: center;
    margin-top: 40px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--heading-dark);
    color: var(--white);
}

.pos-payback-intro h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.pos-payback-intro p {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.pos-payback-intro strong {
    color: var(--white);
}

.pos-payback-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pos-payback-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-payback-grid small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-payback-grid strong {
    font-size: 22px;
    font-weight: 800;
}

.pos-payback-grid span {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.pos-payback-grid .is-result {
    background: var(--primary);
    border-color: var(--primary);
}

.pos-payback-grid .is-result small,
.pos-payback-grid .is-result span {
    color: rgba(255, 255, 255, 0.85);
}


/* WHICH TO CHOOSE */

.pos-choose {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.pos-choose-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.pos-choose-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--heading-dark);
}

.pos-choose-card h3 i {
    margin-right: 6px;
    color: var(--primary);
}

.pos-choose-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pos-choose-card li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}

.pos-choose-card li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 9px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
}

.pos-requirements {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 980px;
    margin: 24px auto 0;
    padding: 24px 30px;
    border: 1px dashed rgba(0, 152, 70, 0.4);
    border-radius: var(--radius-md);
    background: var(--primary-light);
}

.pos-requirements h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-dark);
}

.pos-requirements p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.pos-requirements .btn {
    flex-shrink: 0;
}


/* CTA */

.pos-cta {
    padding: 10px 0 90px;
}

.pos-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
}

.pos-cta-box h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--heading-dark);
}

.pos-cta-box p {
    max-width: 600px;
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.pos-cta-actions {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .pos-types,
    .pos-setups {
        grid-template-columns: repeat(2, 1fr);
    }

    .pos-setups {
        row-gap: 28px;
    }

    .pos-payback,
    .pos-mobile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .pos-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .pos-choose {
        grid-template-columns: 1fr;
    }

    .pos-requirements,
    .pos-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Comparison table becomes stacked cards */
    .pos-compare thead {
        display: none;
    }

    .pos-compare,
    .pos-compare tbody,
    .pos-compare tr,
    .pos-compare th,
    .pos-compare td {
        display: block;
        width: 100%;
    }

    .pos-compare tbody tr {
        padding: 16px 18px;
        border-top: 1px solid var(--gray-200);
    }

    .pos-compare tbody tr:first-child {
        border-top: 0;
    }

    .pos-compare tbody th,
    .pos-compare tbody td {
        width: 100%;
        padding: 0;
        border: 0;
    }

    .pos-compare tbody th {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .pos-compare tbody td {
        padding: 4px 0;
        font-size: 14px;
    }

    .pos-compare tbody td::before {
        content: attr(data-label) ": ";
        color: var(--heading-dark);
        font-weight: 700;
    }
}

@media (max-width: 650px) {
    .pos-section {
        padding: 60px 0;
    }

    .pos-types,
    .pos-setups,
    .pos-benefits,
    .pos-payback-grid {
        grid-template-columns: 1fr;
    }

    .pos-payback,
    .pos-mobile {
        padding: 26px 20px;
    }

    .pos-cta-box {
        padding: 28px 22px;
    }

    .pos-cta-actions {
        flex-wrap: wrap;
    }
}
