/* ==========================================================================
   Manuals.Center — storefront homepage
   Styles are scoped to .qm-home so they never leak into the rest of the theme.
   ========================================================================== */

/* Remove the default gap above the homepage content */
.cms-index-index .page-main {
    margin-block: 0;
}

.qm-home {
    --qm-ink: #0b1424;
    --qm-ink-soft: #33415c;
    --qm-muted: #64748b;
    --qm-line: #e3e8f0;
    --qm-surface: #ffffff;
    --qm-surface-alt: #f5f8fd;
    --qm-brand: #1d4ed8;
    --qm-radius-sm: 12px;
    --qm-radius: 16px;
    --qm-radius-lg: 22px;
    --qm-shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --qm-shadow: 0 20px 44px -26px rgba(15, 23, 42, .38);

    color: var(--qm-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.qm-home a {
    text-decoration: none;
}

.qm-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}

.qm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.qm-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 520px at 12% -20%, rgba(59, 130, 246, .50), transparent 62%),
        radial-gradient(760px 460px at 92% 6%, rgba(245, 158, 11, .28), transparent 58%),
        linear-gradient(155deg, #060d1c 0%, #11265c 52%, #0a1733 100%);
}

.qm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(1000px 520px at 50% 0%, #000 18%, transparent 78%);
    mask-image: radial-gradient(1000px 520px at 50% 0%, #000 18%, transparent 78%);
    pointer-events: none;
}

.qm-hero__grid {
    position: relative;
    display: grid;
    gap: 46px;
    padding-block: 68px 76px;
    align-items: center;
}

.qm-eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
}

.qm-hero__title {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.09;
    font-weight: 780;
    letter-spacing: -.03em;
}

.qm-hero__title-accent {
    background: linear-gradient(100deg, #85aeff, #f7b23b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.qm-hero__lead {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: 16px;
    color: rgba(255, 255, 255, .76);
}

/* Hero search -------------------------------------------------------------- */

.qm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 620px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: border-color .18s ease;
}

.qm-search:focus-within {
    border-color: rgba(255, 255, 255, .55);
}

.qm-search__icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    color: rgba(255, 255, 255, .62);
}

.qm-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

.qm-search__input::placeholder {
    color: rgba(255, 255, 255, .60);
}

.qm-search__button {
    flex: none;
    height: 44px;
    padding-inline: 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.qm-search__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px rgba(47, 107, 255, .95);
}

.qm-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.qm-hero__stats strong {
    color: #fff;
    font-weight: 700;
}

/* Hero artwork ------------------------------------------------------------- */

.qm-hero__art {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--qm-radius-lg);
    background: linear-gradient(150deg, rgba(47, 107, 255, .38), rgba(10, 20, 45, .92));
    box-shadow: 0 44px 74px -44px rgba(0, 0, 0, .9);
}

.qm-hero__art-frame {
    position: absolute;
    inset: 0;
    background-image: url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Modern%20isometric%20illustration%20of%20a%20stack%20of%20factory%20service%20manuals%20and%20repair%20documentation%20for%20office%20printers%20and%20copiers%2C%20blueprint%20line%20details%20and%20gear%20icons%20floating%20above%2C%20deep%20navy%20blue%20background%20with%20amber%20accents%2C%20clean%20minimal%20tech%20aesthetic%2C%20soft%20studio%20lighting%2C%20high%20detail&image_size=landscape_4_3");
    background-position: center;
    background-size: cover;
    opacity: .94;
}

.qm-hero__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(6, 13, 28, .74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 650;
    color: rgba(255, 255, 255, .88);
}

/* --------------------------------------------------------------------------
   Generic section shell
   -------------------------------------------------------------------------- */

.qm-section {
    padding-block: 64px;
}

.qm-section--muted {
    background: var(--qm-surface-alt);
    border-block: 1px solid var(--qm-line);
}

.qm-section__head {
    max-width: 680px;
    margin: 0 auto 34px;
    text-align: center;
}

.qm-section__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--qm-brand);
}

.qm-section__title {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -.02em;
    color: var(--qm-ink);
}

/* --------------------------------------------------------------------------
   Equipment type cards
   -------------------------------------------------------------------------- */

.qm-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.qm-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    border: 1px solid var(--qm-line);
    border-radius: var(--qm-radius);
    background: var(--qm-surface);
    box-shadow: var(--qm-shadow-sm);
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qm-card:hover {
    transform: translateY(-4px);
    border-color: #b9cdf7;
    box-shadow: var(--qm-shadow);
}

