/* Public marketing homepage (/). Rich-text regions come from SuperAdmin → System → Homepage,
   so style plain h2/p/ul/ol/li/strong rather than relying on editor-authored classes. */

.qm-home {
    --qm-ink: #0f172a;
    --qm-muted: #5e6278;
    --qm-line: #e9edf4;
    --qm-surface: #ffffff;
    --qm-soft: #f5f8fa;
    --qm-navy: #1b1b2f;
    --qm-primary: var(--bs-primary, #1b84ff);
    --qm-primary-soft: var(--bs-primary-light, #e9f3ff);
    color: var(--qm-ink);
    background: var(--qm-surface);
    font-family: Inter, Helvetica, sans-serif;
}

.qm-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
.qm-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--qm-line);
}
.qm-nav .brand-logo-login { max-height: 40px; max-width: 180px; }
.qm-nav .fs-2qx { font-size: 1.5rem !important; }

/* Hero */
.qm-hero {
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(27, 132, 255, 0.12), transparent 70%),
        radial-gradient(700px 360px at 0% 100%, rgba(80, 205, 137, 0.10), transparent 70%),
        var(--qm-soft);
}
.qm-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--qm-primary-soft);
    color: var(--qm-primary);
    font-size: 0.85rem;
    font-weight: 600;
}
.qm-home h1.qm-hero-title {
    color: var(--qm-ink);
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.qm-hero-lead,
.qm-hero-lead p {
    color: var(--qm-muted);
    font-size: 1.2rem;
    line-height: 1.65;
    max-width: 36rem;
}
.qm-hero-lead p:last-child { margin-bottom: 0; }
.qm-cta { box-shadow: 0 10px 24px -10px rgba(27, 132, 255, 0.65); }

/* Hero illustration: sample quote card */
.qm-mock {
    max-width: 30rem;
    margin-left: auto;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--qm-surface);
    border: 1px solid var(--qm-line);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
    transform: rotate(1deg);
}
.qm-mock-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.qm-mock-kicker { color: var(--qm-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.qm-mock-title { font-size: 1.15rem; font-weight: 700; }
.qm-mock-lines { list-style: none; margin: 0; padding: 0; }
.qm-mock-lines li,
.qm-mock-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
}
.qm-mock-lines li { border-bottom: 1px dashed var(--qm-line); }
.qm-mock-lines li span:last-child,
.qm-mock-totals span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.qm-mock-totals { margin-top: 0.5rem; color: var(--qm-muted); }
.qm-mock-totals > div { padding: 0.3rem 0; }
.qm-mock-grand { color: var(--qm-ink); font-size: 1.1rem !important; font-weight: 700; border-top: 1px solid var(--qm-line); margin-top: 0.4rem; padding-top: 0.7rem !important; }
.qm-mock-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.qm-mock-btn {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border-radius: 0.6rem;
    background: var(--qm-soft);
    font-weight: 600;
    font-size: 0.9rem;
}
.qm-mock-btn-primary { background: #50cd89; color: #fff; }

/* Sections */
.qm-section { padding: 5rem 0; }
.qm-section-alt { background: var(--qm-soft); }
.qm-rich h2 {
    color: var(--qm-ink);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}
.qm-rich h3 { color: var(--qm-ink); font-weight: 700; }
.qm-rich p { color: var(--qm-muted); font-size: 1.05rem; line-height: 1.65; }
.qm-rich a:not(.btn) { color: var(--qm-primary); font-weight: 600; }
.qm-rich img { max-width: 100%; height: auto; border-radius: 0.75rem; }

.qm-features > h2,
.qm-features > p,
.qm-steps > h2,
.qm-steps > p { text-align: center; max-width: 44rem; margin-left: auto; margin-right: auto; }
.qm-features > p { margin-bottom: 3rem; }

/* Features: each <li> is a card; leading <strong> is its title */
.qm-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.qm-features ul li {
    position: relative;
    padding: 4.25rem 1.5rem 1.5rem;
    border: 1px solid var(--qm-line);
    border-radius: 1rem;
    background: var(--qm-surface);
    color: var(--qm-muted);
    font-size: 0.97rem;
    line-height: 1.6;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.qm-features ul li:hover {
    transform: translateY(-3px);
    border-color: rgba(27, 132, 255, 0.35);
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.45);
}
.qm-features ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--qm-primary-soft);
    color: var(--qm-primary);
    font-size: 0.95rem;
}
.qm-features ul li strong:first-child,
.qm-steps ol li strong:first-child {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--qm-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

/* How it works: numbered steps from <ol> */
.qm-steps ol {
    list-style: none;
    counter-reset: qm-step;
    padding: 0;
    margin: 3rem 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.qm-steps ol li {
    counter-increment: qm-step;
    position: relative;
    padding: 4.5rem 1.25rem 1.25rem;
    color: var(--qm-muted);
    line-height: 1.6;
}
.qm-steps ol li::before {
    content: counter(qm-step);
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--qm-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 0 6px var(--qm-primary-soft);
}
.qm-steps ol li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.1rem;
    left: 5rem;
    right: -0.75rem;
    border-top: 2px dashed #d6dde8;
}

/* Closing call to action */
.qm-closing {
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1b1b2f 0%, #232340 50%, #1b2e3a 100%);
    color: #fff;
}
.qm-closing-copy { max-width: 40rem; margin: 0 auto; }
.qm-closing .qm-rich h2,
.qm-closing h2 { color: #fff; }
.qm-closing .qm-rich p,
.qm-closing p { color: rgba(255, 255, 255, 0.78); }
.qm-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.qm-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

@media (max-width: 1199.98px) {
    .qm-features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-steps ol li::after { display: none; }
}

@media (max-width: 991.98px) {
    .qm-hero { padding: 3rem 0; }
    .qm-mock { margin: 0 auto; transform: none; }
    .qm-section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
    .qm-container { padding: 0 1rem; }
    .qm-features ul,
    .qm-steps ol { grid-template-columns: 1fr; }
    .qm-closing { padding: 3rem 1.25rem; }
    .qm-hero .btn-lg { width: 100%; }
}
