/* =========================================================
   ADVANCED ORDER PRINTER - SCOPED STYLES
   ========================================================= */

.aopw-page,
.aopw-page * {
    box-sizing: border-box;
}

.aopw-page {
    --aopw-primary: #635bff;
    --aopw-primary-dark: #4f46e5;
    --aopw-accent: #06b6d4;
    --aopw-dark: #101828;
    --aopw-text: #344054;
    --aopw-muted: #667085;
    --aopw-border: #e4e7ec;
    --aopw-bg: #f8faff;
    --aopw-white: #ffffff;
    --aopw-success: #12b76a;
    --aopw-shadow: 0 20px 60px rgba(16, 24, 40, .08);

    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--aopw-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    line-height: 1.7;
    overflow: hidden;
    background: #fff;
}

.aopw-page a {
    text-decoration: none !important;
}

.aopw-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.aopw-section {
    padding: 95px 0;
}

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

/* =========================================================
   HERO
   ========================================================= */

.aopw-hero {
    position: relative;
    padding: 105px 0 90px;
    background:
        radial-gradient(circle at 10% 15%, rgba(99,91,255,.13), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(6,182,212,.12), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.aopw-hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 65px;
    align-items: center;
}

.aopw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #ddd9ff;
    border-radius: 999px;
    background: #f5f3ff;
    color: var(--aopw-primary-dark);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .1px;
    margin-bottom: 20px;
}

.aopw-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aopw-success);
    box-shadow: 0 0 0 4px rgba(18,183,106,.12);
}

.aopw-hero h1 {
    margin: 0 0 22px;
    color: var(--aopw-dark);
    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    font-weight: 850;
}

.aopw-gradient-text {
    background: linear-gradient(100deg, #635bff 0%, #7c3aed 48%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.aopw-hero-description {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--aopw-muted);
    font-size: 19px;
    line-height: 1.8;
}

.aopw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 30px 0 25px;
}

.aopw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.aopw-btn:hover {
    transform: translateY(-2px);
}

.aopw-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #635bff, #5146e5);
    box-shadow: 0 12px 28px rgba(99,91,255,.25);
}

.aopw-btn-secondary {
    color: var(--aopw-dark) !important;
    background: #fff;
    border: 1px solid var(--aopw-border);
}

.aopw-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
}

.aopw-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.aopw-check {
    color: var(--aopw-success);
    font-weight: 900;
}

/* Hero visual */

.aopw-visual {
    position: relative;
}

.aopw-dashboard {
    position: relative;
    border: 1px solid rgba(99,91,255,.14);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 35px 90px rgba(16,24,40,.13);
    padding: 18px;
    transform: rotate(1deg);
}

.aopw-dashboard-top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 5px 16px;
}

.aopw-window-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d0d5dd;
}

.aopw-window-title {
    margin-left: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.aopw-invoice-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
}

.aopw-invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eaecf0;
}

.aopw-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aopw-logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg,#635bff,#06b6d4);
    font-size: 16px;
    font-weight: 900;
}

.aopw-mini-title {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.aopw-mini-subtitle {
    color: #98a2b3;
    font-size: 10px;
}

.aopw-invoice-number {
    text-align: right;
}

.aopw-invoice-number strong {
    display: block;
    color: #101828;
    font-size: 15px;
}

.aopw-invoice-number span {
    color: #98a2b3;
    font-size: 10px;
}

.aopw-customer-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 22px 0;
}

.aopw-mini-label {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-weight: 800;
}

.aopw-mini-value {
    color: #344054;
    font-size: 11px;
    font-weight: 650;
}

.aopw-product-row {
    display: grid;
    grid-template-columns: 1fr 60px 70px;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f2f4f7;
    font-size: 10px;
}

.aopw-product-row.aopw-head {
    color: #98a2b3;
    border-top: 0;
    font-weight: 800;
}

.aopw-product-row span:last-child {
    text-align: right;
}

.aopw-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #101828;
    color: #101828;
    font-size: 14px;
    font-weight: 850;
}

/* Floating cards */

.aopw-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(16,24,40,.13);
}

