/* Home page sections (Admin > CMS & Frontend > Custom Scripts & CSS).
   Everything is scoped under .mxh and follows the site theme colours.
   Look: quiet surfaces, thin lines, one accent colour, generous spacing. */
.mxh {
    --mxh-primary: var(--theme-primary, #1e293b);
    --mxh-accent: var(--theme-accent, #2563eb);
    --mxh-ink: #0b1220;
    --mxh-text: #3f4a5c;
    --mxh-muted: #667085;
    --mxh-line: #e7eaf0;
    --mxh-soft: #f7f8fa;
    --mxh-surface: #ffffff;
    --mxh-radius: 16px;
    color: var(--mxh-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.mxh *, .mxh *::before, .mxh *::after { box-sizing: border-box; }
.mxh h2, .mxh h3, .mxh h4 { color: var(--mxh-ink); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
.mxh p { margin: 0; }
.mxh a { text-decoration: none; }
.mxh svg { flex-shrink: 0; }

/* section + heading */
.mxh-section { margin: 0 0 96px; }
.mxh-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.mxh-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--mxh-accent); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mxh-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
.mxh-head p { margin-top: 14px; font-size: 16.5px; color: var(--mxh-muted); line-height: 1.6; }

/* buttons */
.mxh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 650; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.mxh-btn-accent { background: var(--mxh-accent); color: #fff !important; }
.mxh-btn-accent:hover { background: color-mix(in srgb, var(--mxh-accent) 88%, #000); }
.mxh-btn-light { background: var(--mxh-surface); color: var(--mxh-ink) !important; border-color: var(--mxh-line); }
.mxh-btn-light:hover { background: var(--mxh-soft); }
.mxh-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.28); }
.mxh-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }

/* 1. highlights: one quiet strip split by thin lines */
.mxh-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 96px; border-top: 1px solid var(--mxh-line); border-bottom: 1px solid var(--mxh-line); }
.mxh-hl { display: flex; align-items: flex-start; gap: 14px; padding: 28px 24px; }
.mxh-hl + .mxh-hl { border-left: 1px solid var(--mxh-line); }
.mxh-hl-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--mxh-line); background: var(--mxh-surface); color: var(--mxh-accent); box-shadow: 0 1px 2px rgba(16,24,40,.05); flex-shrink: 0; }
.mxh-hl-icon svg { width: 20px; height: 20px; }
.mxh-hl h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.mxh-hl p { margin-top: 4px; font-size: 13.5px; color: var(--mxh-muted); line-height: 1.5; }

/* 2. service cards */
.mxh-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mxh-service { display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--mxh-line); border-radius: var(--mxh-radius); background: var(--mxh-surface); color: inherit !important; transition: border-color .2s ease, box-shadow .2s ease; }
.mxh-service:hover { border-color: color-mix(in srgb, var(--mxh-accent) 40%, var(--mxh-line)); box-shadow: 0 12px 32px -18px rgba(16,24,40,.28); }
.mxh-service-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; border-radius: 12px; background: color-mix(in srgb, var(--mxh-accent) 10%, var(--mxh-surface)); color: var(--mxh-accent); }
.mxh-service-icon svg { width: 24px; height: 24px; }
.mxh-service h3 { font-size: 18px; font-weight: 700; }
.mxh-service > p { margin-top: 8px; font-size: 14.5px; color: var(--mxh-muted); line-height: 1.6; }
.mxh-service .mxh-list { display: none; }
.mxh-list { list-style: none; margin: 16px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mxh-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--mxh-text); }
.mxh-list li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; background: var(--mxh-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.mxh-service-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; color: var(--mxh-ink); }
.mxh-service-link svg { color: var(--mxh-accent); transition: transform .2s ease; }
.mxh-service:hover .mxh-service-link svg { transform: translateX(3px); }

/* 3. steps: numbered columns on one line */
.mxh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mxh-step { position: relative; padding-top: 22px; border-top: 1px solid var(--mxh-line); }
.mxh-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--mxh-accent); }
.mxh-step-num { display: block; margin-bottom: 14px; color: var(--mxh-accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.mxh-step-num::before { content: "0"; }
.mxh-step h3 { font-size: 17px; font-weight: 700; }
.mxh-step p { margin-top: 8px; font-size: 14.5px; color: var(--mxh-muted); line-height: 1.6; }

/* 4. features: open grid, no boxes */
.mxh-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.mxh-feature { display: flex; flex-direction: column; gap: 16px; }
.mxh-feature-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--mxh-line); background: var(--mxh-surface); color: var(--mxh-ink); box-shadow: 0 1px 2px rgba(16,24,40,.05); flex-shrink: 0; }
.mxh-feature-icon svg { width: 20px; height: 20px; }
.mxh-feature h3 { font-size: 16.5px; font-weight: 700; }
.mxh-feature p { margin-top: 6px; font-size: 14.5px; color: var(--mxh-muted); line-height: 1.6; }

