:root {
    --lp-green: #00a884;
    --lp-green-dark: #008f6f;
    --lp-ink: #0b141a;
    --lp-muted: #54656f;
    --lp-line: #e9edef;
    --lp-soft: #e7f7f3;
    --lp-bg: #f3f6f4;
    --lp-card: #ffffff;
}

.lp-body {
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
    color: var(--lp-ink);
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(0, 168, 132, 0.12), transparent 55%),
        radial-gradient(900px 420px at 0% 20%, rgba(0, 143, 111, 0.08), transparent 50%),
        linear-gradient(180deg, #f7faf8 0%, var(--lp-bg) 40%, #eef3f0 100%);
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(233, 237, 239, 0.9);
}

.lp-brand {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--lp-ink);
    line-height: 1;
}

.lp-brand span {
    color: var(--lp-green);
}

.lp-nav a {
    color: var(--lp-muted);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color .2s ease;
}

.lp-nav a:hover,
.lp-nav a.is-active {
    color: var(--lp-green);
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.lp-btn:hover { transform: translateY(-1px); }

.lp-btn-primary {
    background: var(--lp-green);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 168, 132, 0.28);
}

.lp-btn-primary:hover { background: var(--lp-green-dark); color: #fff; }

.lp-btn-ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--lp-ink);
    border: 1px solid var(--lp-line);
}

.lp-btn-ghost:hover { background: #fff; color: var(--lp-green); }

/* Hero: copy beside a product scene */
.lp-hero {
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0 0.5rem;
    overflow: hidden;
}

.lp-hero-media {
    position: relative;
    z-index: 0;
    min-width: 0;
}

.lp-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.lp-hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 1rem 0;
    color: var(--lp-ink);
}

.lp-hero-content .lp-brand {
    color: var(--lp-ink);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    margin-bottom: .75rem;
    animation: lpRise .7s ease both;
}

.lp-hero-content h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    max-width: 16ch;
    line-height: 1.4;
    margin-bottom: .85rem;
    animation: lpRise .8s .08s ease both;
}

.lp-hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--lp-muted);
    max-width: 34ch;
    line-height: 1.8;
    margin-bottom: 1.6rem;
    animation: lpRise .85s .14s ease both;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    animation: lpRise .9s .2s ease both;
}

.lp-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.lp-kicker {
    display: inline-block;
    color: var(--lp-green-dark);
    background: var(--lp-soft);
    border: 1px solid #cdeedf;
    font-size: .75rem;
    font-weight: 800;
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.lp-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: .55rem;
}

.lp-sub {
    color: var(--lp-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 46ch;
}

.lp-steps {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .lp-steps { grid-template-columns: repeat(3, 1fr); }
}

.lp-step {
    position: relative;
    padding: 0 0 0 .25rem;
}

.lp-step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 168, 132, 0.22);
    line-height: 1;
    margin-bottom: .5rem;
}

.lp-step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .4rem;
}

.lp-step p {
    color: var(--lp-muted);
    line-height: 1.75;
    font-size: .98rem;
}

.lp-showcase {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.lp-show-row {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .lp-show-row {
        grid-template-columns: 1.15fr .85fr;
        gap: 2.5rem;
    }
    .lp-show-row.is-flip .lp-shot { order: 2; }
}

.lp-shot {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--lp-line);
    box-shadow: 0 24px 60px rgba(17, 27, 33, 0.12);
    background: #fff;
    transform: translateY(12px);
    opacity: 0;
    transition: transform .7s ease, opacity .7s ease;
}

.lp-shot.is-in {
    transform: none;
    opacity: 1;
}

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

.lp-show-copy h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: .55rem;
}

.lp-show-copy p {
    color: var(--lp-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lp-guides-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 700px) {
    .lp-guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .lp-guides-grid { grid-template-columns: repeat(3, 1fr); }
}

.lp-guide {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.25rem 1.15rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--lp-line);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.lp-guide:hover {
    border-color: #b7e4d8;
    background: #fff;
    transform: translateY(-3px);
    color: inherit;
}

.lp-guide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.lp-guide-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .85rem;
    background: var(--lp-soft);
    color: var(--lp-green-dark);
    display: grid;
    place-items: center;
}

.lp-guide h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.lp-guide p {
    color: var(--lp-muted);
    font-size: .92rem;
    line-height: 1.7;
    flex: 1;
}

.lp-guide-meta {
    font-size: .78rem;
    font-weight: 700;
    color: var(--lp-green-dark);
}

