/* ==========================================================================
   SHMS Marketing Site — Design System (2026 refresh)
   --------------------------------------------------------------------------
   Token-driven, RTL-safe stylesheet for the public marketing pages.
   Loaded after Bootstrap 4.5. Uses CSS logical properties so a single
   ruleset serves both LTR (en) and RTL (ar); style-rtl.css only sets
   direction + Almarai typography for Arabic.

   Contents:
     1.  Design tokens (:root)
     2.  Reset & base
     3.  Typography
     4.  Layout helpers & section rhythm
     5.  Text/color utilities
     6.  Buttons
     7.  Navbar
     8.  Hero
     9.  Features
     10. Solutions (services)
     11. Advantages
     12. Marketing CTA band
     13. Solution detail page
     14. Pricing
     15. Contact
     16. Forms, modals & wizard
     17. Toasts
     18. Footer
     19. Back-to-top
     20. Activation / reset / message pages
     21. Request-a-Demo page
     22. Motion & reduced-motion
     23. Responsive
   ========================================================================== */

/* ============================ 1. Design tokens ============================ */
:root {
    /* Brand — preserved identity: trust blue + warm orange accent */
    --brand:        #3786cf;
    --brand-600:    #2f74b6;
    --brand-700:    #275f96;
    --brand-050:    #eef4fb;
    --brand-100:    #dbe8f6;

    --accent:       #ee653a;   /* primary CTA */
    --accent-600:   #db5227;
    --accent-700:   #c1451d;
    --accent-050:   #fdefe9;

    /* Ink & text */
    --ink:          #22303c;   /* headings — deepened for contrast */
    --ink-2:        #364655;   /* legacy slate, secondary headings */
    --body:         #4c5966;   /* body copy (>=4.5:1 on white) */
    --muted:        #6a7683;   /* muted labels/eyebrow supporting */

    /* Surfaces */
    --bg:           #ffffff;
    --surface:      #f6f8fb;   /* alternating section background */
    --surface-2:    #eef2f7;
    --footer-bg:    #22384a;
    --border:       #e4eaf1;
    --border-2:     #d9e1ea;

    /* Semantic */
    --ring:         rgba(55, 134, 207, .28);
    --danger:       #e03131;
    --on-accent:    #ffffff;
    --on-brand:     #ffffff;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Shadow — soft & layered, no glow */
    --sh-xs: 0 1px 2px rgba(24, 51, 77, .05);
    --sh-sm: 0 2px 8px rgba(24, 51, 77, .06);
    --sh-md: 0 10px 30px rgba(24, 51, 77, .08);
    --sh-lg: 0 20px 48px rgba(24, 51, 77, .12);

    /* Layout */
    --container: 1160px;
    --gutter: 20px;

    /* Typography */
    --font-head: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;

    /* Motion */
    --t-fast: 150ms;
    --t: 260ms;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================ 2. Reset & base ============================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--brand-700); }

::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================ 3. Typography =============================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    margin: 0 0 .4em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-inline-start: 1.25rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .9rem;
}

/* ====================== 4. Layout helpers & rhythm ======================== */
.wrapper { overflow: clip; }

.container-m,
.container-s {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-s { max-width: 940px; }

/* Vertical rhythm for full-width sections */
.hero,
.features,
.ar-ft-single,
.pricing-section,
.demo-block { position: relative; }

.section-head {
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 3rem;
    text-align: center;
}
.section-head .eyebrow { color: var(--accent); }
.section-head .section-intro { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }
.section-head .section-intro p { margin: 0; }
.section-head .section-intro p + p { margin-top: .5rem; }

/* Alternating surfaces */
.section--surface { background: var(--surface); }

/* =========================== 5. Text utilities =========================== */
.text-blue   { color: var(--brand) !important; }
.text-orange { color: var(--accent) !important; }
.text-gray   { color: var(--muted) !important; }
.text-main   { color: var(--accent) !important; }
.text-white  { color: #fff !important; }
.text-danger { color: var(--danger) !important; }

.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.relative { position: relative; }
.english-text { font-family: var(--font-body); direction: ltr; }

/* ============================== 6. Buttons =============================== */
.custom-button,
.request-a-demo,
.btn-primary,
.btn-action,
.demo-cta,
.demo-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: 12px 30px;
    margin: 0;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    color: var(--on-accent);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    cursor: pointer;
    transition: background var(--t) var(--ease), transform var(--t) var(--ease),
                box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.custom-button:hover,
.request-a-demo:hover,
.btn-primary:hover,
.btn-action:hover,
.demo-cta:hover,
.demo-submit:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: #fff;
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.custom-button:active,
.request-a-demo:active,
.btn-primary:active,
.btn-action:active { transform: translateY(0); box-shadow: var(--sh-xs); }

.custom-button:focus-visible,
.request-a-demo:focus-visible,
.btn-primary:focus-visible,
.btn-action:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Secondary / ghost button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: 12px 26px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand);
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t) var(--ease);
}
.btn-ghost:hover {
    color: var(--brand-700);
    border-color: var(--brand);
    background: var(--brand-050);
    text-decoration: none;
}