/* 5. API / reseller band: solid theme colour, no patterns */
.mxh-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px; border-radius: 20px; background: var(--mxh-primary); color: rgba(255,255,255,.78); }
.mxh-band .mxh-eyebrow { color: rgba(255,255,255,.7); }
.mxh-band h2 { color: #fff; font-size: clamp(25px, 3vw, 34px); font-weight: 750; }
.mxh-band p { margin-top: 14px; font-size: 16px; line-height: 1.6; }
.mxh-band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mxh-band .mxh-btn-light { border-color: #fff; }
.mxh-band-card { padding: 4px 0 4px 32px; border-left: 1px solid rgba(255,255,255,.18); }
.mxh-band-card .mxh-list { margin: 0; gap: 16px; }
.mxh-band-card .mxh-list li { color: #fff; font-size: 15px; font-weight: 500; }
.mxh-band-card .mxh-list li::before { background: #fff; opacity: .9; }

/* 6. FAQ: simple rows split by lines */
.mxh-faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--mxh-line); }
.mxh-faq details { border-bottom: 1px solid var(--mxh-line); }
.mxh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; list-style: none; color: var(--mxh-ink); font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.mxh-faq summary::-webkit-details-marker { display: none; }
.mxh-faq summary::after { content: ""; width: 22px; height: 22px; flex-shrink: 0; background: var(--mxh-muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s ease, background .2s ease; }
.mxh-faq details[open] summary::after { transform: rotate(45deg); background: var(--mxh-accent); }
.mxh-faq details > p { padding: 0 44px 24px 2px; margin-top: -6px; font-size: 15px; color: var(--mxh-muted); line-height: 1.65; }

/* 7. closing call to action */
.mxh-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 20px; border: 1px solid var(--mxh-line); background: var(--mxh-soft); }
.mxh-cta h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 750; }
.mxh-cta p { margin-top: 8px; color: var(--mxh-muted); font-size: 16px; }
.mxh-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* tablet */
@media (max-width: 1199px) {
    .mxh-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mxh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
    .mxh-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mxh-hl:nth-child(3) { border-left: 0; }
    .mxh-hl:nth-child(n+3) { border-top: 1px solid var(--mxh-line); }
    .mxh-band { grid-template-columns: 1fr; padding: 44px; gap: 32px; }
    .mxh-band-card { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 991px) {
    .mxh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mxh-cta { flex-direction: column; align-items: flex-start; }
}
/* phone */
@media (max-width: 640px) {
    .mxh { font-size: 14px; }
    .mxh-section { margin-bottom: 64px; }
    .mxh-head { margin-bottom: 30px; }
    .mxh-head p { font-size: 15px; }
    .mxh-highlights { margin-bottom: 64px; }
    .mxh-hl { flex-direction: column; gap: 12px; padding: 20px 14px; }
    .mxh-hl h3 { font-size: 14px; }
    .mxh-hl p { font-size: 12.5px; }
    .mxh-services, .mxh-steps, .mxh-features { grid-template-columns: 1fr; }
    .mxh-service { padding: 22px 20px 20px; }
    .mxh-service-icon { margin-bottom: 16px; }
    .mxh-steps { gap: 24px; }
    .mxh-features { gap: 28px; }
    .mxh-feature { flex-direction: row; gap: 14px; }
    .mxh-band { padding: 32px 22px; border-radius: 18px; }
    .mxh-band-actions .mxh-btn, .mxh-cta-actions .mxh-btn { flex: 1 1 100%; }
    .mxh-cta { padding: 30px 22px; }
    .mxh-cta-actions { width: 100%; }
    .mxh-faq summary { padding: 18px 0; font-size: 15px; }
    .mxh-faq details > p { padding: 0 0 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .mxh * { transition: none !important; }
}

/* dark mode (html.mx-dark, chosen by the visitor) */
html.mx-dark .mxh { --mxh-ink: #f5f7fa; --mxh-text: #cbd5e1; --mxh-muted: #94a3b8; --mxh-line: rgba(148,163,184,.16); --mxh-soft: #131c30; --mxh-surface: #0f1729; }
html.mx-dark .mxh-eyebrow, html.mx-dark .mxh-hl-icon, html.mx-dark .mxh-step-num { color: color-mix(in srgb, var(--mxh-accent) 60%, #fff); }
html.mx-dark .mxh-service-icon { background: color-mix(in srgb, var(--mxh-accent) 18%, transparent); color: color-mix(in srgb, var(--mxh-accent) 60%, #fff); }
html.mx-dark .mxh-service:hover { box-shadow: none; }
html.mx-dark .mxh-band { border: 1px solid rgba(148,163,184,.16); }
html.mx-dark .mxh-band .mxh-btn-light { background: #fff; color: #0b1220 !important; }
