/**
 * OpenPOS landing page styles.
 *
 * Design tokens mirror the Saasland theme (Poppins 300/600, #5e2ced brand,
 * 4px radii, rgba(0,11,40,.1) shadows) so the shortcode sits inside a normal
 * page without looking bolted on. Everything is scoped under .opl to avoid
 * leaking into the theme.
 */

.opl {
    --opl-brand: #5e2ced;
    --opl-brand-alt: #6754e2;
    --opl-brand-soft: #ccc5fa;
    --opl-accent: #7444fd;
    --opl-heading: #2c2c51;
    --opl-body: #677294;
    --opl-line: #e8ebf3;
    --opl-bg: #fff;
    --opl-bg-soft: #f9f9ff;
    --opl-radius: 4px;
    --opl-shadow: 0 20px 24px 0 rgba(0, 11, 40, .1);

    box-sizing: border-box;
    font: 300 15px/28px "Poppins", sans-serif;
    color: var(--opl-body);
    background: var(--opl-bg);
}

.opl *,
.opl *::before,
.opl *::after {
    box-sizing: inherit;
}

.opl img {
    max-width: 100%;
    height: auto;
}

.opl__wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.opl__section {
    padding: 120px 0;
}

.opl__section--soft {
    background: var(--opl-bg-soft);
}

.opl__eyebrow {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--opl-brand);
}

.opl__h2 {
    margin: 0 0 18px;
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--opl-heading);
}

.opl__lede {
    max-width: 620px;
    margin: 0 0 60px;
    font-size: 16px;
    color: var(--opl-body);
}

.opl__head--center {
    text-align: center;
}

.opl__head--center .opl__lede {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------------- buttons */

.opl__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 3px;
    font: 500 14px "Poppins", sans-serif;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s linear;
}

.opl__btn:hover,
.opl__btn:focus {
    text-decoration: none;
}

.opl__btn:focus-visible {
    outline: 2px solid var(--opl-brand);
    outline-offset: 3px;
}

.opl__btn--primary {
    background: var(--opl-accent);
    border-color: var(--opl-accent);
    color: #fff;
    box-shadow: var(--opl-shadow);
}

.opl__btn--primary:hover {
    background: transparent;
    color: var(--opl-accent);
}

.opl__hero .opl__btn--primary:hover {
    color: #fff;
    border-color: #fff;
}

.opl__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.opl__btn--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--opl-accent);
}

.opl__btn--outline {
    background: transparent;
    border: 2px solid var(--opl-brand-soft);
    color: var(--opl-brand-alt);
}

.opl__btn--outline:hover {
    background: var(--opl-brand-alt);
    border-color: var(--opl-brand-alt);
    color: #fff;
}

.opl__btn--block {
    width: 100%;
}

.opl__btn--stacked {
    margin-top: 12px;
}

/* Price inside a button; shows the struck-through regular price when the
   product is on sale. */
.opl__btn-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.opl__btn-was {
    font-weight: 400;
    text-decoration: line-through;
    opacity: .6;
}

/* ------------------------------------------------------------------- hero */

.opl__hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: linear-gradient(135deg, #5e2ced 0%, #7444fd 55%, #9b6bff 100%);
    color: #fff;
    text-align: center;
}

.opl__hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% -10%;
    height: 100%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .16) 0%, transparent 70%);
    pointer-events: none;
}

.opl__hero > * {
    position: relative;
    z-index: 1;
}

.opl__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, .9);
}

.opl__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ee6b0;
}

.opl__h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    font-family: "Poppins", sans-serif;
    font-size: 52px;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
}

.opl__h1-accent {
    color: #ffe27a;
}

.opl__hero-sub {
    max-width: 660px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 30px;
    font-weight: 300;
    color: rgba(255, 255, 255, .82);
}

.opl__hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 24px;
}

.opl__hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
}

/* ------------------------------------------------------------------ stats */

.opl__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 70px;
    border-radius: var(--opl-radius);
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.opl__stat {
    padding: 30px 20px;
    background: rgba(255, 255, 255, .06);
    text-align: center;
}

.opl__stat-value {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.opl__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

/* --------------------------------------------------------- business types */

.opl__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.opl__chip {
    padding: 9px 20px;
    border: 1px solid var(--opl-line);
    border-radius: var(--opl-radius);
    background: var(--opl-bg);
    font-size: 14px;
    font-weight: 400;
    color: var(--opl-body);
    transition: all .3s linear;
}

.opl__chip:hover {
    border-color: var(--opl-brand-soft);
    color: var(--opl-brand-alt);
}

/* --------------------------------------------------------------- features */

.opl__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.opl__card {
    padding: 40px 30px;
    border: 1px solid var(--opl-line);
    border-radius: var(--opl-radius);
    background: var(--opl-bg);
    transition: all .3s linear;
}

.opl__card:hover {
    border-color: transparent;
    box-shadow: var(--opl-shadow);
    transform: translateY(-4px);
}

.opl__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
    border-radius: var(--opl-radius);
    background: rgba(94, 44, 237, .08);
    color: var(--opl-brand);
}

