/* ==========================================================================
   Noumo Landing — design system
   Brand: deep petrol teal (#0e5259) from noumo.ly, cyan accents.
   Arabic-first, RTL, light theme default + dark theme via [data-theme="dark"].
   ========================================================================== */

:root {
    /* Brand */
    --brand-900: #07292d;
    --brand-800: #0a3d42;
    --brand-700: #0e5259;   /* primary (noumo.ly CTA color) */
    --brand-600: #126570;
    --brand-500: #197c87;
    --brand-400: #2b97a3;
    --brand-100: #d4ecee;
    --brand-50:  #e9f5f6;
    --accent:    #00bcd4;
    --accent-strong: #00a5bb;
    --gold:      #ffb52e;

    /* Light theme surfaces */
    --bg:           #ffffff;
    --bg-soft:      #f4f9fa;
    --bg-card:      #ffffff;
    --bg-elevated:  #ffffff;
    --text:         #122a2d;
    --text-soft:    #4a6468;
    --text-faint:   #7b9295;
    --border:       #e2eced;
    --shadow:       0 10px 40px -12px rgba(14, 82, 89, .18);
    --shadow-sm:    0 4px 16px -6px rgba(14, 82, 89, .12);
    --hero-bg:      radial-gradient(1200px 600px at 85% -10%, rgba(0, 188, 212, .14), transparent 60%),
                    radial-gradient(900px 500px at 10% 110%, rgba(14, 82, 89, .10), transparent 55%),
                    linear-gradient(180deg, #f6fbfc 0%, #ffffff 100%);
    --nav-bg:       rgba(255, 255, 255, .82);
}

[data-theme="dark"] {
    --bg:           #081d20;
    --bg-soft:      #0b262a;
    --bg-card:      #0e2c31;
    --bg-elevated:  #11343a;
    --text:         #e8f4f5;
    --text-soft:    #9fc0c4;
    --text-faint:   #6d8f93;
    --border:       #1a4046;
    --shadow:       0 10px 40px -12px rgba(0, 0, 0, .55);
    --shadow-sm:    0 4px 16px -6px rgba(0, 0, 0, .4);
    --hero-bg:      radial-gradient(1200px 600px at 85% -10%, rgba(0, 188, 212, .12), transparent 60%),
                    radial-gradient(900px 500px at 10% 110%, rgba(25, 124, 135, .18), transparent 55%),
                    linear-gradient(180deg, #07181b 0%, #081d20 100%);
    --nav-bg:       rgba(8, 29, 32, .82);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 14px;
    border: 0;
    font: 700 16px 'Tajawal', sans-serif;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(14, 82, 89, .55);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px rgba(14, 82, 89, .7); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--brand-700);
    border: 2px solid var(--brand-700);
}
[data-theme="dark"] .btn-ghost { color: var(--brand-100); border-color: var(--brand-500); }
.btn-ghost:hover { background: var(--brand-50); }
[data-theme="dark"] .btn-ghost:hover { background: var(--bg-elevated); }

.btn-lg { padding: 16px 40px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--brand-700); }
[data-theme="dark"] .nav-logo { color: var(--brand-100); }
.nav-logo .logo-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--text-soft); }
.nav-links a:hover { color: var(--brand-600); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: background .2s;
}
.theme-toggle:hover { background: var(--bg-soft); }

@media (max-width: 860px) {
    .nav-links { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background: var(--hero-bg);
    padding: 96px 0 80px;
    overflow: hidden;
    position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-50); color: var(--brand-700);
    border: 1px solid var(--brand-100);
    padding: 7px 16px; border-radius: 999px;
    font-weight: 700; font-size: 14px;
    margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge { background: var(--bg-elevated); color: var(--accent); border-color: var(--border); }

.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 20px;
}
.hero h1 .grad {
    background: linear-gradient(90deg, var(--brand-500), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--text-soft); margin: 0 0 32px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--text-faint); }