.aopw-float-left {
    left: -35px;
    bottom: 45px;
}

.aopw-float-right {
    right: -30px;
    top: 55px;
}

.aopw-float-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f2f4ff;
    font-size: 17px;
}

.aopw-float strong {
    display: block;
    color: #101828;
    font-size: 11px;
}

.aopw-float span {
    color: #98a2b3;
    font-size: 9px;
}

/* =========================================================
   STATS
   ========================================================= */

.aopw-stats {
    padding: 25px 0;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
    background: #fff;
}

.aopw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.aopw-stat {
    text-align: center;
    padding: 15px 20px;
    border-right: 1px solid #eaecf0;
}

.aopw-stat:last-child {
    border-right: 0;
}

.aopw-stat strong {
    display: block;
    color: #101828;
    font-size: 25px;
    font-weight: 850;
}

.aopw-stat span {
    color: #667085;
    font-size: 12px;
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.aopw-eyebrow {
    margin-bottom: 12px;
    color: var(--aopw-primary);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.aopw-section-title {
    max-width: 780px;
    margin: 0 auto 15px;
    color: var(--aopw-dark);
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1.4px;
    font-weight: 850;
}

.aopw-section-description {
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--aopw-muted);
    font-size: 17px;
}

/* =========================================================
   FEATURES
   ========================================================= */

.aopw-features-section {
    background: #f8faff;
}

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

.aopw-feature {
    padding: 27px;
    border: 1px solid #e8ebf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16,24,40,.035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.aopw-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(16,24,40,.08);
}

.aopw-feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #f0efff;
    font-size: 22px;
}

.aopw-feature h3 {
    margin: 0 0 9px;
    color: #101828;
    font-size: 18px;
    font-weight: 800;
}

.aopw-feature p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.75;
}

/* =========================================================
   PROBLEM / SOLUTION
   ========================================================= */

.aopw-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.aopw-split h2 {
    margin: 0 0 17px;
    color: #101828;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.16;
    letter-spacing: -1.2px;
}

.aopw-split p {
    color: #667085;
    font-size: 16px;
}

.aopw-check-list {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.aopw-check-list li {
    display: flex;
    gap: 11px;
    margin-bottom: 13px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.aopw-check-list li:before {
    content: "✓";
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #fff;
    background: #12b76a;
    font-size: 12px;
    font-weight: 900;
}

.aopw-comparison {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--aopw-shadow);
}

.aopw-comparison-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.aopw-comparison-head div {
    padding: 19px;
    font-size: 14px;
    font-weight: 800;
}

.aopw-comparison-head div:first-child {
    background: #f9fafb;
    color: #667085;
}

.aopw-comparison-head div:last-child {
    color: #fff;
    background: linear-gradient(135deg,#635bff,#5146e5);
}

.aopw-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eaecf0;
}

.aopw-comparison-row div {
    padding: 13px 18px;
    font-size: 12px;
}

.aopw-comparison-row div:first-child {
    color: #98a2b3;
}

.aopw-comparison-row div:last-child {
    color: #344054;
    font-weight: 650;
}

/* =========================================================
   WORKFLOW
   ========================================================= */

.aopw-workflow {
    background: #101828;
    color: #fff;
}

.aopw-workflow .aopw-eyebrow {
    color: #a9a2ff;
}

.aopw-workflow .aopw-section-title {
    color: #fff;
}

.aopw-workflow .aopw-section-description {
    color: #98a2b3;
}

.aopw-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.aopw-step {
    position: relative;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(255,255,255,.045);
}

.aopw-step-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(99,91,255,.2);
    color: #b9b4ff;
    font-size: 13px;
    font-weight: 850;
}

.aopw-step h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
}

.aopw-step p {
    margin: 0;
    color: #98a2b3;
    font-size: 13px;
}

/* =========================================================
   CUSTOMIZATION
   ========================================================= */

.aopw-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.aopw-custom-card {
    display: flex;
    gap: 17px;
    padding: 25px;
    border: 1px solid #e4e7ec;
    border-radius: 17px;
    background: #fff;
}

.aopw-custom-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #f2f4ff;
    font-size: 20px;
}

