/* Help Center design layer.
 *
 * The presentation layer for Components/Pages/HelpCenterPage.razor. Global CSS,
 * linked from App.razor — it was Blazor-scoped until the stylesheets were
 * consolidated under wwwroot/css. The same two rules pages/home.css,
 * pages/saas-pricing.css and pages/blog-index.css call out apply:
 *
 * 1. Nothing confines these rules to this page any more, so every selector is
 *    qc- prefixed or a descendant of one. That still holds for the two rules
 *    that reach inside <LeadForm />: they hang off .qc-panel__form, so they
 *    cannot touch the same form anywhere else on the site.
 * 2. @keyframes carry the same qc- prefix the sibling sheets use for their own,
 *    so they cannot collide with the compiled Tailwind bundle, with Home's qh-
 *    animations, pricing's qp- ones or the blog's qb- ones — the generator does
 *    suffix keyframe names here, but the prefix keeps that a belt-and-braces
 *    detail rather than the thing the page depends on.
 *
 * These rules are unlayered and Tailwind v4's utilities live inside @layer, so
 * they win regardless of specificity. Keep every selector class-based and
 * prefixed.
 *
 * Palette is the logo ramp shared with the pricing and blog pages: #a22dea
 * (magenta-violet) → #7b5ee5 → #5b5de2 (indigo-blue), with #4f46e5 → #7c3aed as
 * the primary. No hue from outside that ramp appears on this page.
 *
 * Reading order the layout is built around: hero → four module groups, each a
 * headed band of cards → the shortlist form, held in a sticky rail beside them
 * so the one conversion point on the page never scrolls away. Cards still print
 * no article count, for the reason the .razor comment gives.
 */

/* ── hero ───────────────────────────────────────────────────────────── */
.qc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fbfaff 46%, #f3f1fe 100%);
    padding: 68px 0 58px;
}

.qc-hero__aurora,
.qc-hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.qc-hero__aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .72;
    animation: qc-drift 26s ease-in-out infinite;
}

.qc-hero__aurora i:nth-child(1) {
    width: 700px;
    height: 700px;
    top: -390px;
    right: -180px;
    background: radial-gradient(circle, rgba(129, 140, 248, .28), transparent 62%);
}

.qc-hero__aurora i:nth-child(2) {
    width: 540px;
    height: 540px;
    bottom: -300px;
    left: -190px;
    animation-delay: -9s;
    background: radial-gradient(circle, rgba(167, 139, 250, .26), transparent 62%);
}

.qc-hero__aurora i:nth-child(3) {
    width: 420px;
    height: 420px;
    top: 22%;
    left: 46%;
    animation-delay: -16s;
    background: radial-gradient(circle, rgba(162, 45, 234, .15), transparent 62%);
}

@keyframes qc-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-44px, 36px) scale(1.08); }
    66%      { transform: translate(36px, -26px) scale(.94); }
}

.qc-hero__grid {
    opacity: .5;
    background-image: radial-gradient(circle at 1px 1px, rgba(79, 70, 229, .22) 1.1px, transparent 0);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 62% 50% at 34% 6%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 62% 50% at 34% 6%, #000, transparent 72%);
}

.qc-hero__inner {
    position: relative;
    z-index: 5;
    max-width: 820px;
}

/* ── breadcrumb ─────────────────────────────────────────────────────── */
.qc-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: #94a3b8;
}

.qc-crumbs a {
    color: #64748b;
    font-weight: 600;
    transition: color .2s;
}

.qc-crumbs a:hover { color: #4f46e5; }

.qc-crumbs__sep {
    color: #cbd5e1;
    user-select: none;
}

.qc-crumbs__now {
    font-weight: 700;
    color: #0f172a;
}

/* ── eyebrow ────────────────────────────────────────────────────────── */
.qc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 17px 8px 9px;
    margin-bottom: 24px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(100deg, #4f46e5, #7c3aed 55%, #a855f7);
    box-shadow: 0 12px 30px -12px rgba(99, 102, 241, .85);
}

.qc-eyebrow__pip {
    width: 22px;
    height: 22px;
    border-radius: 99px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .22);
    animation: qc-pulse 2.8s ease-in-out infinite;
}

.qc-eyebrow__pip svg { width: 12px; height: 12px; }

@keyframes qc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .38); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.qc-hero__title {
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 800;
    color: #0b1020;
    margin: 0 0 20px;
}

.qc-accent {
    background: linear-gradient(96deg, #4f46e5 0%, #7c3aed 46%, #a22dea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qc-hero__lede {
    font-size: clamp(15.5px, 1.2vw, 17.5px);
    line-height: 1.7;
    color: #64748b;
    max-width: 680px;
    margin: 0;
}

/* ── body layout ────────────────────────────────────────────────────── */
.qc-main {
    position: relative;
    padding: 58px 0 92px;
    background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
}

.qc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    align-items: start;
    gap: 44px;
}

.qc-groups { min-width: 0; }

/* ── group band ─────────────────────────────────────────────────────── */
.qc-group { margin-bottom: 46px; }

.qc-group:last-of-type { margin-bottom: 0; }

.qc-group__head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeecf9;
}

.qc-group__ic {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 14px 30px -14px rgba(79, 70, 229, .95);
}

.qc-group__ic svg { width: 21px; height: 21px; }

.qc-group__txt { min-width: 0; }

.qc-group__title {
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #0b1020;
    margin: 0 0 5px;
}

.qc-group__blurb {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* ── category cards ─────────────────────────────────────────────────── */
.qc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 22px 22px 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #eae9f6;
    box-shadow: 0 20px 44px -34px rgba(15, 23, 42, .45);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}