/* White button (used on orange pricing panel) */
.btn-white {
    color: var(--accent) !important;
    background: #fff !important;
    border-color: #fff !important;
}
.btn-white:hover { color: var(--accent-700) !important; background: #fff !important; }

.isDisabled { opacity: .75; pointer-events: none; }

/* =============================== 7. Navbar =============================== */
.navbar {
    padding: 18px 0;
    background: transparent;
    transition: background var(--t) var(--ease), padding var(--t) var(--ease),
                box-shadow var(--t) var(--ease);
}
.navbar .container { display: flex; align-items: center; }

.navbar-brand.main { padding: 0; margin: 0; }
.navbar-brand.main img { width: 140px; height: auto; }

.navbar-nav { align-items: center; }
.navbar-center { gap: 4px; }

.navbar .nav-item .nav-link {
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    position: relative;
    transition: color var(--t-fast) var(--ease);
}
.navbar .nav-item .nav-link:hover { color: var(--brand); }

/* Active (onePageNav adds .current on the <li>) */
.navbar .nav-item.current > .nav-link,
.navbar .nav-item.current .nav-link { color: var(--brand); }
.navbar .nav-item.current > .nav-link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Scroll state (JS toggles .past-main / .effect-main on .navbar) */
.navbar.effect-main { transition: all var(--t) var(--ease); }
.navbar.past-main {
    padding: 12px 0;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--border), var(--sh-sm);
}

/* Language switch */
.languge-switch {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted) !important;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    margin-inline-start: 8px;
    transition: all var(--t-fast) var(--ease);
    white-space: nowrap;
}
.languge-switch:hover { color: var(--brand) !important; border-color: var(--brand-100); background: var(--brand-050); }

/* Nav CTA + login (the desktop trailing controls) */
.nav-actions { gap: 6px; margin-inline-start: 10px; }
nav .request-a-demo { min-height: 40px; padding: 10px 20px; font-size: .85rem; }

.login-button { display: inline-flex; align-items: center; }
.login-button.desktop { padding: 8px 12px; }
.login-button.desktop img { width: 20px; height: auto; }
.login-button img { filter: none; }

/* Toggler */
.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--ring); }

