:root {
    --xm-ink: #10212b;
    --xm-muted: #5b6b73;
    --xm-line: #dfe7e8;
    --xm-soft: #f4f7f6;
    --xm-white: #ffffff;
    --xm-primary: #123746;
    --xm-primary-2: #0f4b56;
    --xm-accent: #2f7d68;
    --xm-accent-dark: #23614f;
    --xm-warning: #f6efe4;
    --xm-success: #e7f5ef;
    --xm-error: #fff0f0;
    --xm-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --xm-serif: "Source Serif 4", Georgia, serif;
    --xm-shell: min(1120px, calc(100vw - 40px));
    --xm-radius: 8px;
    --xm-header: 82px;
    --xm-shadow: 0 18px 45px rgba(16, 33, 43, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--xm-ink);
    background: var(--xm-white);
    font-family: var(--xm-font);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--xm-accent-dark);
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--xm-ink);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-family: var(--xm-serif);
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    max-width: 920px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    max-width: 820px;
}

h3 {
    font-size: 1.1rem;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    z-index: 9999;
    top: 16px;
    left: 16px;
    padding: 10px 14px;
    background: var(--xm-white);
    border: 2px solid var(--xm-accent);
}

.xm-shell {
    width: var(--xm-shell);
    margin: 0 auto;
}

.xm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--xm-header);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 231, 232, 0.8);
    backdrop-filter: blur(18px);
}

.xm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--xm-header);
}

.xm-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.xm-brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--xm-white);
    background: var(--xm-primary);
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0;
}

.xm-brand strong,
.xm-brand small {
    display: block;
}

.xm-brand strong {
    font-weight: 800;
    line-height: 1.1;
}

.xm-brand small {
    color: var(--xm-muted);
    font-size: 0.78rem;
}

.xm-nav__list,
.xm-footer__links {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.xm-nav__list a {
    color: var(--xm-muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.xm-nav__list a:hover {
    color: var(--xm-ink);
}

.xm-header__cta,
.xm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.xm-button,
button.xm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--xm-radius);
    font: 700 0.95rem/1 var(--xm-font);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.xm-button:hover {
    transform: translateY(-1px);
}

.xm-button--primary {
    color: var(--xm-white);
    background: var(--xm-accent);
}

.xm-button--primary:hover {
    color: var(--xm-white);
    background: var(--xm-accent-dark);
}

.xm-button--secondary {
    color: var(--xm-primary);
    background: var(--xm-soft);
    border-color: var(--xm-line);
}

.xm-button--ghost {
    color: var(--xm-primary);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
}

.xm-button--light {
    color: var(--xm-primary);
    background: var(--xm-white);
}

.xm-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--xm-line);
    border-radius: var(--xm-radius);
    background: var(--xm-white);
}

.xm-menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--xm-primary);
}

.xm-hero {
    position: relative;
    min-height: calc(100svh - var(--xm-header));
    isolation: isolate;
    overflow: hidden;
    background: var(--xm-primary);
}

.xm-hero__visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(16, 33, 43, 0.94) 0%, rgba(16, 33, 43, 0.78) 42%, rgba(16, 33, 43, 0.18) 100%),
        url("../images/hero-compliance-office.svg") center right / cover no-repeat,
        #123746;
}

.xm-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 120px;
    background: linear-gradient(0deg, rgba(16, 33, 43, 0.54), transparent);
}

.xm-hero__inner {
    display: flex;
    align-items: center;
    min-height: calc(100svh - var(--xm-header));
    padding: 78px 0 96px;
}

.xm-hero__copy {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
}

.xm-hero__copy h1,
.xm-hero__copy .xm-eyebrow {
    color: var(--xm-white);
}

.xm-hero__copy p {
    max-width: 720px;
    margin: 22px 0 28px;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.xm-eyebrow {
    margin: 0 0 14px;
    color: var(--xm-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.xm-trust {
    background: var(--xm-white);
    border-bottom: 1px solid var(--xm-line);
}

.xm-trust__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--xm-line);
}

.xm-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 118px;
    padding: 24px;
    background: var(--xm-white);
    font-weight: 700;
}

