*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Prompt", sans-serif;
    margin: 0;
    background: #ffffff;
    color: #333;
    line-height: 1.65;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 20;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header .logo img {
    height: 48px;
}
.nav a {
    margin-left: 25px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}
.btn-demo {
    padding: 8px 14px;
    background: #d4a38c;
    color: white;
    border-radius: 6px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #fff7f4 0%, #ffffff 100%);
}
.hero h1 {
    font-size: 42px;
    color: #c27d60;
    line-height: 1.28;
    margin: 12px 0 18px;
}
.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}
.btn-primary {
    background: #c27d60;
    padding: 14px 26px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(194, 125, 96, .24);
}
.eyebrow {
    display: inline-block;
    color: #a85f45;
    background: #f8e6de;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
}
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 28px;
}
.hero-badges span {
    border: 1px solid #efd0c3;
    background: rgba(255,255,255,.8);
    border-radius: 999px;
    padding: 6px 13px;
    color: #785143;
    font-size: 14px;
}
.hero-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
    text-align: left;
}
.hero-product {
    overflow: hidden;
    border: 1px solid #ecdcd5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(73, 51, 42, .11);
}
.hero-product-ptwork {
    border-color: #ddd5ec;
}
.hero-product-head {
    min-height: 142px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}
.hero-product-kicker {
    color: #9c634d;
    font-size: 13px;
    font-weight: 600;
}
.hero-product-ptwork .hero-product-kicker {
    color: #6c3e88;
}
.hero-product h2 {
    margin: 2px 0 4px;
    color: #7e4d39;
    font-size: 29px;
}
.hero-product-ptwork h2 {
    color: #442064;
}
.hero-product p {
    margin: 0;
    color: #625b58;
    font-size: 15px;
}
.product-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.product-mark-spa {
    background: linear-gradient(135deg, #c27d60, #8e5d36);
}
.product-mark-pt {
    background: linear-gradient(135deg, #b9146c, #321259);
}
.hero-shot-link {
    display: block;
    overflow: hidden;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #f4f4f4;
}
.hero-system-shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top left;
    transition: transform .3s ease;
}
.hero-shot-link:hover .hero-system-shot {
    transform: scale(1.015);
}
.hero-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}
.hero-login {
    color: #665d59;
    font-size: 13px;
}
.hero-login code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #f3eeeb;
    color: #654536;
}
.btn-product {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.btn-product-spa {
    background: #a96c51;
}
.btn-product-pt {
    background: #511d70;
}

/* IMAGE FRAME */
.image-frame img, .hero-image-frame img {
    width: 100%;
    border-radius: 12px;
}

/* FEATURES */
.features {
    padding: 60px 0;
}
.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #c27d60;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.feature-box {
    text-align: center;
    padding: 18px;
    border: 1px solid #f4e3dc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(83, 54, 43, .06);
}
.feature-box h3 {
    margin-bottom: 8px;
    color: #6f493b;
}
.feature-box p {
    margin: 0;
    color: #665d59;
}

/* NEW FEATURES */
.new-features {
    padding: 72px 0;
    background: #fff7f4;
}
.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}
.section-heading h2 {
    margin: 12px 0 8px;
    color: #c27d60;
    font-size: 32px;
}
.section-heading p {
    color: #6d625e;
}
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.capability-card {
    background: #fff;
    border: 1px solid #f0d8ce;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(83, 54, 43, .06);
}
.capability-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff0e9;
    font-size: 24px;
}
.capability-card h3 {
    margin: 14px 0 7px;
    color: #6f493b;
}
.capability-card p {
    margin: 0;
    color: #665d59;
}