.qm-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 13px;
    background: linear-gradient(135deg, #e9f0ff, #dbe7ff);
    color: var(--qm-brand);
}

.qm-card__icon svg {
    width: 24px;
    height: 24px;
}

.qm-card__label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.qm-card__hint {
    font-size: 13px;
    color: var(--qm-muted);
}

.qm-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 650;
    color: var(--qm-brand);
}

.qm-card__meta svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.qm-card:hover .qm-card__meta svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Brand grid
   -------------------------------------------------------------------------- */

.qm-brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qm-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--qm-line);
    border-radius: var(--qm-radius-sm);
    background: var(--qm-surface);
    color: var(--qm-ink);
    font-size: 14px;
    font-weight: 650;
    transition: transform .16s ease, border-color .16s ease, color .16s ease;
}

.qm-brand:hover {
    transform: translateY(-2px);
    border-color: var(--qm-brand);
    color: var(--qm-brand);
}

.qm-brand__count {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef2f9;
    font-size: 12px;
    font-weight: 650;
    color: var(--qm-muted);
    transition: background-color .16s ease, color .16s ease;
}

.qm-brand:hover .qm-brand__count {
    background: #e3ecff;
    color: var(--qm-brand);
}

/* --------------------------------------------------------------------------
   Featured product sliders (Hyvä slider, spaced out)
   -------------------------------------------------------------------------- */

.qm-sliders > * + * {
    margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.qm-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.qm-feature {
    padding: 26px 22px;
    border: 1px solid var(--qm-line);
    border-radius: var(--qm-radius);
    background: var(--qm-surface);
}

.qm-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--qm-ink);
    color: #fff;
}

.qm-feature__icon svg {
    width: 22px;
    height: 22px;
}

.qm-feature h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.qm-feature p {
    margin: 0;
    font-size: 14px;
    color: var(--qm-muted);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.qm-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-step {
    padding: 28px 24px;
    border: 1px solid var(--qm-line);
    border-radius: var(--qm-radius);
    background: var(--qm-surface);
}

.qm-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f6bff, #1d4ed8);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.qm-step h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.qm-step p {
    margin: 0;
    font-size: 14px;
    color: var(--qm-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.qm-faq__list {
    display: grid;
    gap: 10px;
    max-width: 820px;
    margin-inline: auto;
}

.qm-faq__item {
    overflow: hidden;
    border: 1px solid var(--qm-line);
    border-radius: var(--qm-radius-sm);
    background: var(--qm-surface);
}

.qm-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.qm-faq__item summary::-webkit-details-marker {
    display: none;
}

.qm-faq__item summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid var(--qm-brand);
    border-bottom: 2px solid var(--qm-brand);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.qm-faq__item[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.qm-faq__item p {
    margin: 0;
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--qm-ink-soft);
}

.qm-faq__item p a {
    color: var(--qm-brand);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.qm-cta-section {
    padding-block: 0 80px;
}

.qm-cta {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 42px 34px;
    border-radius: var(--qm-radius-lg);
    color: #fff;
    background:
        radial-gradient(700px 300px at 8% 0%, rgba(47, 107, 255, .58), transparent 60%),
        linear-gradient(140deg, #0b1424, #16295e 60%, #0b1424);
    box-shadow: var(--qm-shadow);
}

.qm-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 750;
    letter-spacing: -.02em;
}

.qm-cta p {
    max-width: 620px;
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
}

.qm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.qm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding-inline: 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 650;
    transition: transform .16s ease, background-color .16s ease;
}

.qm-button--primary {
    background: linear-gradient(135deg, #f7b23b, #f59e0b);
    color: #3a2606;
}

.qm-button--primary:hover {
    transform: translateY(-2px);
}

.qm-button--ghost {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.qm-button--ghost:hover {
    background: rgba(255, 255, 255, .12);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
    .qm-brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .qm-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qm-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .qm-section {
        padding-block: 76px;
    }

    .qm-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qm-brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .qm-cta {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .qm-hero__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        padding-block: 92px 100px;
    }

    .qm-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .qm-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .qm-brands {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1140px) {
    .qm-cards {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .qm-cta {
        grid-template-columns: 1.4fr auto;
        padding: 52px 48px;
    }
}