.opl__card-icon svg {
    width: 24px;
    height: 24px;
}

.opl__card-title {
    margin: 0 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--opl-heading);
}

.opl__card-text {
    margin: 0;
    font-size: 15px;
    color: var(--opl-body);
}

/* ---------------------------------------------------------------- pricing */

.opl__pricing {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.opl__price-card {
    padding: 50px 40px;
    border: 1px solid var(--opl-line);
    border-radius: var(--opl-radius);
    background: var(--opl-bg);
    box-shadow: var(--opl-shadow);
    text-align: center;
}

.opl__price-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--opl-body);
}

/* Wraps WooCommerce's get_price_html() output, so it also has to cope with the
   <del>/<ins> pair WooCommerce emits when the product is on sale. */
.opl__price-amount {
    margin: 14px 0 6px;
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
    color: var(--opl-heading);
}

.opl__price-amount .woocommerce-Price-currencySymbol {
    margin-right: 2px;
    font-size: 26px;
    vertical-align: super;
}

.opl__price-amount del {
    margin-right: 12px;
    font-size: 30px;
    font-weight: 400;
    color: var(--opl-body);
    opacity: .7;
}

.opl__price-amount ins {
    text-decoration: none;
    background: transparent;
    color: inherit;
}

.opl__price-amount .woocommerce-Price-amount {
    white-space: nowrap;
}

/* WooCommerce injects a "View cart" link after a successful ajax add. */
.opl__price-card .added_to_cart {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--opl-brand-alt);
}

.opl__price-terms {
    margin: 0 0 30px;
    font-size: 15px;
    color: var(--opl-body);
}

.opl__price-note {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--opl-body);
}

.opl__checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.opl__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--opl-heading);
}

.opl__checklist li + li {
    border-top: 1px solid var(--opl-line);
}

.opl__check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--opl-brand);
}

/* ------------------------------------------------------------------ demos */

.opl__demos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.opl__demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border: 1px solid var(--opl-line);
    border-radius: var(--opl-radius);
    background: var(--opl-bg);
    text-decoration: none;
    transition: all .3s linear;
}

.opl__demo:hover {
    border-color: transparent;
    box-shadow: var(--opl-shadow);
    text-decoration: none;
    transform: translateY(-4px);
}

.opl__demo-title {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--opl-heading);
}

.opl__demo-creds {
    display: block;
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--opl-body);
}

.opl__demo-arrow {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--opl-brand);
}

/* ----------------------------------------------------------- integrations */

.opl__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opl__tag {
    padding: 9px 18px;
    border: 1px solid var(--opl-line);
    border-radius: var(--opl-radius);
    background: var(--opl-bg);
    font-size: 14px;
    color: var(--opl-body);
}

/* -------------------------------------------------------------------- faq */

.opl__faq {
    max-width: 800px;
    margin: 0 auto;
}

.opl__faq-item {
    border-bottom: 1px solid var(--opl-line);
}

.opl__faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--opl-heading);
    cursor: pointer;
    list-style: none;
}

.opl__faq-item summary::-webkit-details-marker {
    display: none;
}

.opl__faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 400;
    color: var(--opl-brand);
}

.opl__faq-item[open] summary::after {
    content: "\2212";
}

.opl__faq-answer {
    margin: 0;
    padding: 0 0 24px;
    font-size: 15px;
    color: var(--opl-body);
}

/* -------------------------------------------------------------- final cta */

.opl__cta {
    padding: 90px 40px;
    border-radius: var(--opl-radius);
    background: linear-gradient(135deg, #5e2ced 0%, #7444fd 100%);
    color: #fff;
    text-align: center;
    box-shadow: var(--opl-shadow);
}

.opl__cta .opl__h2 {
    color: #fff;
}

.opl__cta-sub {
    max-width: 540px;
    margin: 0 auto 40px;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, .82);
}

.opl__contact {
    margin: 34px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.opl__contact a {
    color: #fff;
    text-decoration: underline;
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 991px) {
    .opl__section {
        padding: 80px 0;
    }

    .opl__hero {
        padding: 90px 0;
    }

    .opl__h1 {
        font-size: 40px;
    }

    .opl__h2 {
        font-size: 32px;
    }

    .opl__grid,
    .opl__demos,
    .opl__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .opl__pricing {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .opl__section {
        padding: 60px 0;
    }

    .opl__h1 {
        font-size: 32px;
    }

    .opl__h2 {
        font-size: 26px;
    }

    .opl__grid,
    .opl__demos {
        grid-template-columns: 1fr;
    }

    .opl__hero-cta .opl__btn {
        width: 100%;
    }

    .opl__cta {
        padding: 60px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .opl__btn,
    .opl__card,
    .opl__demo,
    .opl__chip {
        transition: none;
    }

    .opl__card:hover,
    .opl__demo:hover {
        transform: none;
    }
}