/* PTWORK PRODUCT */
.ptwork {
    padding: 82px 0;
    background: #f6f9ff;
}
.ptwork-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: 48px;
}
.product-label {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: #e4edff;
    color: #325ca8;
    font-size: 14px;
    font-weight: 600;
}
.ptwork h2 {
    margin: 14px 0 12px;
    color: #234c91;
    font-size: 34px;
    line-height: 1.35;
}
.ptwork-lead {
    margin: 0 0 26px;
    color: #526174;
    font-size: 17px;
}
.ptwork-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ptwork-feature-list > div {
    padding: 14px;
    border: 1px solid #dfe8f8;
    border-radius: 12px;
    background: #fff;
}
.ptwork-feature-list strong,
.ptwork-feature-list span {
    display: block;
}
.ptwork-feature-list strong {
    margin-bottom: 3px;
    color: #294f8c;
}
.ptwork-feature-list span {
    color: #657184;
    font-size: 14px;
}
.demo-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 14px;
    background: #173b76;
    color: #fff;
}
.demo-access > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
}
.demo-access-title {
    flex-basis: 100%;
    font-weight: 700;
}
.demo-access code {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255,255,255,.16);
    color: #fff;
}
.btn-ptwork {
    flex: 0 0 auto;
    padding: 11px 17px;
    border-radius: 9px;
    background: #fff;
    color: #214a89;
    text-decoration: none;
    font-weight: 700;
}
.screenshot-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    border: 2px dashed #9eb7df;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(228,237,255,.78)),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(50,92,168,.04) 12px, rgba(50,92,168,.04) 24px);
    color: #365b96;
    text-align: center;
    box-shadow: 0 18px 45px rgba(39, 75, 135, .12);
}
.placeholder-icon {
    font-size: 44px;
}
.screenshot-placeholder span {
    color: #617696;
}
.screenshot-placeholder small {
    color: #8191aa;
}
.ptwork-detail-shot {
    display: block;
    overflow: hidden;
    border: 1px solid #cfdcf1;
    border-radius: 20px;
    background: #fff;
    color: #31598f;
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(39, 75, 135, .12);
}
.ptwork-detail-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}
.ptwork-detail-shot span {
    display: block;
    padding: 12px 18px;
    font-weight: 600;
    text-align: center;
}

.ptwork-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    align-items: end;
    gap: 44px;
    margin-bottom: 34px;
}
.ptwork-demo-top {
    margin: 0;
    box-shadow: 0 16px 38px rgba(23, 59, 118, .16);
}
.ptwork-capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.ptwork-capability {
    padding: 22px 20px;
    border: 1px solid #dce7f8;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(39, 75, 135, .07);
}
.capability-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf1ff;
    font-size: 22px;
}
.ptwork-capability h3 {
    margin: 14px 0 10px;
    color: #294f8c;
    font-size: 17px;
    line-height: 1.4;
}
.ptwork-capability ul {
    margin: 0;
    padding-left: 19px;
    color: #657184;
    font-size: 14px;
    line-height: 1.65;
}
.ptwork-capability li + li {
    margin-top: 5px;
}
.ptwork-gallery-heading {
    margin: 64px 0 24px;
    text-align: center;
}
.ptwork-gallery-heading h3 {
    margin: 13px 0 5px;
    color: #234c91;
    font-size: 28px;
}
.ptwork-gallery-heading p {
    margin: 0;
    color: #657184;
}
.ptwork-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.ptwork-shot {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d7e2f4;
    border-radius: 17px;
    background: #fff;
    color: #294f8c;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(39, 75, 135, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ptwork-shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(39, 75, 135, .16);
}
.ptwork-shot-wide {
    grid-column: span 2;
    grid-row: span 2;
}
.ptwork-shot img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: top left;
    background: #edf3fc;
}
.ptwork-shot-wide img {
    height: 100%;
    min-height: 458px;
}
.ptwork-shot-mobile img {
    object-fit: contain;
    object-position: top center;
}
.ptwork-shot > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
}
.ptwork-shot small {
    color: #718096;
    font-size: 12px;
}