.aopw-custom-card h3 {
    margin: 0 0 6px;
    color: #101828;
    font-size: 16px;
}

.aopw-custom-card p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

/* =========================================================
   FREE SECTION
   ========================================================= */

.aopw-free {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 50%, rgba(99,91,255,.15), transparent 32%),
        radial-gradient(circle at 90% 20%, rgba(6,182,212,.12), transparent 30%),
        #f8faff;
}

.aopw-free-box {
    position: relative;
    padding: 65px;
    border: 1px solid #e4e7ec;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--aopw-shadow);
}

.aopw-free-box h2 {
    max-width: 760px;
    margin: 0 auto 15px;
    color: #101828;
    font-size: clamp(31px, 4vw, 47px);
    line-height: 1.12;
    letter-spacing: -1.4px;
}

.aopw-free-box > p {
    max-width: 680px;
    margin: 0 auto 32px;
    color: #667085;
}

.aopw-free-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 32px;
}

.aopw-free-point {
    padding: 9px 13px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

/* =========================================================
   OTHER PLUGINS
   ========================================================= */

.aopw-other {
    background: #fff;
}

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

.aopw-plugin {
    padding: 26px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.aopw-plugin:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(16,24,40,.08);
}

.aopw-plugin-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.aopw-plugin h3 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 17px;
}

.aopw-plugin p {
    min-height: 65px;
    margin: 0 0 17px;
    color: #667085;
    font-size: 13px;
}

.aopw-plugin-link {
    color: #635bff !important;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   FAQ
   ========================================================= */

.aopw-faq-section {
    background: #f8faff;
}

.aopw-faq {
    max-width: 850px;
    margin: 0 auto;
}

.aopw-faq-item {
    margin-bottom: 10px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.aopw-faq-item summary {
    cursor: pointer;
    padding: 19px 22px;
    color: #101828;
    font-size: 15px;
    font-weight: 750;
    list-style: none;
}

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

.aopw-faq-item summary:after {
    content: "+";
    float: right;
    color: #635bff;
    font-size: 20px;
    font-weight: 400;
}

.aopw-faq-item[open] summary:after {
    content: "−";
}

.aopw-faq-answer {
    padding: 0 22px 20px;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.aopw-final {
    padding: 90px 0;
    background: #101828;
}

.aopw-final h2 {
    max-width: 800px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.aopw-final p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #98a2b3;
    font-size: 16px;
}

.aopw-final .aopw-btn-secondary {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
    color: #fff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {

    .aopw-hero-grid,
    .aopw-split {
        grid-template-columns: 1fr;
    }

    .aopw-visual {
        max-width: 680px;
        width: 100%;
        margin: 20px auto 0;
    }

    .aopw-feature-grid,
    .aopw-plugin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aopw-workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aopw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aopw-stat:nth-child(2) {
        border-right: 0;
    }

    .aopw-stat:nth-child(-n+2) {
        border-bottom: 1px solid #eaecf0;
    }
}

@media (max-width: 650px) {

    .aopw-container {
        width: min(100% - 28px, 1160px);
    }

    .aopw-section {
        padding: 68px 0;
    }

    .aopw-hero {
        padding: 70px 0 60px;
    }

    .aopw-hero h1 {
        font-size: 39px;
        letter-spacing: -1.6px;
    }

    .aopw-hero-description {
        font-size: 16px;
    }

    .aopw-hero-actions {
        flex-direction: column;
    }

    .aopw-btn {
        width: 100%;
    }

    .aopw-feature-grid,
    .aopw-plugin-grid,
    .aopw-custom-grid,
    .aopw-workflow-grid {
        grid-template-columns: 1fr;
    }

    .aopw-dashboard {
        padding: 10px;
        transform: none;
    }

    .aopw-invoice-card {
        padding: 15px;
    }

    .aopw-float {
        display: none;
    }

    .aopw-customer-box {
        gap: 10px;
    }

    .aopw-free-box {
        padding: 38px 22px;
    }

    .aopw-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .aopw-stat {
        padding: 13px 7px;
    }

    .aopw-stat strong {
        font-size: 20px;
    }
}
