/* Product pages for a subscription product sold in editions (Relite POS, AccuLedger AI).
   Two uses: the price table (Pages/Products/_ProductPricing.cshtml) on any product page, in the site's light theme,
   and the full dark layout (_SubscriptionHero / _ProductPricing / _SubscriptionSections, or a Body/{slug}.cshtml with
   a {slug}.after.cshtml) inside .rs-dark. The dark layout's sizes, spacing and colours are measured from
   pos.relitesolutions.com so the two read as one product. Every colour is a variable. */

.rs-pricing:not(.rs-dark *), .rs-dark {
    --rs-bg: #ffffff;
    --rs-band: #f5f7fa;
    --rs-surface: #ffffff;
    --rs-border: #e3e8f0;
    --rs-text: #1a2b4d;
    --rs-body: #4a566b;
    --rs-muted: #78849a;
    --rs-accent: #24bbef;
    --rs-accent-2: #24bbef;
    --rs-ok: #1c8a4e;
    --rs-ok-bg: #e6f7ee;
    --rs-shadow: 0 4px 18px rgba(26, 43, 77, .05);
}

/* ── Dark page (slate-950 / indigo, as pos.relitesolutions.com) ────────────── */
.rs-dark {
    --rs-bg: #020618;
    --rs-band: rgba(15, 23, 42, .4);
    --rs-surface: rgba(15, 23, 42, .6);
    --rs-border: rgba(30, 41, 59, .85);
    --rs-text: #ffffff;
    --rs-body: #94a3b8;
    --rs-muted: #94a3b8;
    --rs-accent: #4f46e5;
    --rs-accent-2: #7c3aed;
    --rs-ok: #34d399;
    --rs-ok-bg: rgba(16, 185, 129, .1);
    --rs-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 500px at 50% -80px, rgba(79, 70, 229, .15), transparent 70%),
        radial-gradient(600px 600px at -10% 35%, rgba(5, 150, 105, .10), transparent 70%),
        radial-gradient(650px 650px at 110% 65%, rgba(79, 70, 229, .10), transparent 70%),
        var(--rs-bg);
    color: var(--rs-body);
    font-family: "Plus Jakarta Sans", "Open Sans", sans-serif;
}
.rs-dark .container { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
.rs-dark .grey-bg, .rs-dark .white-bg, .rs-dark section { background: transparent; }
.rs-dark h1, .rs-dark h2, .rs-dark h3, .rs-dark h4, .rs-dark h5, .rs-dark .title { color: var(--rs-text); font-family: inherit; }
.rs-dark p { color: var(--rs-body); }

/* Hero */
.rs-sub-hero { padding: 96px 0 128px; text-align: center; }
.rs-kicker {
    display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-bottom: 32px; padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, .2); background: rgba(99, 102, 241, .1); color: #a5b4fc; font-size: 12px; line-height: 16px; font-weight: 500;
}
.rs-kicker.is-green { margin-bottom: 16px; padding: 4px 12px; border-color: rgba(16, 185, 129, .2); background: rgba(16, 185, 129, .1); color: #34d399; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.rs-kicker .rs-kicker-ok { margin: 0; color: #34d399; font-weight: 600; }
.rs-sub-title { max-width: 1024px; margin: 0 auto; font-size: 72px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.rs-sub-title em { font-style: normal; background: linear-gradient(90deg, #818cf8, #d8b4fe, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rs-sub-tagline { max-width: 768px; margin: 24px auto 0; font-size: 20px; line-height: 1.625; font-weight: 400; color: var(--rs-body); }
.rs-sub-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.rs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 24px;
    text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.rs-btn:hover { text-decoration: none; }
.rs-btn-primary { background: linear-gradient(90deg, #4f46e5, #6366f1 50%, #7c3aed); color: #fff; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, .35), 0 4px 6px -4px rgba(79, 70, 229, .35); }
.rs-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.rs-btn-ghost { padding: 16px 28px; background: rgba(15, 23, 42, .9); color: #e2e8f0; border-color: #1e293b; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1); }
.rs-btn-ghost:hover { color: #fff; background: #1e293b; }

.rs-stat-strip { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); max-width: 896px; margin: 64px auto 0; }
.rs-stat-ruled { padding-top: 40px; border-top: 1px solid rgba(30, 41, 59, .8); }
.rs-stat { padding: 16px; text-align: center; background: rgba(15, 23, 42, .5); border: 1px solid rgba(30, 41, 59, .6); border-radius: 16px; backdrop-filter: blur(4px); }
.rs-stat b { display: block; font-size: 30px; line-height: 36px; font-weight: 700; color: #fff; }
.rs-stat:nth-child(2) b { color: #34d399; }
.rs-stat:nth-child(3) b { color: #818cf8; }
.rs-stat:nth-child(4) b { color: #fbbf24; }
.rs-stat span { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--rs-muted); }

.rs-hero-shot { max-width: 1024px; margin: 64px auto 0; padding: 8px; background: rgba(15, 23, 42, .9); border: 1px solid rgba(99, 102, 241, .3); border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(79, 70, 229, .2); }
.rs-hero-shot img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ── Price table (both themes) ─────────────────────────────────────────────── */
.rs-pricing { padding: 128px 0; }
.rs-dark .rs-pricing { border-top: 1px solid rgba(30, 41, 59, .8); background: rgba(2, 6, 24, .7); }
.rs-pricing .heading-title { max-width: 768px; margin: 0 auto 8px; text-align: center; }
.rs-dark .rs-pricing .heading-title h3 { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.rs-dark .rs-pricing .heading-title p { margin-top: 16px; font-size: 18px; line-height: 28px; }
.rs-term-switch {
    display: none; justify-content: center; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%;
    margin: 40px auto 0; padding: 6px; background: var(--rs-surface); border: 1px solid var(--rs-border); border-radius: 16px; box-shadow: var(--rs-shadow);
}
.rs-dark .rs-term-switch { background: #0f172a; border-color: #1e293b; }
.rs-pricing.rs-js .rs-term-switch { display: flex; }
.rs-term-btn {
    display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--rs-muted);
    font-family: inherit; font-weight: 600; font-size: 14px; line-height: 20px; padding: 8px 16px; border-radius: 12px; cursor: pointer; transition: background .15s, color .15s;
}
.rs-term-btn:hover { color: var(--rs-text); background: rgba(30, 41, 59, .6); }
.rs-term-btn.is-active { background: linear-gradient(90deg, var(--rs-accent), var(--rs-accent-2)); color: #fff; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, .3), 0 4px 6px -4px rgba(79, 70, 229, .3); }
.rs-term-save { padding: 2px 6px; border-radius: 999px; background: rgba(16, 185, 129, .2); border: 1px solid rgba(16, 185, 129, .3); color: #34d399; font-size: 10px; line-height: 16px; font-weight: 700; }
.rs-term-btn.is-active .rs-term-save { background: #34d399; border-color: #34d399; color: #020618; }
.rs-term-btn:focus-visible, .rs-price-cta:focus-visible, .rs-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }

.rs-price-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 64px auto 0; align-items: stretch; }
.rs-dark .rs-price-grid { max-width: 1216px; }
.rs-price-card {
    position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--rs-surface);
    border: 1px solid var(--rs-border); border-radius: 24px; box-shadow: var(--rs-shadow);
}
.rs-price-card.is-popular { border: 2px solid #6366f1; background: linear-gradient(180deg, rgba(30, 27, 75, .8), #0f172a 50%, #020618); box-shadow: 0 25px 50px -12px rgba(79, 70, 229, .2); transform: translateY(-8px); }
.rs-pricing:not(.rs-dark *) .rs-price-card.is-popular { background: var(--rs-surface); border-color: var(--rs-accent); transform: none; }
.rs-price-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 16px; border-radius: 999px;
    background: linear-gradient(90deg, var(--rs-accent), var(--rs-accent-2)); color: #fff; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}
.rs-price-card h4 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--rs-text); }
.rs-price-tag { min-height: 40px; margin-top: 4px; font-size: 12px; line-height: 20px; color: var(--rs-muted); }
.rs-term-panel { display: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(30, 41, 59, .9); }
.rs-term-panel.is-active { display: block; }
.rs-pricing:not(.rs-js) .rs-term-panel { display: block; margin: 12px 0 0; padding: 12px 0 0; }
.rs-price-amount-lg { font-size: 48px; font-weight: 800; line-height: 1; color: var(--rs-text); }
.rs-price-amount-lg.rs-muted { color: var(--rs-muted); opacity: .5; }
.rs-price-per { font-size: 12px; font-weight: 400; color: var(--rs-muted); margin-left: 4px; }
.rs-price-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--rs-ok); font-weight: 500; }
.rs-save { padding: 2px 8px; border-radius: 999px; background: var(--rs-ok-bg); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .2); font-size: 11px; line-height: 16px; font-weight: 600; }
.rs-price-limits { margin: 24px 0 24px; padding: 0; list-style: none; flex: 1; }
.rs-price-limits li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14px; line-height: 20px; color: var(--rs-body); }
.rs-dark .rs-price-limits li { color: #cbd5e1; }
.rs-price-limits li:before { content: "\f122"; font-family: "Ionicons"; position: absolute; left: 0; top: -1px; color: var(--rs-ok); font-size: 18px; }
.rs-price-cta {
    display: block; width: 100%; margin: 0; padding: 14px 16px; text-align: center; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
    background: #1e293b; color: #fff; border: 0; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); transition: background .15s;
}
.rs-price-cta:hover { text-decoration: none; background: #334155; color: #fff; }
.rs-price-card.is-popular .rs-price-cta { background: linear-gradient(90deg, #4f46e5, #7c3aed); box-shadow: 0 10px 15px -3px rgba(79, 70, 229, .3); }
.rs-price-card.is-popular .rs-price-cta:hover { filter: brightness(1.1); }
.rs-price-note { margin-top: 12px; font-size: 11px; line-height: 16px; color: #64748b; text-align: center; }

/* Light theme (a hand-written body that renders the price table on the site's own background) */
.rs-pricing:not(.rs-dark *) .rs-price-cta { background: var(--rs-accent); color: #fff; }
.rs-pricing:not(.rs-dark *) .rs-term-btn.is-active, .rs-pricing:not(.rs-dark *) .rs-price-badge, .rs-pricing:not(.rs-dark *) .rs-price-card.is-popular .rs-price-cta { background: var(--rs-accent); box-shadow: none; }
.rs-pricing:not(.rs-dark *) .rs-term-btn:hover { background: transparent; }
.rs-pricing:not(.rs-dark *) .rs-price-amount-lg { font-size: 36px; }

/* ── Sections after the price table ────────────────────────────────────────── */
.rs-sec { padding: 128px 0; }
.rs-sec.is-band { padding: 112px 0; background: var(--rs-band); border-top: 1px solid rgba(30, 41, 59, .8); }
.rs-sec#faq { padding: 112px 0; }
.rs-sec-title { max-width: 768px; margin: 0 auto 64px; text-align: center; }
.rs-sec-title h3 { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.025em; margin: 0; color: #fff; }
.rs-sec.is-band .rs-sec-title h3, #faq .rs-sec-title h3 { font-size: 36px; line-height: 40px; }
.rs-sec-title p { margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--rs-body); }
.rs-card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 auto; }
.rs-card { padding: 24px; background: var(--rs-surface); border: 1px solid rgba(30, 41, 59, .8); border-radius: 16px; transition: border-color .15s; }
.rs-card:hover { border-color: rgba(99, 102, 241, .4); }
.rs-card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .2); color: #818cf8; font-size: 22px; }
.rs-card h5 { margin: 0 0 8px; font-size: 18px; line-height: 28px; font-weight: 700; color: #fff; }
.rs-card p { margin: 0; font-size: 12px; line-height: 19.5px; color: var(--rs-muted); }
.rs-industry { text-align: center; }
.rs-industry .rs-card-icon { margin: 0 auto 16px; }

.rs-faq { max-width: 832px; margin: 0 auto; }
.rs-faq details { margin-bottom: 16px; background: var(--rs-surface); border: 1px solid rgba(30, 41, 59, .8); border-radius: 16px; overflow: hidden; }
.rs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; cursor: pointer; list-style: none; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary:after { content: "\f123"; font-family: "Ionicons"; color: var(--rs-muted); transition: transform .2s; }
.rs-faq details[open] summary:after { transform: rotate(180deg); }
.rs-faq .rs-faq-a { padding: 0 20px 20px; font-size: 12px; line-height: 19.5px; color: var(--rs-body); }

/* ── Relite POS hero: the counter picture ──────────────────────────────────── */
.rs-terminal { max-width: 1024px; margin: 64px auto 0; padding: 8px; text-align: left; border-radius: 24px; border: 1px solid rgba(99, 102, 241, .3); background: linear-gradient(180deg, rgba(99, 102, 241, .2), rgba(30, 41, 59, .3) 50%, transparent); box-shadow: 0 25px 50px -12px rgba(79, 70, 229, .2); }
.rs-terminal-inner { padding: 24px; border-radius: 16px; background: rgba(15, 23, 42, .9); border: 1px solid #1e293b; overflow: hidden; }
.rs-terminal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid #1e293b; font-size: 12px; color: var(--rs-muted); }
.rs-dots i { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; }
.rs-dots i.is-r { background: rgba(244, 63, 94, .8); } .rs-dots i.is-a { background: rgba(245, 158, 11, .8); } .rs-dots i.is-g { background: rgba(16, 185, 129, .8); }
.rs-mono { font-family: ui-monospace, Menlo, monospace; }
.rs-terminal-tags em { margin-left: 12px; padding: 4px 10px; border-radius: 6px; font-style: normal; font-weight: 500; color: #818cf8; background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .2); }
.rs-terminal-tags em.is-ok, .rs-terminal .is-ok { color: #34d399; }
.rs-terminal-tags em.is-ok { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .2); }
.rs-terminal-body { display: grid; gap: 16px; grid-template-columns: 7fr 5fr; }
.rs-terminal-menu, .rs-terminal-bill { padding: 16px; border-radius: 12px; background: rgba(2, 6, 24, .6); border: 1px solid rgba(30, 41, 59, .8); font-size: 12px; }
.rs-terminal-bill { display: flex; flex-direction: column; }
.rs-terminal-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--rs-muted); }
.rs-terminal-bill .rs-terminal-head { padding-bottom: 8px; border-bottom: 1px solid #1e293b; }
.rs-terminal-menu .rs-terminal-head b { color: #cbd5e1; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rs-terminal-menu .rs-terminal-head span { color: #818cf8; font-size: 11px; }
.rs-terminal-items { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.rs-terminal-items div { padding: 12px; border-radius: 8px; background: #0f172a; border: 1px solid #1e293b; }
.rs-terminal-items b { display: block; color: #fff; font-weight: 600; }
.rs-terminal-items small { display: block; margin: 2px 0 6px; color: var(--rs-muted); font-size: 11px; }
.rs-terminal-items i { font-style: normal; font-weight: 700; color: #818cf8; }
.rs-terminal-line, .rs-terminal-sum, .rs-terminal-total { display: flex; justify-content: space-between; margin-top: 8px; color: #cbd5e1; }
.rs-terminal-line b { color: #fff; font-weight: 500; }
.rs-terminal-sum { color: var(--rs-muted); }
.rs-terminal-sum:first-of-type { margin-top: auto; padding-top: 16px; border-top: 1px solid #1e293b; }
.rs-terminal-total { padding-top: 4px; border-top: 1px solid rgba(30, 41, 59, .6); font-size: 14px; font-weight: 700; color: #fff; }
.rs-terminal-total b { color: #34d399; }
.rs-terminal-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 8px; text-align: center; font-weight: 600; }
.rs-terminal-pay span { padding: 8px; border-radius: 8px; }
.rs-terminal-pay .is-ok { background: rgba(5, 150, 105, .2); border: 1px solid rgba(16, 185, 129, .3); color: #6ee7b7; }
.rs-terminal-pay .is-pri { background: #4f46e5; color: #fff; }

.rs-card-grid.is-four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .rs-card-grid.is-four { grid-template-columns: repeat(2, 1fr); } .rs-terminal-body { grid-template-columns: 1fr; } .rs-stat-strip { grid-template-columns: repeat(2, 1fr); } .rs-price-card.is-popular { transform: none; } }
@media (max-width: 767px) {
    .rs-sub-hero { padding: 64px 0 80px; }
    .rs-pricing, .rs-sec { padding: 80px 0; }
    .rs-sub-title { font-size: 40px; }
    .rs-sub-tagline { font-size: 17px; }
    .rs-sec-title h3, .rs-dark .rs-pricing .heading-title h3 { font-size: 32px; }
    .rs-term-btn { padding: 8px 12px; font-size: 13px; }
    .rs-dark .container { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 575px) { .rs-card-grid.is-four { grid-template-columns: 1fr; } .rs-terminal-items { grid-template-columns: repeat(2, 1fr); } .rs-btn { width: 100%; } }

/* ── The rest of a dark product page: enquiry form, Other Products, client logos ─────────────────────────────────────────────
   Detail.cshtml puts these inside .rs-dark so the page keeps one theme from the header to the footer. */
.rs-dark #enquire { border-top: 1px solid rgba(30, 41, 59, .8); }
.rs-dark .rs-related { background: var(--rs-band); border-top: 1px solid rgba(30, 41, 59, .8); }
.rs-dark .form-control, .rs-dark select.form-control {
    height: auto; padding: 12px 16px; background: rgba(15, 23, 42, .7); border: 1px solid #1e293b; border-radius: 12px; color: #e2e8f0;
}
.rs-dark .form-control::placeholder { color: #64748b; }
.rs-dark .form-control:focus { background: rgba(15, 23, 42, .95); border-color: #6366f1; color: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); outline: 0; }
.rs-dark .form-control option { background: #0f172a; color: #e2e8f0; }
.rs-dark .alert-success { background: var(--rs-ok-bg); border: 1px solid rgba(16, 185, 129, .3); color: #34d399; }
.rs-dark .alert-danger { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); color: #fca5a5; }
.rs-dark .text-danger { color: #fca5a5 !important; }
.rs-dark .iq-fancy-box { background: var(--rs-surface); border: 1px solid var(--rs-border); border-radius: 24px; box-shadow: var(--rs-shadow); }
.rs-dark .iq-fancy-box h5 { color: #fff; }
.rs-dark .iq-fancy-box p { color: var(--rs-body); }
.rs-dark .iq-fancy-box .iq-icon i { color: #818cf8; }
.rs-dark .button:not(.rs-price-cta) {
    border: 0; border-radius: 12px; background: linear-gradient(90deg, #4f46e5, #6366f1 50%, #7c3aed); color: #fff;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, .35), 0 4px 6px -4px rgba(79, 70, 229, .35);
}
.rs-dark .button:not(.rs-price-cta):hover { color: #fff; filter: brightness(1.08); }
.rs-dark .iq-our-clients { background: transparent !important; border-top: 1px solid rgba(30, 41, 59, .8); }
.rs-dark .iq-our-clients img { filter: brightness(0) invert(1); opacity: .55; }