.lp-band {
    background: linear-gradient(135deg, #0b141a 0%, #123028 55%, #0b141a 100%);
    color: #fff;
    border-radius: 1.75rem;
    padding: 2.25rem;
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

@media (min-width: 800px) {
    .lp-band { grid-template-columns: 1.4fr auto; }
}

.lp-band h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    margin-bottom: .45rem;
}

.lp-band p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

@keyframes lpRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes lpKen {
    from { transform: scale(1.02) translateY(0); }
    to { transform: scale(1.06) translateY(-1.5%); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-media img,
    .lp-hero-content .lp-brand,
    .lp-hero-content h1,
    .lp-hero-content p,
    .lp-hero-actions,
    .lp-shot {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ——— Pricing: plans vs prepaid balance ——— */
.lp-pricing { padding-top: 3.5rem; }

.lp-price-kinds {
    display: grid;
    gap: .85rem;
    margin-top: 1.75rem;
}

@media (min-width: 800px) {
    .lp-price-kinds { grid-template-columns: 1fr 1fr; }
}

.lp-kind {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--lp-line);
    border-radius: 1.2rem;
    padding: 1.15rem 1.2rem 1.2rem;
}

.lp-kind-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--lp-green-dark);
    background: var(--lp-soft);
    border-radius: 999px;
    padding: .2rem .6rem;
    margin-bottom: .55rem;
}

.lp-kind h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .3rem;
}

.lp-kind p {
    color: var(--lp-muted);
    font-size: .92rem;
    line-height: 1.7;
}

.lp-price-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.4rem;
}

.lp-price-head h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.lp-price-head p {
    color: var(--lp-muted);
    font-size: .92rem;
    line-height: 1.7;
    margin-top: .2rem;
}

.lp-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    padding: .25rem;
    gap: .2rem;
}

.lp-toggle button {
    border: 0;
    background: transparent;
    color: var(--lp-muted);
    font-weight: 800;
    font-size: .88rem;
    border-radius: 999px;
    padding: .55rem 1rem;
    cursor: pointer;
    font-family: inherit;
}

.lp-toggle button.is-on {
    background: var(--lp-green);
    color: #fff;
}

.lp-save {
    display: inline-block;
    margin-inline-start: .35rem;
    background: #fff;
    color: var(--lp-green-dark);
    border-radius: 999px;
    font-size: .68rem;
    padding: .05rem .4rem;
}