/* DATA MIGRATION */
.data-migration {
    padding: 34px 0 74px;
    background: #f6f9ff;
}
.migration-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid #d9e4f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(39, 75, 135, .09);
}
.migration-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #e7efff;
    font-size: 32px;
}
.migration-content h2 {
    margin: 9px 0 6px;
    color: #234c91;
    font-size: 25px;
}
.migration-content p {
    margin: 0;
    color: #5e6d80;
}
.btn-migration {
    padding: 12px 18px;
    border-radius: 9px;
    background: #234c91;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

/* PRICING */
.pricing {
    padding: 60px 0;
    background: #fff7f4;
}
.pricing h2 {
    text-align: center;
    color: #c27d60;
}
.pricing-heading {
    margin-bottom: 32px;
}
.pricing-product {
    padding: 28px;
    border: 1px solid #f0d6cb;
    border-radius: 20px;
    background: rgba(255,255,255,.62);
}
.pricing-product + .pricing-product {
    margin-top: 30px;
}
.pricing-product-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
}
.pricing-product-title h3,
.pricing-product-title p {
    margin: 0;
}
.pricing-product-title h3 {
    color: #704939;
    font-size: 25px;
}
.pricing-product-title p {
    color: #6b625e;
}
.pricing-product-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
}
.pricing-product-mark.spa {
    background: linear-gradient(135deg, #c27d60, #8e5d36);
}
.pricing-product-mark.pt {
    background: linear-gradient(135deg, #b9146c, #321259);
}
.pricing-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.pricing-box {
    width: 300px;
    border: 1px solid #f0d6cb;
    padding: 25px;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}
.pricing-box.highlight {
    border: 2px solid #c27d60;
}
.price {
    font-size: 28px;
    color: #c27d60;
    font-weight: bold;
}
.disable {
    color: #aaa;
    text-decoration: line-through;
}
.pricing-ptwork {
    border-color: #d9cce5;
    background: linear-gradient(135deg, #fbf8ff, #f5effa);
}
.pricing-ptwork .pricing-product-title h3 {
    color: #442064;
}
.ptwork-price-card {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 26px 38px;
    align-items: center;
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(65, 29, 94, .10);
}
.ptwork-plan-label {
    display: inline-block;
    color: #6c3e88;
    font-weight: 700;
}
.ptwork-main-price {
    margin: 4px 0 12px;
    color: #4c1d67;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}
.ptwork-main-price small {
    font-size: 17px;
    font-weight: 500;
}
.ptwork-term-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ptwork-term-prices span {
    padding: 8px 11px;
    border-radius: 9px;
    background: #f2eaf7;
    color: #60456f;
    font-size: 14px;
}
.ptwork-term-prices strong {
    color: #442064;
}
.ptwork-price-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
    padding-left: 20px;
}
.ptwork-price-card li::marker {
    color: #8c3a94;
}
.ptwork-price-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.btn-outline-pt {
    padding: 10px 15px;
    border: 1px solid #63287e;
    border-radius: 9px;
    color: #572271;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* FAQ */
.faq {
    padding: 72px 0;
    background: #fff;
}
.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq-list details {
    border: 1px solid #eadbd5;
    border-radius: 14px;
    background: #fffaf8;
    padding: 0 20px;
}
.faq-list summary {
    cursor: pointer;
    padding: 17px 34px 17px 0;
    color: #704939;
    font-weight: 600;
}
.faq-list details p {
    margin: -2px 0 18px;
    color: #635b57;
}

/* CONTACT */
.contact {
    padding: 60px 0;
    text-align: center;
}
.contact-box {
    font-size: 20px;
}
.contact-box a {
    color: #c27d60;
    text-decoration: none;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #eee;
    margin-top: 50px;
}


/* ============================================================
   MOBILE RESPONSIVE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    /* HEADER */
    .container {
        width: 92%;
    }

    .header .logo img {
        height: 40px;
    }
    .header .container {
        flex-direction: column;
        gap: 4px;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    .nav a {
        margin: 5px 10px;
        font-size: 16px;
    }

    .btn-demo {
        margin-top: 10px;
        padding: 10px 18px;
        font-size: 16px;
    }


    /* HERO */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 16px;
        display: inline-block;
    }

    .hero-image-frame img {
        margin-top: 25px;
        border-radius: 10px;
    }

    .hero-products {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .hero-product-head {
        min-height: 0;
        padding: 20px;
    }

    .hero-product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-product {
        text-align: center;
    }


    /* FEATURES */
    .features {
        padding: 40px 0;
    }

    .features h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-box h3 {
        font-size: 20px;
    }

    .feature-box p {
        font-size: 16px;
    }

    .image-frame img {
        border-radius: 10px;
    }

    .new-features {
        padding: 50px 0;
    }

    .section-heading h2 {
        font-size: 26px;
    }

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

    .ptwork {
        padding: 54px 0;
    }

    .ptwork-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ptwork-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ptwork-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptwork-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ptwork-shot-wide {
        grid-column: span 2;
    }

    .ptwork-shot-wide img {
        min-height: 350px;
    }

    .ptwork h2 {
        font-size: 27px;
    }

    .ptwork-feature-list {
        grid-template-columns: 1fr;
    }

    .demo-access {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-ptwork {
        text-align: center;
    }

    .data-migration {
        padding: 14px 0 50px;
    }

    .migration-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .migration-icon {
        margin: 0 auto;
    }

    .migration-content h2 {
        font-size: 23px;
    }

    .btn-migration {
        text-align: center;
    }


    /* PRICING */
    .pricing {
        padding: 50px 0;
    }

    .pricing h2 {
        font-size: 26px;
    }

    .pricing-grid {
        flex-direction: column;
        gap: 25px;
    }

    .pricing-product {
        padding: 20px 14px;
    }

    .pricing-product-title {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .pricing-box {
        width: 100%;
        padding: 22px;
        border-radius: 12px;
    }

    .pricing-box h3 {
        font-size: 22px;
    }

    .price {
        font-size: 26px;
    }

    .sub-price {
        font-size: 15px;
    }

    .pricing-box ul li {
        font-size: 16px;
        margin: 6px 0;
    }

    .ptwork-price-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .ptwork-main-price {
        font-size: 36px;
    }

    .ptwork-price-card ul {
        grid-template-columns: 1fr;
    }

    .ptwork-price-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .btn-outline-pt {
        text-align: center;
    }

    .faq {
        padding: 50px 0;
    }


    /* CONTACT SECTION */
    .contact h2 {
        font-size: 26px;
    }

    .contact-box {
        font-size: 18px;
    }

    .contact-box a.btn-primary {
        display: inline-block;
        margin-top: 20px;
        padding: 14px 22px;
        font-size: 17px;
    }


    /* FOOTER */
    .footer {
        padding: 18px;
        font-size: 14px;
    }
}



/* ============================================================
   EXTRA SMALL MOBILE (≤ 480px)
   เหมาะสำหรับ iPhone SE, Android จอเล็กมาก
   ============================================================ */
@media (max-width: 480px) {

    .ptwork-capability-grid,
    .ptwork-gallery {
        grid-template-columns: 1fr;
    }

    .ptwork-shot-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .ptwork-shot img,
    .ptwork-shot-wide img {
        height: 230px;
        min-height: 0;
    }

    .ptwork-shot-mobile img {
        height: 360px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-demo {
        font-size: 15px;
        padding: 10px 18px;
    }

    .nav a {
        font-size: 14px;
        margin: 4px 8px;
    }

    .pricing-box {
        padding: 20px;
    }

    .pricing-box h3 {
        font-size: 20px;
    }

    .price {
        font-size: 24px;
    }

    .contact-box {
        font-size: 17px;
    }

    .footer {
        font-size: 13px;
    }
}



/* ============================================================
   TABLET (768px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 19px;
    }

    .pricing-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .pricing-box {
        width: 45%;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* SPAWORK ERP */
.spa-erp {
    padding: 82px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f4 100%);
}
.erp-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    align-items: end;
    gap: 44px;
    margin-bottom: 34px;
}
.erp-label {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fde7dc;
    color: #a2583a;
    font-size: 14px;
    font-weight: 600;
}
.spa-erp h2 {
    margin: 14px 0 12px;
    color: #8e5d36;
    font-size: 34px;
    line-height: 1.35;
}
.erp-lead {
    margin: 0;
    color: #6d625e;
    font-size: 17px;
}
.erp-demo {
    margin: 0;
    background: linear-gradient(135deg, #c27d60, #8e5d36);
    box-shadow: 0 16px 38px rgba(142, 93, 54, .25);
}
.btn-erp {
    flex: 0 0 auto;
    padding: 11px 17px;
    border-radius: 9px;
    background: #fff;
    color: #8e5d36;
    text-decoration: none;
    font-weight: 700;
}
.erp-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.erp-pillar {
    padding: 26px 24px;
    border: 1px solid #f0d8ce;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(83, 54, 43, .07);
}
.erp-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff0e9;
    font-size: 24px;
}
.erp-pillar h3 {
    margin: 14px 0 10px;
    color: #6f493b;
    font-size: 19px;
}
.erp-pillar ul {
    margin: 0;
    padding-left: 19px;
    color: #665d59;
    font-size: 15px;
    line-height: 1.65;
}
.erp-pillar li + li {
    margin-top: 6px;
}
.erp-flow {
    margin-top: 28px;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #e3b8a5;
}
.erp-flow h3 {
    margin: 0 0 14px;
    color: #8e5d36;
    font-size: 20px;
    text-align: center;
}
.erp-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.erp-flow-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    background: #fff7f4;
}
.erp-flow-grid strong {
    color: #6f493b;
}
.erp-flow-grid span {
    color: #6d625e;
    font-size: 14px;
    line-height: 1.5;
}
.erp-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}
.erp-shot {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #f0d8ce;
    border-radius: 17px;
    background: #fff;
    color: #6f493b;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(83, 54, 43, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}
.erp-shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(83, 54, 43, .16);
}
.erp-shot-wide {
    grid-column: 1 / -1;
}
.erp-shot img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top left;
    background: #fff0e9;
}
.erp-shot-wide img {
    height: auto;
    max-height: 560px;
}
.erp-shot > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
}
.erp-shot small {
    color: #8a7b74;
    font-size: 12px;
}
@media (max-width: 992px) {
    .erp-intro { grid-template-columns: 1fr; gap: 20px; }
    .erp-pillars { grid-template-columns: 1fr; }
    .erp-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .spa-erp { padding: 56px 0; }
    .spa-erp h2 { font-size: 26px; }
    .erp-demo { flex-direction: column; align-items: flex-start; }
    .erp-flow-grid { grid-template-columns: 1fr; }
    .erp-gallery { grid-template-columns: 1fr; }
    .erp-shot img { height: 220px; }
}

/* เผื่อระยะให้แถบเมนูด้านบน (sticky) เวลากดลิงก์ในเมนูไปยังแต่ละส่วน */
section[id] {
    scroll-margin-top: 90px;
}
@media (max-width: 768px) {
    section[id] { scroll-margin-top: 175px; }
}