.hero-visual { position: relative; min-height: 380px; }
.mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    position: relative;
}
.mockup .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mockup .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.mockup .ph { border-radius: 12px; background: var(--bg-soft); }
.float-card {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    animation: floaty 5s ease-in-out infinite;
}
.float-card .ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; font-size: 17px;
    background: var(--brand-50); color: var(--brand-700);
}
[data-theme="dark"] .float-card .ico { background: var(--bg-soft); color: var(--accent); }
.float-card small { display: block; font-weight: 500; color: var(--text-faint); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.commerce-mockup { padding: 20px; }
.mockup-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mockup-topline span:first-child { display: grid; gap: 2px; }
.mockup-topline b { font-size: 15px; }
.mockup-topline small { color: var(--text-faint); font-size: 11px; }
.live-pill { color: #16865e; background: #e5f8f0; border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 800; }
[data-theme="dark"] .live-pill { background: rgba(22,134,94,.18); color: #73d9b3; }
.mockup-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.mockup-metrics div { display: grid; gap: 4px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-soft); }
.mockup-metrics span { color: var(--text-faint); font-size: 10px; }
.mockup-metrics b { font-size: 13px; }
.mockup-chart { height: 118px; display: flex; align-items: end; gap: 9px; padding: 16px 14px 0; border-radius: 14px; background: linear-gradient(180deg, var(--bg-soft), transparent); }
.mockup-chart i { flex: 1; min-height: 18%; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--brand-600)); opacity: .86; }
.mockup-chart i:nth-child(2) { height: 42%; }.mockup-chart i:nth-child(3) { height: 66%; }.mockup-chart i:nth-child(4) { height: 48%; }
.mockup-chart i:nth-child(5) { height: 78%; }.mockup-chart i:nth-child(6) { height: 64%; }.mockup-chart i:nth-child(7) { height: 92%; }

.capability-rail {
    margin-top: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 17px 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-soft);
    font-size: 13.5px;
    font-weight: 700;
}
.capability-rail i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
    color: var(--accent-strong);
    font-weight: 800; font-size: 15px;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 0 0 12px; }
.section-head p { color: var(--text-soft); font-size: 17px; margin: 0; }

/* Platform value pillars */
.value-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.value-pillar { border: 1px solid var(--border); border-radius: 24px; padding: 30px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.value-pillar.featured { border-color: var(--brand-400); background: linear-gradient(180deg, var(--brand-50), var(--bg-card) 48%); transform: translateY(-10px); }
[data-theme="dark"] .value-pillar.featured { background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card)); }
.value-pillar__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.value-pillar__head > span { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; }
[data-theme="dark"] .value-pillar__head > span { background: var(--bg-elevated); color: var(--accent); }
.value-pillar__head small { color: var(--accent-strong); font-weight: 800; }
.value-pillar h3 { margin: 0; font-size: 19px; }
.value-pillar p { color: var(--text-soft); margin: 0 0 18px; font-size: 14.5px; }
.pillar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-soft); font-size: 13.5px; }
.pillar-list li { display: flex; gap: 9px; }
.pillar-list li::before { content: '✓'; color: #18a475; font-weight: 800; }

/* Connected commerce workflow */
.commerce-flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; position: relative; }
.commerce-flow::before { content: ''; position: absolute; top: 34px; inset-inline: 8%; height: 2px; background: linear-gradient(90deg,var(--brand-400),var(--accent)); opacity: .3; }
.flow-step { position: relative; z-index: 1; padding: 0 12px; text-align: center; }
.flow-step__icon { width: 68px; height: 68px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 21px; border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-sm); font-size: 28px; }
.flow-step small { color: var(--accent-strong); font-weight: 800; }
.flow-step h3 { margin: 4px 0 7px; font-size: 16px; }
.flow-step p { color: var(--text-faint); margin: 0; font-size: 13px; }