.xm-icon {
    flex: 0 0 auto;
    color: var(--xm-accent);
}

.xm-section {
    padding: 104px 0;
}

.xm-section--soft {
    background: var(--xm-soft);
}

.xm-section--split {
    border-bottom: 1px solid var(--xm-line);
}

.xm-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.xm-copy {
    color: var(--xm-muted);
    font-size: 1.12rem;
}

.xm-section__header {
    max-width: 820px;
    margin-bottom: 48px;
}

.xm-section__header p:last-child {
    max-width: 680px;
    margin-top: 18px;
    color: var(--xm-muted);
    font-size: 1.1rem;
}

.xm-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--xm-line);
}

.xm-process__item {
    min-height: 260px;
    padding: 28px;
    background: var(--xm-white);
}

.xm-process__item span {
    display: block;
    margin-bottom: 42px;
    color: var(--xm-accent);
    font-weight: 800;
}

.xm-process__item p,
.xm-content,
.xm-page-hero p {
    color: var(--xm-muted);
}

.xm-page-hero {
    padding: 96px 0 72px;
    background: linear-gradient(180deg, var(--xm-soft), var(--xm-white));
    border-bottom: 1px solid var(--xm-line);
}

.xm-page-hero__inner {
    max-width: 880px;
}

.xm-page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.xm-page-hero p {
    margin-top: 22px;
    font-size: 1.16rem;
}

.xm-feature-list,
.xm-inclusions,
.xm-sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.xm-feature-list__item,
.xm-inclusion,
.xm-sector,
.xm-price-card,
.xm-contact__aside {
    border: 1px solid var(--xm-line);
    border-radius: var(--xm-radius);
    background: var(--xm-white);
}

.xm-feature-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 20px;
    font-weight: 700;
}

.xm-inclusions {
    grid-template-columns: repeat(4, 1fr);
}

.xm-inclusion,
.xm-sector {
    padding: 28px;
}

.xm-inclusion .xm-icon,
.xm-sector .xm-icon {
    margin-bottom: 30px;
}

.xm-legal-note {
    margin-top: 28px;
    padding: 18px 20px;
    color: #5f4a2d;
    background: var(--xm-warning);
    border-left: 4px solid #b99150;
    border-radius: var(--xm-radius);
}

.xm-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.xm-price-card {
    padding: 34px;
    box-shadow: 0 12px 30px rgba(16, 33, 43, 0.06);
}

.xm-price-card--main {
    border-color: rgba(47, 125, 104, 0.35);
}

.xm-price {
    margin: 22px 0 28px;
    color: var(--xm-primary);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1;
}

.xm-check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.xm-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--xm-muted);
}

.xm-check-list .xm-icon {
    width: 20px;
    height: 20px;
}

.xm-divider {
    height: 1px;
    margin: 28px 0;
    background: var(--xm-line);
}

.xm-faq {
    max-width: 900px;
}

.xm-faq__item {
    border-top: 1px solid var(--xm-line);
}

.xm-faq__item:last-child {
    border-bottom: 1px solid var(--xm-line);
}

.xm-faq__item summary {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 0;
    color: var(--xm-ink);
    font-size: 1.12rem;
    font-weight: 800;
    cursor: pointer;
}

.xm-faq__item summary::after {
    content: "+";
    color: var(--xm-accent);
    font-size: 1.5rem;
}

.xm-faq__item[open] summary::after {
    content: "-";
}

.xm-faq__item p {
    max-width: 760px;
    margin-bottom: 26px;
    color: var(--xm-muted);
}

.xm-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.xm-form {
    padding: 30px;
    border: 1px solid var(--xm-line);
    border-radius: var(--xm-radius);
    background: var(--xm-white);
}

.xm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.xm-form label {
    display: grid;
    gap: 7px;
    color: var(--xm-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.xm-form__wide {
    grid-column: 1 / -1;
}

.xm-form input,
.xm-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--xm-ink);
    border: 1px solid var(--xm-line);
    border-radius: var(--xm-radius);
    background: var(--xm-soft);
    font: 400 1rem/1.4 var(--xm-font);
}