.lp-toggle button.is-on .lp-save {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.lp-free {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px dashed #b7e4d8;
}

.lp-free h4 {
    font-size: 1.05rem;
    font-weight: 800;
}

.lp-free p,
.lp-free-meta {
    color: var(--lp-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.lp-free-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--lp-ink);
}

.lp-free-price span {
    font-size: .8rem;
    font-weight: 700;
    color: var(--lp-muted);
}

.lp-plan-grid,
.lp-credit-grid {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
}

@media (min-width: 720px) {
    .lp-plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .lp-credit-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .lp-credit-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1040px) {
    .lp-credit-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.lp-plan,
.lp-credit {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 1.25rem;
    padding: 1.25rem 1.15rem 1.15rem;
    min-width: 0;
}

.lp-plan.is-popular,
.lp-credit.is-best {
    border-color: var(--lp-green);
    box-shadow: 0 16px 40px rgba(0, 168, 132, 0.12);
}

.lp-badge {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    background: var(--lp-green);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    border-radius: 999px;
    padding: .2rem .55rem;
}

.lp-plan-kicker,
.lp-credit-kicker {
    font-size: .72rem;
    font-weight: 800;
    color: var(--lp-green-dark);
    margin-bottom: .25rem;
}

.lp-plan h4,
.lp-credit h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .65rem;
}

.lp-amt-row {
    display: flex;
    align-items: flex-end;
    gap: .35rem;
    line-height: 1;
}

.lp-amt {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lp-cur,
.lp-period {
    color: var(--lp-muted);
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .25rem;
}

.lp-note {
    min-height: 1.2rem;
    margin-top: .35rem;
    color: var(--lp-green-dark);
    font-size: .8rem;
    font-weight: 700;
}

.lp-features {
    list-style: none;
    margin: 1rem 0 1.1rem;
    padding: 0;
    display: grid;
    gap: .45rem;
    flex: 1;
}

.lp-features li {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    color: var(--lp-ink);
    font-size: .88rem;
    line-height: 1.55;
}

.lp-features li.is-info { color: #8a5a12; }

.lp-features i {
    margin-top: .2rem;
    color: var(--lp-green);
    font-size: .8rem;
}

.lp-features li.is-info i { color: #c4841d; }

.lp-pricing .lp-btn {
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.lp-credits {
    margin-top: 2.6rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--lp-line);
    border-radius: 1.5rem;
    padding: 1.25rem 1.1rem 1.35rem;
}

.lp-credit-block + .lp-credit-block { margin-top: 1.5rem; }

.lp-qty {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lp-qty span {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--lp-muted);
    letter-spacing: 0;
}

.lp-per {
    margin-top: .45rem;
    color: var(--lp-muted);
    font-size: .8rem;
    font-weight: 700;
}

.lp-vat {
    margin-top: 1.25rem;
    color: var(--lp-muted);
    font-size: .82rem;
    font-weight: 700;
}

/* ——— Mobile / small tablets ——— */
@media (max-width: 767px) {
    html, body.lp-site {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .lp-body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .lp-hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: none;
        gap: 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .lp-hero-media {
        order: 2;
        width: auto;
        max-width: 100%;
        margin: 0 1rem 1.25rem;
        box-sizing: border-box;
    }

    .lp-hero-media img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .lp-hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.35rem 1rem 1.1rem;
        color: var(--lp-ink);
        box-sizing: border-box;
    }

    .lp-hero-content .lp-brand {
        color: var(--lp-ink);
        font-size: clamp(1.65rem, 8vw, 2.1rem);
        margin-bottom: .55rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .lp-hero-content h1 {
        max-width: none;
        width: 100%;
        font-size: clamp(1.15rem, 4.8vw, 1.35rem);
        color: var(--lp-ink);
        line-height: 1.45;
    }

    .lp-hero-content p {
        max-width: none;
        width: 100%;
        color: var(--lp-muted);
        font-size: .95rem;
        margin-bottom: 1.15rem;
        line-height: 1.75;
    }

    .lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .lp-hero-actions .lp-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .lp-btn-ghost {
        background: #fff;
        color: var(--lp-ink);
    }

    .lp-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2.5rem 1rem;
        box-sizing: border-box;
    }

    .lp-title {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .lp-sub {
        font-size: .95rem;
        max-width: none;
    }

    .lp-band {
        border-radius: 1.25rem;
        padding: 1.35rem 1.1rem;
    }

    .lp-band .lp-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .lp-guide {
        padding: 1.1rem 1rem;
    }

    .lp-shot {
        max-width: 100%;
    }

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

    .lp-pricing {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .lp-price-head,
    .lp-free,
    .lp-credit-block {
        padding: 1rem;
    }

    .lp-toggle {
        width: 100%;
    }

    .lp-toggle button {
        flex: 1;
    }

    #contact {
        padding-top: 2rem;
    }

    .modern-header .container {
        max-width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

/* ——— API docs ——— */
.lp-docs-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    background: #0b141a;
    color: #d7efe8;
    border-radius: 1rem;
    padding: .85rem 1rem;
    max-width: 42rem;
}
.lp-docs-url code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92rem;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
}
.lp-docs-url button,
.lp-code-head button {
    border: 0;
    background: rgba(255,255,255,.1);
    color: #fff;
    border-radius: .65rem;
    padding: .4rem .7rem;
    font-weight: 800;
    font-size: .75rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.lp-docs-grid {
    display: grid;
    gap: .9rem;
    margin-top: 1.5rem;
}
@media (min-width: 800px) {
    .lp-docs-grid.two { grid-template-columns: 1fr 1fr; }
    .lp-docs-steps { grid-template-columns: repeat(4, 1fr); }
}
.lp-docs-card {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem;
}
.lp-docs-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; }
.lp-docs-card p, .lp-docs-card li { color: var(--lp-muted); font-size: .92rem; line-height: 1.7; }
.lp-docs-card ol, .lp-docs-card ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.lp-docs-k { font-size: .72rem; font-weight: 800; color: var(--lp-green-dark); }
.lp-docs-steps {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}
.lp-docs-step {
    background: rgba(255,255,255,.8);
    border: 1px solid var(--lp-line);
    border-radius: 1rem;
    padding: 1rem;
}
.lp-docs-step strong { display: block; margin: .35rem 0 .25rem; }
.lp-docs-step p { color: var(--lp-muted); font-size: .88rem; line-height: 1.65; }
.lp-docs-num { font-size: 1.4rem; font-weight: 800; color: rgba(0,168,132,.35); line-height: 1; }
.lp-endpoint {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-top: 1rem;
}
.lp-endpoint-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--lp-line);
}
.lp-method {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: .4rem;
    padding: .2rem .45rem;
    color: #fff;
}
.lp-method.post { background: #b45309; }
.lp-method.get { background: var(--lp-green-dark); }
.lp-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86rem;
    direction: ltr;
    text-align: left;
}
.lp-endpoint-body { padding: 1rem 1.1rem 1.15rem; }
.lp-spec {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: .4rem 0 1rem;
}
.lp-spec th, .lp-spec td {
    text-align: start;
    padding: .45rem .2rem;
    border-bottom: 1px solid var(--lp-line);
    vertical-align: top;
}
.lp-spec th { color: var(--lp-muted); font-size: .75rem; font-weight: 800; }
.lp-spec code, .lp-inline {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    background: var(--lp-soft);
    border-radius: .35rem;
    padding: .05rem .3rem;
    direction: ltr;
    unicode-bidi: isolate;
}
.lp-code {
    background: #0b141a;
    color: #d7efe8;
    border-radius: .9rem;
    overflow: hidden;
    margin-top: .75rem;
}
.lp-code-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem .7rem;
    color: rgba(255,255,255,.55);
    font-size: .72rem;
    font-weight: 800;
}
.lp-code pre {
    margin: 0;
    padding: 0 .9rem .9rem;
    overflow-x: auto;
    font-size: .78rem;
    line-height: 1.65;
    direction: ltr;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.lp-docs-table-wrap { overflow-x: auto; margin-top: .8rem; }
.lp-docs a.lp-btn { text-decoration: none; }