/* Feature grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 24px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-700);
    margin-bottom: 18px;
}
[data-theme="dark"] .card .ico { background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft)); color: var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* POS banner */
.pos-banner {
    background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
    border-radius: 28px;
    color: #fff;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.pos-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 15% 120%, rgba(0,188,212,.25), transparent 60%);
    pointer-events: none;
}
@media (max-width: 860px) { .pos-banner { grid-template-columns: 1fr; padding: 36px; } }
.pos-banner h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; font-weight: 800; }
.pos-banner p { color: #cfe7ea; font-size: 16px; margin: 0 0 24px; }
.pos-banner ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.pos-banner li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pos-banner li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.pos-banner .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }
.pos-kicker { color: var(--accent); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.pos-visual { position: relative; z-index: 1; }
.pos-screen { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; min-height: 270px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: 0 24px 50px rgba(0,0,0,.2); }
.pos-screen__catalog { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.pos-screen__catalog i { border-radius: 12px; background: rgba(255,255,255,.13); }
.pos-screen__receipt { display: flex; flex-direction: column; gap: 12px; padding: 18px 14px; border-radius: 13px; background: rgba(255,255,255,.94); color: var(--brand-900); }
.pos-screen__receipt span { height: 7px; border-radius: 5px; background: #dce8e9; }
.pos-screen__receipt span:nth-child(2) { width: 72%; }.pos-screen__receipt span:nth-child(3) { width: 86%; }
.pos-screen__receipt b { margin-top: auto; font-size: 12px; }.pos-screen__receipt strong { font-size: 20px; }
.pos-sync { position: absolute; bottom: -16px; inset-inline-start: -18px; padding: 10px 16px; border-radius: 13px; background: #fff; color: var(--brand-700); box-shadow: var(--shadow); font-weight: 800; font-size: 12px; }

/* Plugins */
.plugin-chip {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    transition: transform .2s, box-shadow .2s;
}
.plugin-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.plugin-chip .ico {
    width: 44px; height: 44px; flex: none;
    border-radius: 12px;
    display: grid; place-items: center; font-size: 20px;
    background: var(--brand-50); color: var(--brand-700);
}
[data-theme="dark"] .plugin-chip .ico { background: var(--bg-elevated); color: var(--accent); }
.plugin-chip b { display: block; font-size: 15px; }
.plugin-chip small { color: var(--text-faint); font-size: 13px; }
.chip-paid {
    margin-inline-start: auto;
    background: rgba(255, 181, 46, .15);
    color: var(--gold);
    font-size: 12px; font-weight: 800;
    padding: 3px 10px; border-radius: 999px;
}

/* Growth and conversion section — replaces duplicate public price cards. */
.growth-section { overflow: hidden; }
.growth-stages { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 30px; }
.growth-card { display: flex; gap: 16px; min-height: 168px; padding: 26px; border: 1px solid var(--border); border-radius: 21px; background: var(--bg-card); }
.growth-card.active { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.growth-card > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; }
[data-theme="dark"] .growth-card > span { background: var(--bg-elevated); color: var(--accent); }
.growth-card small { color: var(--accent-strong); font-weight: 800; }
.growth-card h3 { margin: 3px 0 8px; font-size: 18px; }
.growth-card p { margin: 0; color: var(--text-soft); font-size: 14px; }
.conversion-panel { display: grid; grid-template-columns: 1.35fr .65fr; gap: 34px; align-items: center; padding: 44px; border-radius: 28px; color: #fff; background: radial-gradient(500px 240px at 10% 120%,rgba(0,188,212,.28),transparent 65%),linear-gradient(135deg,var(--brand-800),var(--brand-600)); box-shadow: var(--shadow); }
.conversion-badge { display: inline-flex; padding: 5px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #bceef3; font-size: 12px; font-weight: 800; }
.conversion-copy h3 { margin: 12px 0 10px; font-size: clamp(23px,3vw,32px); }
.conversion-copy p { margin: 0; color: #cfe7ea; max-width: 680px; }
.trust-list { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: #e8f7f8; font-size: 13px; font-weight: 700; }
.conversion-actions { display: grid; gap: 11px; }
.conversion-actions .btn-primary { color: var(--brand-800); background: #fff; box-shadow: none; }
.conversion-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.conversion-actions .btn-ghost:hover { background: rgba(255,255,255,.08); }
.conversion-actions small { text-align: center; color: #b8dadd; }
.final-cta-section { padding-top: 40px; }
.final-cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 34px 40px; border: 1px solid var(--border); border-radius: 24px; background: var(--bg-soft); }
.final-cta-panel span { color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.final-cta-panel h2 { margin: 5px 0 0; max-width: 720px; font-size: clamp(22px,3vw,30px); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--brand-900);
    color: #b6d4d7;
    padding: 56px 0 32px;
    margin-top: 40px;
}
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer a { display: block; padding: 4px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 13.5px; color: #7fa6aa; text-align: center; }

/* --------------------------------------------------------------------------
   Wizard / forms
   -------------------------------------------------------------------------- */
.wizard-wrap { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.wizard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 36px;
}
.steps { display: flex; gap: 8px; margin-bottom: 8px; }
.steps .step {
    flex: 1; height: 6px; border-radius: 999px;
    background: var(--border);
    transition: background .3s;
    border: 0; padding: 0;
    cursor: default;
}
.steps .step.active { background: linear-gradient(90deg, var(--brand-500), var(--accent)); }
.steps .step.reachable { cursor: pointer; }
.steps .step.reachable:hover { box-shadow: 0 0 0 3px rgba(25, 124, 135, .18); }

.step-labels { display: flex; gap: 8px; margin-bottom: 26px; }
.step-label {
    flex: 1;
    background: none; border: 0; padding: 2px 0;
    font: 700 12.5px 'Tajawal', sans-serif;
    color: var(--text-faint);
    cursor: default;
    text-align: center;
}
.step-label.reachable { cursor: pointer; }
.step-label.reachable:hover { color: var(--brand-600); }
.step-label.current { color: var(--brand-700); }
[data-theme="dark"] .step-label.current { color: var(--accent); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--text-faint); margin-top: 5px; }
.field .err { font-size: 13px; color: #e05252; margin-top: 5px; }
.input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font: 500 15.5px 'Tajawal', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(25, 124, 135, .12); }
.input.ok { border-color: #2fa36b; }
.input.bad { border-color: #e05252; }
.input-ltr-right { direction: ltr; text-align: right; }

.subdomain-group { display: flex; align-items: stretch; direction: ltr; }
.subdomain-group .input { border-radius: 13px 0 0 13px; text-align: left; }
.subdomain-group .suffix {
    display: flex; align-items: center;
    background: var(--bg-soft);
    border: 1.5px solid var(--border); border-left: 0;
    border-radius: 0 13px 13px 0;
    padding: 0 14px;
    color: var(--text-faint);
    font-size: 14px;
    white-space: nowrap;
}

.choice-grid { display: grid; gap: 12px; }
.choice {
    display: flex; align-items: center; gap: 14px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.choice:hover { border-color: var(--brand-400); }
.choice.selected { border-color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .choice.selected { background: var(--bg-elevated); }
.choice input { accent-color: var(--brand-600); width: 18px; height: 18px; }
.choice b { font-size: 15.5px; }
.choice small { display: block; color: var(--text-faint); font-size: 13px; }
.choice .price-tag { margin-inline-start: auto; font-weight: 800; color: var(--brand-700); white-space: nowrap; }
[data-theme="dark"] .choice .price-tag { color: var(--accent); }

/* Billing-period boxes (square, distinctive, all Arabic) */
.period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.period-box {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 108px;
    border: 2px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
    padding: 18px 10px 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.period-box:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.period-box.selected {
    border-color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: 0 8px 22px -10px rgba(25, 124, 135, .45);
}
[data-theme="dark"] .period-box { background: var(--bg-soft); }
[data-theme="dark"] .period-box.selected { background: var(--bg-elevated); border-color: var(--accent); }
.period-name { font-weight: 800; font-size: 15.5px; }
.period-price { display: flex; align-items: baseline; gap: 4px; }
.period-price b { font-size: 19px; font-weight: 800; color: var(--brand-700); }
.period-price small { font-size: 12px; color: var(--text-faint); }
[data-theme="dark"] .period-price b { color: var(--accent); }
.period-monthly { font-size: 11.5px; color: var(--text-faint); }
.period-save {
    position: absolute; top: -10px; inset-inline-start: 50%; transform: translateX(50%);
    background: linear-gradient(135deg, #2fa36b, #36c181);
    color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
[dir="rtl"] .period-save { transform: translateX(50%); }

/* OTP boxes */
.otp-row { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 26px 0; }
.otp-box {
    width: 52px; height: 60px;
    text-align: center;
    font: 800 24px 'Tajawal', sans-serif;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.otp-box:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(25, 124, 135, .12); }

/* --------------------------------------------------------------------------
   Waiting screen
   -------------------------------------------------------------------------- */
.waiting-wrap { max-width: 680px; margin: 0 auto; padding: 56px 20px 90px; text-align: center; }
.progress-ring { margin: 0 auto 26px; width: 120px; height: 120px; position: relative; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .track { stroke: var(--border); }
.progress-ring .meter { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.progress-ring .pct {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-weight: 800; font-size: 24px; color: var(--brand-700);
}
[data-theme="dark"] .progress-ring .pct { color: var(--accent); }

.progress-msg { font-size: 18px; font-weight: 700; min-height: 32px; margin-bottom: 6px; }
.progress-sub { color: var(--text-faint); font-size: 14px; margin-bottom: 40px; }

.slides { position: relative; height: 240px; margin-top: 12px; }
.slide {
    position: absolute; inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}
.slide.on { opacity: 1; transform: translateY(0); }
.slide .ico {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: grid; place-items: center; font-size: 30px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-700);
    margin-bottom: 18px;
}
[data-theme="dark"] .slide .ico { background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft)); color: var(--accent); }
.slide h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.slide p { margin: 0; color: var(--text-soft); font-size: 15px; max-width: 420px; }

/* payment box on waiting screen */
.pay-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    text-align: start;
    margin-top: 8px;
}
.pay-box .amount { font-size: 34px; font-weight: 800; color: var(--brand-700); }
[data-theme="dark"] .pay-box .amount { color: var(--accent); }
.bank-details {
    white-space: pre-line;
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 18px;
    font-size: 15px;
    margin: 16px 0;
}

/* Success */
.success-ico {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fa36b, #36c181);
    display: grid; place-items: center;
    color: #fff; font-size: 44px;
    box-shadow: 0 16px 40px -10px rgba(47, 163, 107, .5);
    animation: pop .5s ease;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cred-box {
    background: var(--bg-soft);
    border: 1px dashed var(--brand-400);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    text-align: start;
    font-size: 15px;
}
.cred-box div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.cred-box b { color: var(--brand-700); overflow-wrap: anywhere; }
[data-theme="dark"] .cred-box b { color: var(--accent); }
.cred-val { display: flex; align-items: center; gap: 8px; min-width: 0; }
.copy-ico {
    flex: none;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text-soft);
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.copy-ico:hover { border-color: var(--brand-400); color: var(--brand-700); }
.copy-ico.copied { border-color: #2fa36b; color: #2fa36b; }
[data-theme="dark"] .copy-ico { background: var(--bg-soft); }
[data-theme="dark"] .copy-ico:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Wizard — plan cards / addons / order summary
   -------------------------------------------------------------------------- */
.plan-grid { display: grid; gap: 14px; }

.plan-card {
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    position: relative;
    display: block;
}
.plan-card:hover { border-color: var(--brand-400); }
.plan-card.selected {
    border-color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: 0 0 0 3px rgba(25, 124, 135, .12);
}
[data-theme="dark"] .plan-card.selected { background: var(--bg-elevated); }
.plan-card .plan-head { display: flex; align-items: center; gap: 12px; }
.plan-card .plan-head input { accent-color: var(--brand-600); width: 19px; height: 19px; flex: none; }
.plan-card .plan-name { font-weight: 800; font-size: 17px; }
.plan-card .plan-desc { color: var(--text-faint); font-size: 13px; margin-top: 1px; }
.plan-card .plan-price { margin-inline-start: auto; text-align: end; white-space: nowrap; }
.plan-card .plan-price b { font-size: 20px; font-weight: 800; color: var(--brand-700); }
[data-theme="dark"] .plan-card .plan-price b { color: var(--accent); }
.plan-card .plan-price small { display: block; color: var(--text-faint); font-size: 12px; }
.plan-feats {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
    margin: 12px 30px 0 0; padding: 0;
    list-style: none;
    font-size: 13px; color: var(--text-soft);
}
[dir="rtl"] .plan-feats { margin: 12px 30px 0 0; }
.plan-feats li::before { content: '✓ '; color: var(--brand-500); font-weight: 800; }
.plan-badge {
    position: absolute; top: -11px; inset-inline-start: 18px;
    font-size: 11.5px; font-weight: 800;
    padding: 3px 12px; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent));
    color: #fff;
}
.plan-badge.free { background: linear-gradient(135deg, #2fa36b, #36c181); }

.addon-row {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 13px 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.addon-row:hover { border-color: var(--brand-400); }
.addon-row.selected { border-color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .addon-row.selected { background: var(--bg-elevated); }
.addon-row input { accent-color: var(--brand-600); width: 17px; height: 17px; flex: none; }
.addon-row .addon-name { font-weight: 700; font-size: 14.5px; }
.addon-row .addon-desc { color: var(--text-faint); font-size: 12.5px; }
.addon-row .addon-price { margin-inline-start: auto; font-weight: 800; font-size: 14px; color: var(--brand-700); white-space: nowrap; }
[data-theme="dark"] .addon-row .addon-price { color: var(--accent); }

.summary-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 20px;
    font-size: 14.5px;
}
.summary-box .row-line { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-soft); }
.summary-box .row-line.total {
    border-top: 1px dashed var(--border);
    margin-top: 8px; padding-top: 12px;
    font-weight: 800; font-size: 16px; color: var(--text);
}
.summary-box .row-line.total b { color: var(--brand-700); }
[data-theme="dark"] .summary-box .row-line.total b { color: var(--accent); }
.summary-box .free-note { color: #2fa36b; font-weight: 700; }

/* progress smoothing */
.progress-ring .meter { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }

@media (max-width: 960px) {
    .capability-rail { flex-wrap: wrap; gap: 12px 18px; }
    .value-pillars, .growth-stages { grid-template-columns: 1fr; }
    .value-pillar.featured { transform: none; }
    .commerce-flow { grid-template-columns: repeat(3,1fr); row-gap: 34px; }
    .commerce-flow::before { display: none; }
    .conversion-panel { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .hero { padding-top: 68px; }
    .hero-visual { min-height: 330px; }
    .mockup-metrics { grid-template-columns: 1fr; }
    .mockup-metrics div:nth-child(n+2) { display: none; }
    .capability-rail { justify-content: flex-start; margin-top: 40px; }
    .capability-rail i { display: none; }
    .capability-rail span { width: calc(50% - 10px); }
    .value-pillar { padding: 24px; }
    .commerce-flow { grid-template-columns: 1fr 1fr; }
    .pos-banner { padding: 30px 22px; }
    .pos-screen { min-height: 220px; }
    .conversion-panel { padding: 30px 22px; }
    .trust-list { display: grid; gap: 8px; }
    .final-cta-panel { align-items: stretch; flex-direction: column; padding: 28px 22px; }
    .final-cta-panel .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Demo / try-now section
   -------------------------------------------------------------------------- */
.demo-panel {
    background: linear-gradient(135deg, var(--brand-50), #eafcfe);
    border: 1px solid var(--brand-100);
    border-radius: 28px;
    padding: 48px;
}
[data-theme="dark"] .demo-panel {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border-color: var(--border);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .25s;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-card .ico {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid; place-items: center; font-size: 24px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-700);
    margin-bottom: 16px;
}
[data-theme="dark"] .demo-card .ico { background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft)); color: var(--accent); }
.demo-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.demo-card p { margin: 0 0 18px; color: var(--text-soft); font-size: 14.5px; flex: 1; }

.cred-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 14.5px;
}
.cred-row b { direction: ltr; font-family: monospace, 'Tajawal'; font-size: 14px; }
.copy-btn {
    border: 0; background: var(--bg-card);
    border-radius: 8px;
    padding: 5px 12px;
    font: 700 12.5px 'Tajawal', sans-serif;
    color: var(--brand-600);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: background .2s;
}
.copy-btn:hover { background: var(--brand-50); }
[data-theme="dark"] .copy-btn:hover { background: var(--bg-elevated); }
.demo-note {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--text-faint);
}

/* utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; }
.muted { color: var(--text-faint); font-size: 14px; }
[x-cloak] { display: none !important; }

/* --------------------------------------------------------------------------
   Pay-per-order offer (PAYG) — landing promo + wizard card treatment
   Brand teal panel, RTL-first. Every NUMBER inside comes from the admin
   catalog; this file only styles it.
   -------------------------------------------------------------------------- */
.payg-promo { padding-top: 0; }
.payg-panel {
    display: grid;
    grid-template-columns: 1.55fr .85fr;
    gap: 34px;
    align-items: center;
    padding: 40px 44px;
    border-radius: 30px;
    border: 1px solid var(--brand-100);
    background:
        radial-gradient(760px 340px at 92% -30%, rgba(0, 188, 212, .16), transparent 62%),
        linear-gradient(160deg, var(--brand-800) 0%, var(--brand-700) 46%, var(--brand-600) 100%);
    box-shadow: 0 26px 60px -28px rgba(14, 82, 89, .55);
    color: #eaf7f8;
}
[data-theme="dark"] .payg-panel { border-color: var(--border); }

.payg-badge {
    display: inline-block;
    background: var(--gold);
    color: #3a2600;
    font-weight: 800;
    font-size: 12.5px;
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
}
.payg-main h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}
.payg-figure {
    display: inline-block;
    color: var(--gold);
    white-space: nowrap;
}
.payg-sub { margin: 0 0 22px; font-size: 17px; color: #c8e6e9; }
.payg-sub b { color: #fff; }

.payg-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.payg-points li { display: flex; gap: 12px; align-items: flex-start; }
.payg-points li .ico {
    flex: none;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    font-size: 18px;
}
.payg-points li b { display: block; font-size: 15px; color: #fff; }
.payg-points li small { display: block; font-size: 13px; color: #a9cfd3; margin-top: 2px; }

.payg-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 18px;
}
.payg-steps > div { display: flex; gap: 9px; align-items: flex-start; }
.payg-steps b {
    flex: none;
    width: 23px; height: 23px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #04262b;
    font-size: 12.5px;
}
.payg-steps span { font-size: 12.5px; color: #b9dade; line-height: 1.65; }

.payg-side { display: grid; gap: 12px; }
.payg-meter {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    padding: 22px 20px;
    text-align: center;
}
.payg-meter small { display: block; font-size: 13px; color: #a9cfd3; margin-bottom: 4px; }
.payg-meter strong {
    display: block;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}
.payg-meter strong i { font-style: normal; font-size: 19px; margin-inline-start: 6px; color: var(--gold); }
.payg-meter__fee {
    display: inline-block;
    margin-top: 10px;
    background: rgba(0, 188, 212, .18);
    color: #d5f6fb;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 700;
}
.payg-side .btn-primary { background: var(--gold); color: #3a2600; border-color: transparent; }
.payg-side .btn-primary:hover { background: #ffc558; }
.payg-note { display: block; text-align: center; font-size: 12.5px; color: #a9cfd3; }
.payg-upsell {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 14px;
    text-align: center;
}
.payg-upsell b { display: block; font-size: 13.5px; color: #fff; }
.payg-upsell small { display: block; font-size: 12px; color: #a9cfd3; margin-top: 3px; }

@media (max-width: 980px) {
    .payg-panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
    .payg-steps { grid-template-columns: 1fr; }
    .payg-meter strong { font-size: 44px; }
}

/* ---- wizard package card: PAYG variant (styles the .pkg-* card system) ---- */
.pkg-badge.payg { background: var(--gold); color: #3a2600; }
.pkg-payg-price { display: grid; gap: 4px; }
.pkg-payg-price .pkg-payg-credit {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-700);
    line-height: 1.2;
}
[data-theme="dark"] .pkg-payg-price .pkg-payg-credit { color: var(--accent); }
.pkg-payg-price .pkg-payg-credit i { font-style: normal; font-size: 15px; margin-inline-start: 4px; }
.pkg-payg-price .pkg-payg-fee { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.pkg-payg-price .pkg-payg-nosub {
    justify-self: start;
    background: var(--brand-50);
    color: var(--brand-700);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 11.5px;
    font-weight: 800;
}
[data-theme="dark"] .pkg-payg-price .pkg-payg-nosub { background: var(--bg-elevated); color: var(--accent); }
.payg-upsell-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 2px;
    padding: 11px 16px;
    border: 1px dashed var(--brand-400);
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
}
[data-theme="dark"] .payg-upsell-line { background: var(--bg-elevated); color: var(--accent); border-color: var(--brand-500); }