.xm-form textarea {
    resize: vertical;
}

.xm-checkbox {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px !important;
    margin: 20px 0;
    color: var(--xm-muted) !important;
    font-weight: 500 !important;
}

.xm-checkbox input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.xm-contact__aside {
    padding: 28px;
}

.xm-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--xm-radius);
    font-weight: 700;
}

.xm-alert--success {
    background: var(--xm-success);
}

.xm-alert--error {
    background: var(--xm-error);
}

.xm-cta-band {
    padding: 76px 0;
    color: rgba(255, 255, 255, 0.82);
    background: var(--xm-primary);
}

.xm-cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.xm-cta-band h2,
.xm-cta-band .xm-eyebrow {
    color: var(--xm-white);
}

.xm-cta-band p {
    max-width: 680px;
}

.xm-footer {
    padding: 70px 0 110px;
    color: rgba(255, 255, 255, 0.74);
    background: #0d2028;
}

.xm-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 44px;
}

.xm-brand--footer {
    color: var(--xm-white);
}

.xm-footer h2 {
    margin-bottom: 16px;
    color: var(--xm-white);
    font-size: 1rem;
}

.xm-footer__links {
    display: grid;
    gap: 10px;
}

.xm-footer__links a:hover {
    color: var(--xm-white);
}

.xm-footer__notice {
    margin-top: 18px;
    font-size: 0.9rem;
}

.xm-footer__bottom {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.xm-mobile-cta {
    display: none;
}

[data-xmcd-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 550ms ease;
}

[data-xmcd-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    [data-xmcd-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .xm-header__cta {
        display: none;
    }

    .xm-trust__grid,
    .xm-process,
    .xm-inclusions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 840px) {
    :root {
        --xm-shell: min(100vw - 28px, 760px);
        --xm-header: 72px;
    }

    body {
        padding-bottom: 74px;
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.7rem);
    }

    .xm-menu-toggle {
        display: block;
    }

    .xm-nav {
        position: fixed;
        inset: var(--xm-header) 14px auto;
        display: none;
        padding: 18px;
        background: var(--xm-white);
        border: 1px solid var(--xm-line);
        border-radius: var(--xm-radius);
        box-shadow: var(--xm-shadow);
    }

    .xm-nav.is-open {
        display: block;
    }

    .xm-nav__list {
        display: grid;
        gap: 14px;
    }

    .xm-hero,
    .xm-hero__inner {
        min-height: calc(92svh - var(--xm-header));
    }

    .xm-hero__visual {
        background:
            linear-gradient(90deg, rgba(16, 33, 43, 0.96) 0%, rgba(16, 33, 43, 0.86) 70%, rgba(16, 33, 43, 0.68) 100%),
            url("../images/hero-compliance-office.svg") center / cover no-repeat,
            #123746;
    }

    .xm-hero__inner {
        padding: 58px 0 72px;
    }

    .xm-trust__grid,
    .xm-process,
    .xm-feature-list,
    .xm-inclusions,
    .xm-sector-grid,
    .xm-pricing,
    .xm-contact,
    .xm-footer__grid,
    .xm-split {
        grid-template-columns: 1fr;
    }

    .xm-section {
        padding: 72px 0;
    }

    .xm-cta-band__inner {
        display: grid;
    }

    .xm-form__grid {
        grid-template-columns: 1fr;
    }

    .xm-mobile-cta {
        position: fixed;
        right: 14px;
        bottom: 14px;
        left: 14px;
        z-index: 120;
        display: block;
    }

    .xm-mobile-cta .xm-button {
        width: 100%;
        box-shadow: var(--xm-shadow);
    }
}

@media (max-width: 520px) {
    .xm-brand small {
        display: none;
    }

    .xm-trust__item,
    .xm-process__item,
    .xm-price-card,
    .xm-form {
        padding: 22px;
    }
}