/* =============================== 8. Hero ================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 90px;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}
.hero .header-row { align-items: center; }
.hero-content { padding-block: 0; }

.hero-content h2 {
    color: var(--ink);
}
/* First heading (sub_title) acts as the lead headline */
.hero-content h1.text-blue,
.hero-content h2.text-blue {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
    font-weight: 800;
    color: var(--ink) !important;
    line-height: 1.12;
    margin: 0 0 .5rem;
}
/* Supporting line rendered right after */
.hero-content h2:not(.text-blue) {
    font-size: clamp(1rem, .9rem + .6vw, 1.35rem) !important;
    font-weight: 600;
    color: var(--brand) !important;
    line-height: 1.4;
    margin-bottom: 1.1rem;
}
.hero-content p {
    font-size: 1.06rem;
    color: var(--body);
    line-height: 1.75;
    max-width: 34em;
    margin-bottom: 1.9rem;
}
.hero-lead { font-size: 1.06rem; color: var(--body); line-height: 1.75; max-width: 36em; margin-bottom: 1.9rem; }
.hero-lead p { margin-bottom: .75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-content .custom-button { margin-top: 0; }
.hero img { border-radius: var(--r-lg); }

/* Hero trust strip (optional, added in markup) */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 1.6rem;
    padding: 0;
    list-style: none;
}
.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-2);
}
.hero-trust li::before {
    content: "";
    width: 18px; height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: var(--brand-050);
    box-shadow: inset 0 0 0 2px var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233786cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================= 9. Features =============================== */
.features { padding: 84px 0; background: var(--bg); }
.features + .features { padding-top: 0; }

.features-intro { width: 100%; max-width: 680px; margin-inline: auto; margin-bottom: 3rem; }
.features-intro h2 { color: var(--ink); margin-bottom: .6rem; }
.features-intro p { font-size: 1.05rem; color: var(--muted); }

.features-row { --gap: 26px; }

.feature-card {
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: var(--sh-xs);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
                border-color var(--t) var(--ease);
    text-align: start;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: var(--brand-100);
}
.feature-card img {
    height: 46px;
    width: auto;
    margin-bottom: 18px;
    padding: 10px;
    background: var(--brand-050);
    border-radius: var(--r-sm);
    box-sizing: content-box;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.feature-card p { font-size: .95rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Give the feature grid consistent gutters via the wrapping columns */
.features-row .col-lg-3,
.features-row .col-md-4 { margin-bottom: 26px; }

/* ========================= 10. Solutions (services) ====================== */
.ar-ft-single { padding: 84px 0; background: var(--surface); }
.ar-ft-single .features-intro h2 { color: var(--ink); }

.solutions-stack { display: flex; flex-direction: column; gap: 40px; }

.solution-block {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: calc(var(--r-lg) + 4px);
    padding: clamp(20px, 2.5vw, 34px);
    box-shadow: var(--sh-sm);
    transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.solution-block:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.solution-block.is-reversed .solution-media { order: 2; }

/* Media (image + number badge) */
.solution-media { position: relative; }
.solution-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    background: var(--surface-2);
}
.solution-badge {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px; height: 46px;
    padding: 0 12px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
}

/* Body */
.solution-body { min-width: 0; }
.solution-title {
    font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .85rem;
}

/* The DB description is rich HTML — style it for scannability */
.service-desc { color: var(--body); font-size: 1rem; line-height: 1.75; }
.service-desc > *:first-child { margin-top: 0; }
.service-desc h1, .service-desc h2, .service-desc h3 {
    font-size: 1.12rem !important;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 .6rem;
}
.service-desc p {
    font-size: 1rem !important;
    color: var(--body);
    line-height: 1.75;
    margin: 0 0 1.15rem;
}
.service-desc ul, .service-desc ol {
    list-style: none !important;
    margin: 0 0 1.4rem !important;
    padding: 0 !important;
    display: grid;
    gap: .6rem;
}
.service-desc li {
    position: relative;
    list-style: none !important;
    padding-inline-start: 1.9rem !important;
    margin: 0 !important;
    font-size: .97rem !important;
    line-height: 1.55;
    color: var(--body);
}
.service-desc li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233786cf' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}
.solution-body .custom-button { margin-top: .5rem; }

/* ============================ 11. Advantages ============================= */
#advantages.features { background: var(--bg); }
.flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    margin-top: 1rem;
}
.flex-row-col { flex: 1 1 260px; max-width: 320px; display: flex; }

.feature-list {
    width: 100%;
    margin: 0;
    padding: 34px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.feature-list:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feature-list.allHeight { height: 100%; }

.card-icon { margin-bottom: 1rem; }
.card-icon .card-img {
    width: 84px; height: 84px;
    margin-inline: auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-050);
    border-radius: 50%;
}
.card-icon .card-img img { height: 44px; width: auto; }
.card-text { margin-top: 0; }
.card-text h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.card-text p { font-size: .95rem; color: var(--muted); line-height: 1.65; max-width: none; margin: 0; }

/* Inline check bullet (pricing + subscribe modal) */
.span-check {
    display: inline-block;
    width: 18px; height: 18px;
    margin-inline-end: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23ee653a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* =========================== 11b. Industries ============================ */
.industries { padding: 72px 0; }
.industries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
.industry-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 12px 22px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-2);
    box-shadow: var(--sh-xs);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.industry-item::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    flex: 0 0 8px;
}
.industry-item:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); border-color: var(--brand-100); }