/* Wipes in from the left on hover rather than sitting there permanently —
   twenty-one cards each wearing a coloured bar reads as a warning list. */
.qc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #4f46e5, #7c3aed 52%, #a22dea);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.qc-card:hover {
    transform: translateY(-4px);
    border-color: #d8d5f6;
    box-shadow: 0 34px 68px -36px rgba(79, 70, 229, .5);
}

.qc-card:hover::before { transform: scaleX(1); }

.qc-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}

/* The category's monogram, not an icon set: there are twenty-one categories and
   a hand-picked glyph for each would drift out of date the moment one is added
   to kb_categories. Derived from the name, so a new row styles itself. */
.qc-card__mono {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #5b21b6;
    background: linear-gradient(135deg, #f3f0ff, #ede9fe);
    border: 1px solid #e6e0fb;
    transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}

.qc-card:hover .qc-card__mono {
    color: #fff;
    background: linear-gradient(135deg, #7b5ee5, #a22dea);
    border-color: transparent;
    box-shadow: 0 12px 24px -12px rgba(140, 40, 220, .9);
}

.qc-card__name {
    font-size: 15.5px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -.015em;
    color: #0b1020;
    margin: 0;
    min-width: 0;
    transition: color .2s;
}

.qc-card:hover .qc-card__name { color: #4f46e5; }

.qc-card__desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.qc-card__go {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1eefb;
    font-size: 12.5px;
    font-weight: 700;
    color: #7c3aed;
}

.qc-card__arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 99px;
    display: grid;
    place-items: center;
    color: #7c3aed;
    background: #f6f1ff;
    transition: color .25s, background .25s, transform .25s;
}

.qc-card__arrow svg { width: 14px; height: 14px; }

.qc-card:hover .qc-card__arrow {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateX(3px);
}

/* ── search-the-kb link ─────────────────────────────────────────────── */
.qc-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #4338ca;
    background: #fff;
    border: 1px solid #e2ddf8;
    box-shadow: 0 16px 34px -26px rgba(79, 70, 229, .8);
    transition: color .2s, background .25s, border-color .2s, box-shadow .25s, transform .25s;
}

.qc-more:hover {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 26px 48px -24px rgba(79, 70, 229, .95);
}

.qc-more svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ── empty state ────────────────────────────────────────────────────── */
.qc-empty {
    padding: 56px 32px;
    text-align: center;
    border-radius: 24px;
    background: #fff;
    border: 1px dashed #ddd9f2;
}

.qc-empty__ic {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #7c3aed;
    background: #f6f1ff;
}

.qc-empty__ic svg { width: 25px; height: 25px; }

.qc-empty p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* ── shortlist rail ─────────────────────────────────────────────────── */
.qc-rail {
    position: sticky;
    top: 96px;
    min-width: 0;
}

.qc-panel {
    position: relative;
    overflow: hidden;
    padding: 26px 26px 28px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #eae9f6;
    box-shadow: 0 34px 74px -44px rgba(79, 70, 229, .6);
}

.qc-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed 52%, #a22dea);
}

/* Bleeds out of the panel's top-right corner, clipped by the overflow above. */
.qc-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -210px;
    right: -110px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(162, 45, 234, .16), transparent 66%);
}

.qc-panel__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.qc-panel__ic {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .95);
}

.qc-panel__ic svg { width: 19px; height: 19px; }

.qc-panel__title {
    font-size: 17.5px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0b1020;
    margin: 0;
}

.qc-panel__lede {
    position: relative;
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 22px;
}

.qc-panel__form { position: relative; }

/* LeadForm pairs its fields two-across at Tailwind's `sm:` breakpoint, which is
   a VIEWPORT query — it fires on a wide screen no matter how narrow the box
   holding the form is, so in this rail it was halving a 372px column into two
   ~170px inputs. Anchoring on .qc-panel__form stops the override at this page's
   panel, so no other page rendering LeadForm is touched. The class is repeated
   for the specificity the old [b-xxx] scope attribute used to supply.
   The button follows the fields to full width — a rail of full-width rows with
   one shrink-to-fit control at the bottom reads as an alignment mistake. */
.qc-panel__form.qc-panel__form .grid { grid-template-columns: minmax(0, 1fr); }

.qc-panel__form.qc-panel__form .startFreeTrial,
.qc-panel__form.qc-panel__form .bookADemo { width: 100%; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .qc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; }
}

@media (max-width: 1024px) {
    /* The rail drops below the groups, so it stops being sticky — a panel that
       tracks the viewport once it is full-width covers the content behind it. */
    .qc-layout { grid-template-columns: minmax(0, 1fr); gap: 46px; }
    .qc-rail { position: static; }
}

@media (max-width: 760px) {
    .qc-hero { padding: 52px 0 44px; }
    .qc-main { padding: 44px 0 62px; }

    .qc-grid { grid-template-columns: minmax(0, 1fr); }
    .qc-group { margin-bottom: 38px; }

    .qc-panel { padding: 22px 20px 24px; }
    .qc-more { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .qc-hero__aurora i,
    .qc-eyebrow__pip { animation: none !important; }

    .qc-card,
    .qc-card::before,
    .qc-card__mono,
    .qc-card__arrow,
    .qc-more {
        transition: none;
    }

    .qc-card:hover,
    .qc-more:hover,
    .qc-card:hover .qc-card__arrow {
        transform: none;
    }

    .qc-card:hover::before { transform: scaleX(1); }
}