/* ========================= 12. Marketing CTA band ======================== */
/* The closing marketing section becomes a distinct full-width gradient band */
.marketing-cta {
    background: linear-gradient(135deg, var(--brand-700), var(--brand));
    color: #fff;
    border-radius: 0;
    padding: 80px 0;
}
.marketing-cta h2, .marketing-cta .text-blue { color: #fff !important; }
.marketing-cta p, .marketing-cta .text-gray { color: rgba(255,255,255,.85) !important; }
.marketing-cta .custom-button { background: #fff; color: var(--accent); border-color: #fff; }
.marketing-cta .custom-button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ======================= 13. Solution detail page ======================== */
#features.features .features-intro h2 { color: var(--ink); }

.solution-hero {
    padding: 150px 0 60px;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    text-align: center;
}
.solution-hero h1 { color: var(--ink); margin-bottom: 1rem; }
.solution-hero p { font-size: 1.1rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.75rem; max-width: 44em; margin-inline: auto; }
.solution-hero-desc {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    text-align: start;
    color: var(--body);
    line-height: 1.75;
}
.solution-hero-desc h2 { font-size: 1.35rem; color: var(--ink); margin: 1.25rem 0 .5rem; }
.solution-hero-desc p { color: var(--body); margin-bottom: .75rem; }
.solution-hero-desc ul { padding-inline-start: 1.25rem; }
.solution-hero-desc li { margin-bottom: .4rem; }

/* module cards on the solution page reuse .feature-list */
.solution-modules { padding-top: 24px; }
.solution-modules .feature-list { text-align: start; margin-bottom: 26px; }
.solution-modules .card-icon .card-img { margin-inline: 0; width: 72px; height: 72px; }
.solution-modules .card-text { text-align: start; }
.solution-modules .card-text p { max-width: none; }
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cut-desc, .all-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.moreDescription, .lessDescription {
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.moreDescription:hover, .lessDescription:hover { color: var(--brand-700); }

/* =============================== 14. Pricing ============================= */
.pricing-section { padding: 130px 0 90px; }
.pricing-intro h1 { color: var(--ink); margin-bottom: .75rem; }
.pricing-intro p { font-size: 1.05rem; color: var(--muted); margin-bottom: 3rem; }

.pricing-section .table-left,
.pricing-section .table-right {
    max-width: 420px;
    margin: 0 auto 30px;
    padding: 40px 34px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    text-align: start;
}
.pricing-section .table-right {
    background: linear-gradient(135deg, var(--accent), var(--accent-700));
    border-color: transparent;
    color: #fff !important;
    box-shadow: var(--sh-md);
}
.table-left h3, .table-right h3 { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.table-left p, .table-right p { font-size: .95rem; color: var(--muted); }
.pricing-section .table-right h3,
.pricing-section .table-right p { color: #fff !important; }

.pricing-details { padding: 24px 0 8px; }
.table-left .pricing-details span,
.table-right .pricing-details span {
    display: inline-block;
    font-family: var(--font-head);
    font-style: normal;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
}
.table-right .pricing-details span { color: #fff !important; }

.table-left .form-holder,
.table-right .form-holder { margin-bottom: 6px; }
.pricing-section .custom-select {
    height: auto;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-2);
    color: var(--ink) !important;
    background-color: #fff;
}
.pricing-section .table-right .custom-select { color: var(--ink) !important; }
.pricing-section .form-check { padding-block: 3px; }
.pricing-section .btn-action,
.pricing-section .subscribe_now { width: 100%; margin-top: 1.5rem; }

/* =============================== 15. Contact ============================= */
/* Hero */
.contact-page { background: #fff; overflow: hidden; }
.contact-hero {
    padding: 160px 0 56px;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    text-align: center;
}
.contact-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}
.contact-hero-title { font-weight: 800; margin-bottom: 1rem; color: var(--ink) !important; }
.contact-hero-subtitle { font-size: 1.1rem; line-height: 1.75; margin-bottom: 1rem; color: var(--body); max-width: 40em; margin-inline: auto; }
.contact-hero-note { font-size: .85rem; margin: 0; color: var(--muted); }

/* Main layout: info column + form card */
.contact-layout { padding: 64px 0 80px; background: #fff; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 44px;
    align-items: start;
}
/* Let grid tracks shrink below content min-content (e.g. fixed-width reCAPTCHA) */
.contact-grid > .contact-aside,
.contact-grid > .contact-form-card { min-width: 0; }
.contact-form-card .g-recaptcha { max-width: 100%; overflow: hidden; }

/* Left column */
.contact-aside-title { font-weight: 800; font-size: 1.55rem; color: var(--ink); margin-bottom: .55rem; }
.contact-aside-text { color: var(--body); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.9rem; }

.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-bottom: 2.1rem; }
.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: start;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
a.contact-method:hover {
    border-color: var(--brand-100);
    box-shadow: var(--sh-sm);
    transform: translateY(-2px);
    text-decoration: none;
}
.contact-method.is-static { cursor: default; }
.contact-method-icon {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand);
    background: var(--brand-050);
    border-radius: var(--r-md);
}
.contact-method-icon svg { width: 22px; height: 22px; }
.contact-method-body { display: flex; flex-direction: column; min-width: 0; }
.contact-method-label {
    font-family: var(--font-head);
    font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 2px;
}
.contact-method-value { font-size: 1.02rem; font-weight: 700; color: var(--ink); word-break: break-word; line-height: 1.35; }
a.contact-method:hover .contact-method-value { color: var(--brand); }
.contact-method-hint { font-size: .85rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

.contact-topics-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .95rem; }
.contact-topics-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-topics-list li {
    position: relative;
    padding-inline-start: 32px;
    font-size: .98rem; color: var(--body); line-height: 1.5;
}
.contact-topics-list li::before {
    content: "";
    position: absolute; inset-inline-start: 0; top: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233786cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

/* Right column: form card */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: 40px 36px;
    text-align: start;
}
.contact-form-title { font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-bottom: .35rem; }
.contact-form-subtitle { color: var(--muted); font-size: .98rem; margin-bottom: 1.85rem; }
.contact-form-card .form-row { margin-bottom: 1.1rem; }
.contact-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-star { color: var(--accent); }
.contact-required-note { font-size: .8rem; color: var(--muted); margin: -.15rem 0 1.25rem; }
.contact-submit { width: 100%; min-height: 50px; margin-top: .25rem; }
.contact-privacy { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* Final CTA reuses .marketing-cta; a touch tighter for this page */
.contact-cta p { margin-bottom: 1.75rem; }

/* ==================== 16. Forms, modals & wizard ========================= */
.form-content { width: 100%; }
.form-header { margin-bottom: 1.25rem; }
.form-header h2, .form-header h3 { color: var(--ink); }
.form-header h2.text-blue, .form-header h3.text-blue { color: var(--brand) !important; }

.form-row { margin: 0 0 1rem; }
.form-holder { width: 100%; }
.requestForm .label,
.demo-label,
.contact-label {
    display: block;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: .4rem;
    text-align: start;
}

/* Inputs */
.form-control,
.requestForm input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.requestForm select,
.requestForm textarea {
    height: auto;
    min-height: 46px;
    padding: 11px 14px;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border-2) !important;
    border-radius: var(--r-md) !important; /* beat steps-style.css !important */
    box-shadow: none;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-control:focus,
.requestForm input:focus,
.requestForm select:focus,
.requestForm textarea:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--ring) !important; /* beat steps-style focus reset */
    outline: none;
}
.requestForm textarea { min-height: 120px; }
.form-control::placeholder { color: #9aa6b2; }

.was-validated .form-control:invalid,
.form-control.is-invalid { border-color: var(--danger); }

/* Color & logo pickers in the wizard */
.color-section, .logo-section { margin-bottom: 1rem; }
.color-section .input-group-text,
.logo-section .input-group-text {
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
}
.file-section { display: inline-block; }
.img-container { margin-top: 10px; }
.img-thumbnail { border-radius: var(--r-md); border: 1px solid var(--border); }

.flex-domain-sect { display: flex; align-items: center; gap: 8px; }
.flex-domain-sect .english-text { font-size: .9rem; color: var(--muted); white-space: nowrap; }

/* Modal shell */
.modal-content {
    border: 0;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.loginModal .modal-content,
.subscribtionModal .modal-content { padding: 6px; }
.loginModal .form-content { padding: 30px 26px; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.grid-container .flex { display: flex; align-items: center; gap: 6px; }

.anchor { color: var(--brand); font-weight: 600; cursor: pointer; }
.anchor:hover { color: var(--brand-700); }

/* jQuery Steps wizard (steps-style.css loads after; keep light overrides) */
.subscribtionModal .wizard > .steps ul { display: flex; }
.subscribtionModal .wizard > .actions a,
.subscribtionModal .wizard > .actions a:hover,
.subscribtionModal .wizard > .actions a:active {
    background: var(--accent);
    border-radius: var(--r-md);
    font-family: var(--font-head);
    font-weight: 600;
    padding: 10px 22px;
    color: #fff;
}
.subscribtionModal .wizard > .actions .disabled a { background: var(--border-2); }

/* =============================== 17. Toasts ============================== */
.toast {
    position: fixed;
    top: 90px;
    z-index: 1080;
    min-width: 300px;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.toast .toast-header {
    font-family: var(--font-head);
    font-weight: 700;
    border: 0;
    border-block-end: 1px solid var(--border);
    padding: 12px 16px;
}
.success_toast .toast-header { color: #157347; }
.error_toast .toast-header { color: var(--danger); }
.toast .toast-header::before {
    content: "";
    width: 6px; align-self: stretch;
    margin-inline-start: -16px; margin-inline-end: 12px;
}
.success_toast .toast-header::before { background: #2ea36a; }
.error_toast .toast-header::before { background: var(--danger); }
.toast .toast-body { padding: 14px 16px; color: var(--body); font-size: .95rem; }

/* =============================== 18. Footer ============================== */
.footer-sm {
    padding: 40px 0;
    background: var(--footer-bg);
    text-align: center;
    color: rgba(255, 255, 255, .82);
}
.footer-sm .logo-row { align-items: center; }
.footer-sm .footer-logo {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding-inline-end: 16px;
    border-inline-end: 1px solid rgba(255, 255, 255, .25);
    border-right: 0;
    filter: brightness(0) invert(1);
}
.footer-sm .footer-logo img { width: 78px; height: auto; }
.footer-sm span { font-family: var(--font-body); font-size: .9rem; color: rgba(255,255,255,.82); }
.footer-sm ul { list-style: none; margin-top: 14px; padding: 0; }
.footer-sm ul li { display: inline-block; margin-inline: 8px; }
.footer-sm ul li a { color: #fff; font-size: .9rem; font-weight: 500; }
.footer-sm ul li a:hover { color: #fff; opacity: .8; }

/* Footer internal-links nav */
.footer-nav {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}
.footer-nav a {
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    transition: color var(--t-fast) var(--ease);
}
.footer-nav a:hover { color: #fff; }

/* Breadcrumbs */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: .82rem;
}
.crumbs a { color: var(--brand); font-weight: 600; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs span[aria-current] { color: var(--muted); }
.crumbs-sep { color: var(--border-2); }

/* Secondary CTA link (home marketing band) */
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.cta-link {
    font-family: var(--font-head);
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: .9;
}
.cta-link:hover { color: #fff; opacity: 1; }

/* Inline contextual link (demo form subtitle) */
.demo-inline-link { color: var(--brand); font-weight: 600; }
.demo-inline-link:hover { color: var(--brand-700); }

/* ============================ 19. Back-to-top =========================== */
.bk-top {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    z-index: 90;
    display: none;
    width: 46px; height: 46px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--sh-md);
    transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.bk-top:hover { transform: translateY(-3px); background: var(--accent-600); }
.bk-top-txt { display: flex; align-items: center; justify-content: center; height: 100%; }
.bk-top-txt i { color: #fff; font-size: 18px; }

/* ================= 20. Activation / reset / message pages ================ */
.message-parent {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 60px;
}
.message-cont, .activate-message {
    max-width: 620px;
    margin-inline: auto;
    padding: 40px 34px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    font-size: 1.1rem;
    color: var(--ink-2);
    text-align: center;
}
.activate-message .form-header h2 { margin-bottom: 1rem; }
.progress-parent { flex-direction: column; }

/* ========================= 21. Request-a-Demo page ======================= */
/* Migrated from the page's former inline <style> into shared tokens */
.demo-page { background: #fff; overflow: hidden; }
.demo-hero {
    padding: 160px 0 70px;
    background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
    text-align: center;
}
.demo-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}
.demo-hero-title { font-weight: 800; margin-bottom: 1rem; color: var(--ink) !important; }
.demo-hero-subtitle { font-size: 1.1rem; line-height: 1.75; margin-bottom: 1.75rem; color: var(--body); }
.demo-hero-note { font-size: .85rem; margin-top: 1.1rem; margin-bottom: 0; color: var(--muted); }

.demo-block { padding: 72px 0; }
.demo-block.demo-about, .demo-block.demo-caps, .demo-block.demo-who { text-align: center; }
.demo-see, .demo-who { background: var(--surface); }
.demo-form-section { background: var(--surface); }

.demo-section-title { font-weight: 800; margin-bottom: 1.25rem; color: var(--ink); }
.demo-about p { font-size: 1.05rem; line-height: 1.8; color: var(--body); }

.demo-benefits { background: #fff; }
.demo-benefits .row { --bs-gutter: 0; }
.demo-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    box-shadow: var(--sh-xs);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    margin-bottom: 24px;
    text-align: start;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.demo-card-index {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    font-size: .95rem; font-weight: 800; color: var(--accent);
    background: var(--accent-050);
    border-radius: var(--r-sm);
    margin-bottom: 14px;
}
.demo-card h5 { font-weight: 700; margin: 0 0 .5rem; font-size: 1.1rem; color: var(--ink); }
.demo-card p { font-size: .95rem; line-height: 1.7; margin: 0; color: var(--muted); }

.demo-check-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px;
    text-align: start;
}
.demo-check-list li {
    position: relative;
    padding-inline-start: 36px;
    font-size: 1rem; color: var(--body); line-height: 1.5;
}
.demo-check-list li::before {
    content: "";
    position: absolute; inset-inline-start: 0; top: 1px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}

.demo-caps-text { max-width: 640px; margin: 0 auto 1.75rem; font-size: 1.05rem; color: var(--body); }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.demo-chip {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--brand-050);
    color: var(--brand-700);
    font-size: .9rem; font-weight: 600;
    border: 1px solid var(--brand-100);
}

.demo-who-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.demo-who-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 22px;
    font-size: 1rem; font-weight: 600; color: var(--ink-2);
}

.demo-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 42px 36px;
    box-shadow: var(--sh-md);
}
.demo-form-subtitle { margin-bottom: 1.75rem; color: var(--muted); }
.demo-form-card .form-group { margin-bottom: 1.15rem; }
.demo-privacy { font-size: .8rem; margin-top: 14px; margin-bottom: 0; color: var(--muted); }
.demo-submit { min-width: 200px; margin-top: .5rem; }

/* ====================== 22. Motion & reduced-motion ====================== */
[data-aos] { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ============================= 23. Responsive =========================== */
@media (max-width: 991.98px) {
    /* Mobile nav panel */
    .navbar-collapse {
        background: #fff;
        margin-top: 12px;
        padding: 12px;
        border-radius: var(--r-md);
        box-shadow: var(--sh-md);
    }
    .navbar .nav-item .nav-link { padding: 12px 14px; }
    .navbar .nav-item.current > .nav-link::after { display: none; }
    .navbar-center { align-items: stretch; }
    nav .request-a-demo { margin: 8px 0; }

    /* Contact: single column, form gets its own breathing room */
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 767.98px) {
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero-content { text-align: center !important; }
    .hero-content p { margin-inline: auto; }
    .hero-trust { justify-content: center; }
    .hero img { margin-top: 32px; }

    .solution-block { grid-template-columns: 1fr; gap: 24px; }
    .solution-block.is-reversed .solution-media { order: 0; }
    .solution-media img { aspect-ratio: 16 / 10; }

    .demo-check-list { grid-template-columns: 1fr; }
    .grid-container { grid-template-columns: 1fr; }

    .features, .ar-ft-single, .demo-block { padding: 56px 0; }
    .section-head, .features-intro { margin-bottom: 2rem; }
}

@media (max-width: 767.98px) {
    .contact-form-2col { grid-template-columns: 1fr; gap: 1.1rem; }
    .contact-hero { padding: 130px 0 44px; }
    .contact-layout { padding: 48px 0 60px; }
}

@media (max-width: 575.98px) {
    .demo-form-card, .contact-card, .contact-form-card, .message-cont, .activate-message { padding: 26px 20px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .custom-button, .hero-actions .btn-ghost { width: 100%; }
    .custom-button, .request-a-demo, .btn-primary { width: 100%; }
    .nav-actions .request-a-demo, nav .request-a-demo { width: auto; }
    .industry-item { width: auto; }
}
