/* Pilar marketing site (pilar.ma). Static file, no build step.
   Brand: navy #02113D, cyan #00BCFE, primary #0077AE (app/Support/PilarBrand.php).
   Font: Inter, served from this application (no third-party font requests). */

@font-face {
    font-family: "Inter Pilar";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../../fonts/pilar/inter-latin.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter Pilar";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../../fonts/pilar/inter-latin-ext.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --navy: #02113D;
    --navy-2: #0A1D52;
    --navy-3: #13286A;
    --cyan: #00BCFE;
    --cyan-soft: rgba(0, 188, 254, .14);
    --primary: #0077AE;
    --primary-dark: #005F8C;
    --ink: #0B1533;
    --muted: #55617C;
    --line: #E2E8F1;
    --tint: #F4F7FB;
    --white: #FFFFFF;
    --ok: #12A46B;
    --warn: #E8A317;
    --danger: #D64545;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(2, 17, 61, .06), 0 8px 24px rgba(2, 17, 61, .06);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .35);
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body.mk {
    margin: 0;
    font-family: "Inter Pilar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; color: inherit; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }

.mk-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mk-narrow { max-width: 820px; }
.mk-center { text-align: center; margin-top: 36px; }
.mk-sr, .mk-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-skip { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.mk-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------------ buttons */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-size: .95rem; font-weight: 620; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
    white-space: nowrap;
}
.mk-btn:hover { transform: none; }
.mk-btn--lg { padding: 14px 26px; font-size: 1rem; }
.mk-btn--block { width: 100%; }
.mk-btn--cyan { background: var(--cyan); color: var(--navy); }
.mk-btn--cyan:hover { background: #3BCDFF; }
.mk-btn--primary { background: var(--primary); color: var(--white); }
.mk-btn--primary:hover { background: var(--primary-dark); }
.mk-btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.mk-btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mk-arrow { font-weight: 620; text-decoration: none; }
.mk-arrow::after { content: " →"; transition: margin .15s; }
.mk-arrow:hover::after { margin-left: 4px; }

/* ------------------------------------------------------------------- header */
.mk-header { position: sticky; top: 0; z-index: 50; background: rgba(2, 17, 61, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mk-header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.mk-brand img { height: 30px; width: auto; }
.mk-menu { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: space-between; margin-left: 40px; }
.mk-menu__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.mk-menu__links a, .mk-link-quiet { color: #C9D2E8; text-decoration: none; font-size: .95rem; font-weight: 520; }
.mk-menu__links a:hover, .mk-link-quiet:hover, .mk-menu__links a[aria-current="page"] { color: var(--white); }
.mk-menu__cta { display: flex; align-items: center; gap: 20px; }
.mk-burger { display: none; background: none; border: 0; padding: 10px 11px; min-width: 44px; min-height: 44px; cursor: pointer; }
.mk-burger span:not(.mk-sr) { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.mk-burger[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.mk-burger[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.mk-burger[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .mk-burger { display: block; }
    .mk-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 24px; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .mk-menu.is-open { display: flex; }
    .mk-menu__links { flex-direction: column; gap: 0; }
    .mk-menu__links a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .mk-menu__cta { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding-top: 12px; }
    .mk-menu__cta .mk-link-quiet { text-align: center; padding: 8px; }
}

/* --------------------------------------------------------------------- hero */
.mk-hero {
    position: relative; overflow: hidden; color: var(--white);
    background: var(--navy);
    padding: 80px 0 96px;
}
/* Navy headers carry a faint zellige lattice (eight-point stars) on their right side instead of a
   generic glow: a Moroccan signature, kept quiet so text and screens stay in front. */
.mk-hero::before, .mk-pagehead::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/svg%3E");
    background-size: 56px 56px;
    opacity: .07;
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
    mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
.mk-hero > *, .mk-pagehead > * { position: relative; }
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.mk-lead { font-size: 1.15rem; color: #C9D2E8; margin-top: 20px; max-width: 36em; }
.mk-hero h1 { max-width: 13em; }
.mk-hero__price { margin-top: 28px; font-size: .92rem; color: #9FAED0; max-width: 32em; }
.mk-hero__price strong { color: var(--white); font-weight: 650; }

@media (max-width: 980px) {
    .mk-hero { padding: 56px 0 72px; }
    .mk-hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* product illustration */
.mk-app { border-radius: 16px; background: #F5F7FB; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.4; }
.mk-app__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E8EDF5; border-bottom: 1px solid #DCE3EE; }
.mk-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D1DE; }
.mk-app__bar span { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: var(--white); color: var(--muted); font-size: 11px; }
.mk-app__body { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.mk-app__side { background: var(--navy); color: #C9D2E8; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mk-app__side p { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #7F8DB3; margin: 12px 8px 4px; }
.mk-app__side > span { padding: 6px 8px; border-radius: 7px; }
.mk-app__side > span.is-on { background: rgba(0, 188, 254, .16); color: var(--white); font-weight: 600; }
.mk-app__company { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 9px; background: rgba(255, 255, 255, .06); margin-bottom: 4px; }
.mk-app__company b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--cyan); color: var(--navy); font-size: 10px; }
.mk-app__company span { display: flex; flex-direction: column; color: var(--white); font-weight: 600; font-size: 11px; }
.mk-app__company small { color: #8E9BBE; font-weight: 400; font-size: 10px; }
.mk-app__main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mk-app__title { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.mk-app__title small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.mk-app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-app__kpis div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; }
.mk-app__kpis small { color: var(--muted); font-size: 10px; }
.mk-app__kpis b { font-size: 13px; letter-spacing: -.01em; }
.mk-app__kpis em { font-style: normal; font-size: 10px; color: var(--muted); }
.mk-app__kpis em.up { color: var(--ok); font-weight: 600; }
.mk-app__chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mk-app__chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--primary); }
.mk-app__rows { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.mk-app__rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; }
.mk-app__rows div + div { border-top: 1px solid var(--line); }
.mk-app__rows em { font-style: normal; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.mk-app__rows em.ok { background: #E3F6EE; color: #0B7A4F; }
.mk-app__rows em.due { background: #FDECEC; color: #B33030; }
@media (max-width: 560px) {
    .mk-app__body { grid-template-columns: 1fr; }
    .mk-app__side { display: none; }
    .mk-app__kpis { grid-template-columns: 1fr 1fr; }
    .mk-app__kpis div:last-child { display: none; }
}

/* -------------------------------------------------------------- proof strip */
.mk-proof { border-bottom: 1px solid var(--line); background: var(--white); }
.mk-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mk-proof__grid div { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.mk-proof__grid div:first-child { border-left: 0; padding-left: 0; }
.mk-proof b { font-weight: 680; }
.mk-proof span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
    .mk-proof__grid { grid-template-columns: 1fr 1fr; }
    .mk-proof__grid div { border-left: 0; padding: 18px 0; }
    .mk-proof__grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ sections */
.mk-section { padding: 96px 0; }
.mk-section--tint { background: var(--tint); }
.mk-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.mk-head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
@media (max-width: 760px) { .mk-section { padding: 64px 0; } .mk-head { margin-bottom: 36px; } }

.mk-cards { display: grid; gap: 20px; }
.mk-cards--3 { grid-template-columns: repeat(3, 1fr); }
.mk-cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .mk-cards--3, .mk-cards--2 { grid-template-columns: 1fr; } }
.mk-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.mk-card h3 { margin: 18px 0 8px; }
.mk-card p { color: var(--muted); font-size: .98rem; }
.mk-card--row { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.mk-card--row h3 { margin: 2px 0 4px; }
.mk-card__icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-soft); color: var(--primary); }
.mk-card__icon svg { width: 22px; height: 22px; }
.mk-card__icon--lg { width: 56px; height: 56px; border-radius: 16px; }
.mk-card__icon--lg svg { width: 28px; height: 28px; }

/* module rows (modules page) */
.mk-modrow { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.mk-modrow__head h2 { margin: 18px 0 8px; }
.mk-modrow__head p { color: var(--muted); }
@media (max-width: 900px) { .mk-modrow { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------------- modules: one flow, one index */
.mk-flow__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.mk-flow__head h2 { max-width: 19ch; }
.mk-flow__head p { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
@media (max-width: 860px) { .mk-flow__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

/* The chain: six documents on one line, each a node on the rail; the last one (the accounting
   entry) is where everything lands, so it is the filled node. */
.mk-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.mk-chain::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, var(--navy-3), var(--primary)); opacity: .35; }
.mk-chain__step { position: relative; padding: 30px 16px 0 0; display: grid; gap: 4px; align-content: start; }
.mk-chain__step::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--tint); border: 2px solid var(--navy); }
.mk-chain__step:last-child::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px var(--cyan-soft); }
.mk-chain__step b { font-size: 1.05rem; font-weight: 680; letter-spacing: -.01em; }
.mk-chain__step code { font-family: inherit; font-size: .86rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--navy); overflow-wrap: anywhere; }
.mk-chain__step span { font-size: .86rem; color: var(--muted); }
@media (max-width: 980px) {
    .mk-chain { grid-template-columns: 1fr; gap: 0; }
    .mk-chain::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--navy-3), var(--primary)); }
    .mk-chain__step { padding: 0 0 22px 34px; grid-template-columns: auto auto; justify-content: start; column-gap: 12px; align-items: baseline; }
    .mk-chain__step span { grid-column: 1 / -1; }
}

/* The index: departments and their modules as plain lines, no cards or chips. */
.mk-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 64px; border-top: 1px solid var(--line); }
.mk-index__row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mk-index__row h3 { font-size: 1rem; }
.mk-index__row p { color: var(--muted); font-size: .98rem; }
.mk-flow__more { margin-top: 28px; }
@media (max-width: 860px) { .mk-index { grid-template-columns: 1fr; margin-top: 40px; } .mk-index__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- Morocco: proof on a real invoice */
.mk-maroc { background: var(--navy); color: var(--white); }
.mk-maroc__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.mk-maroc .mk-lead { margin-top: 18px; }
@media (max-width: 980px) { .mk-maroc__grid { grid-template-columns: 1fr; gap: 40px; } }

.mk-mentions { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: mention; }
.mk-mentions li { counter-increment: mention; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; color: #C9D2E8; font-size: .97rem; transition: background .15s; }
.mk-mentions li::before { content: counter(mention); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: var(--navy); font-weight: 750; font-size: .85rem; }
.mk-mentions b { color: var(--white); font-weight: 640; display: block; }
.mk-mentions li.is-lit { background: rgba(255, 255, 255, .07); }

.mk-fac { position: relative; margin: 0; background: var(--white); color: var(--ink); border-radius: 12px; padding: 30px 32px 24px; font-size: .9rem; line-height: 1.45; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .2); }
.mk-fac__top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.mk-fac__top div { display: grid; }
.mk-fac__top strong { font-size: 1rem; }
.mk-fac__top span { color: var(--muted); font-size: .84rem; }
.mk-fac__title { text-align: right; }
.mk-fac__title span:first-child { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--primary); font-size: .78rem; }
.mk-fac__title strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mk-fac__client { display: grid; margin: 18px 0 16px; padding: 12px 14px; background: var(--tint); border-radius: 8px; max-width: 290px; }
.mk-fac__client span { color: var(--muted); font-size: .84rem; }
.mk-fac__client span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-fac__lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mk-fac__lines th { text-align: right; font-size: .78rem; font-weight: 650; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.mk-fac__lines td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mk-fac__lines th:first-child, .mk-fac__lines td:first-child { text-align: left; }
.mk-fac__lines th + th, .mk-fac__lines td + td { padding-left: 14px; }
.mk-fac__totals { margin: 12px 0 0 auto; max-width: 270px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.mk-fac__totals div { display: flex; justify-content: space-between; padding: 3px 8px; margin-inline: -8px; border-radius: 6px; }
.mk-fac__totals dt { color: var(--muted); }
.mk-fac__totals dd { margin: 0; }
.mk-fac__ttc { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid var(--ink); border-radius: 0 !important; font-weight: 700; }
.mk-fac__ttc dt { color: var(--ink) !important; }
.mk-fac__words { margin: 16px 0 0; padding: 8px 10px; margin-inline: -10px; border-radius: 6px; font-style: italic; color: var(--ink); }
.mk-fac__legal { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; border-radius: 6px; }

/* Numbered markers: drawn from each marked area's own number, so they always sit beside it. They
   sit on the sheet's own margin (half outside, half inside its padding): never over text, never
   past the screen edge. */
.mk-fac [data-spot] { position: relative; transition: background .15s, box-shadow .15s; }
.mk-fac [data-spot]::after { content: attr(data-spot); position: absolute; top: 50%; right: -45px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--navy); font: 750 .78rem/1 "Inter Pilar", system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 4px rgba(0, 188, 254, .18); }
.mk-fac__title[data-spot]::after { top: 13px; transform: none; }
.mk-fac__client[data-spot]::after { right: auto; left: calc(100% + 12px); }
.mk-fac__words[data-spot]::after { right: -35px; }
.mk-fac [data-spot].is-lit { background: rgba(0, 188, 254, .14); box-shadow: 0 0 0 2px rgba(0, 188, 254, .55); }
@media (max-width: 640px) {
    .mk-fac { padding: 22px 22px 18px; font-size: .84rem; }
    .mk-fac [data-spot]::after, .mk-fac__words[data-spot]::after { right: -34px; width: 22px; height: 22px; }
    .mk-fac__title[data-spot]::after { top: 2px; }
    .mk-fac__client[data-spot]::after { left: auto; right: -34px; }
    .mk-fac__lines th:nth-child(3), .mk-fac__lines td:nth-child(3) { display: none; }
}

.mk-maroc__more { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 10px; color: #C9D2E8; font-size: .97rem; }
.mk-maroc__more b { color: var(--white); font-weight: 640; margin-right: 10px; }
.mk-maroc__next { color: #9FAED0; }
.mk-maroc__next b { color: #C9D2E8; }

.mk-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.mk-panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(232, 163, 23, .2); }
.mk-dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 164, 107, .2); }

.mk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mk-checks li { position: relative; padding-left: 28px; font-size: .97rem; }
.mk-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230077AE'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mk-maroc .mk-checks li::before { background-color: rgba(0, 188, 254, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300BCFE'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E"); }

/* pricing */
.mk-price { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; max-width: 980px; margin: 0 auto; }
.mk-price__plan { padding: 40px; background: var(--navy); color: var(--white); }
.mk-price__name { font-weight: 650; color: var(--cyan); }
.mk-price__amount { margin-top: 14px; font-size: 1.05rem; color: #C9D2E8; }
.mk-price__amount b { font-size: 3rem; font-weight: 760; letter-spacing: -.03em; color: var(--white); }
.mk-price__amount span { display: block; font-size: .92rem; }
.mk-price__plus { margin: 12px 0 28px; color: #C9D2E8; }
.mk-price__plus b { color: var(--white); }
.mk-price__plan .mk-checks li { color: #D5DCEE; }
.mk-price__plan .mk-checks li::before { background-color: rgba(0, 188, 254, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300BCFE'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E"); }
.mk-price__calc { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.mk-price__calc label { font-weight: 620; }
.mk-range { display: flex; align-items: center; gap: 16px; }
.mk-range input { flex: 1; accent-color: var(--primary); height: 44px; } /* a 44px touch band around the slider */
.mk-range output { min-width: 3.2em; text-align: center; font-weight: 700; font-size: 1.1rem; padding: 4px 10px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mk-price__lines { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mk-price__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mk-price__lines dt { color: var(--muted); }
.mk-price__lines dd { margin: 0; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-price__total dt { color: var(--ink); font-weight: 650; }
.mk-price__total dd { font-size: 1.35rem; font-weight: 760; color: var(--navy); }
.mk-price__month { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
@media (max-width: 860px) { .mk-price { grid-template-columns: 1fr; } .mk-price__plan, .mk-price__calc { padding: 28px; } }

.mk-examples { max-width: 980px; margin: 56px auto 0; }
.mk-examples h2 { font-size: 1.4rem; margin-bottom: 16px; }
.mk-examples table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mk-examples th, .mk-examples td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mk-examples thead th { background: var(--tint); font-size: .85rem; color: var(--muted); font-weight: 620; }
.mk-examples td { font-weight: 600; }
.mk-examples tbody th { font-weight: 520; }
.mk-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* steps */
.mk-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.mk-steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--cyan); font-weight: 700; margin-bottom: 16px; }
.mk-steps b { font-size: 1.08rem; }
.mk-steps p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
@media (max-width: 860px) { .mk-steps { grid-template-columns: 1fr; } }

/* FAQ */
.mk-faq { display: grid; gap: 12px; }
.mk-faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.mk-faq summary { cursor: pointer; list-style: none; font-weight: 620; padding: 18px 32px 18px 0; position: relative; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--primary); }
.mk-faq details[open] summary::after { content: "−"; }
.mk-faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA band */
.mk-cta { background: var(--navy); color: var(--white); padding: 72px 0; }
.mk-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mk-cta h2 { max-width: 20em; }
.mk-cta p { color: #C9D2E8; margin-top: 10px; }
@media (max-width: 760px) { .mk-cta__in { flex-direction: column; align-items: flex-start; } }

/* page head (inner pages) */
.mk-pagehead { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 72px 0 80px; }
.mk-pagehead h1 { max-width: 16em; font-size: clamp(2rem, 4vw, 3rem); }
.mk-pagehead--short { padding: 56px 0 60px; }

/* demo form */
.mk-section--form { padding-top: 56px; }
.mk-demo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.mk-demo__side { padding-top: 8px; }
.mk-demo__side h2 { font-size: 1.3rem; margin-bottom: 18px; }
@media (max-width: 900px) { .mk-demo { grid-template-columns: 1fr; } }
.mk-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; }
.mk-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .mk-form__grid { grid-template-columns: 1fr; } }
.mk-field label { font-size: .92rem; font-weight: 600; }
.mk-opt { color: var(--muted); font-weight: 400; }
.mk-field input, .mk-field select, .mk-field textarea {
    font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
    border: 1px solid #CBD5E3; border-radius: 10px; padding: 11px 13px; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.mk-field input:focus, .mk-field select:focus, .mk-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 119, 174, .15); }
.mk-field [aria-invalid="true"] { border-color: var(--danger); }
.mk-error { color: var(--danger); font-size: .86rem; }
.mk-alert { background: #FDECEC; color: #9E2A2A; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-weight: 560; }
.mk-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.mk-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.mk-thanks { text-align: center; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-thanks .mk-card__icon { background: #E3F6EE; color: var(--ok); }
.mk-thanks p { color: var(--muted); }

/* legal prose */
.mk-prose { max-width: 760px; }
.mk-prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.mk-prose p { color: #33405C; margin-bottom: 12px; }
.mk-draft { background: #FFF6E0; border: 1px solid #F2D58A; color: #6B4E00; border-radius: 12px; padding: 14px 18px; font-size: .95rem; }

/* ------------------------------------------------------------------- footer */
.mk-footer { background: #010B29; color: #9FAED0; padding: 64px 0 28px; font-size: .95rem; }
.mk-footer__grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 40px; } /* 3 or 4 link columns (Contact only when set) */
.mk-footer__brand img { height: 28px; width: auto; margin-bottom: 16px; }
.mk-footer__brand p { max-width: 26em; }
.mk-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; font-weight: 650; }
.mk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-footer a { color: #C9D2E8; text-decoration: none; }
.mk-footer a:hover { color: var(--white); }
.mk-footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
@media (max-width: 760px) { .mk-footer__grid { grid-template-columns: 1fr 1fr; } .mk-footer__brand { grid-column: 1 / -1; } .mk-footer__base { flex-direction: column; } }

/* ------------------------------------------------------------------ plans (D-015) */
.mk-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.mk-plan { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.mk-plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mk-plan__name { font-weight: 680; color: var(--primary); }
.mk-plan__price { font-size: 1rem; color: var(--muted); }
.mk-plan__price b { font-size: 2.4rem; font-weight: 760; letter-spacing: -.03em; color: var(--ink); margin-right: 4px; }
.mk-plan__for { color: var(--muted); font-size: .95rem; }
.mk-plan__for b { color: var(--ink); }
.mk-plan .mk-checks { margin: 8px 0 4px; }
.mk-plan__note { margin-top: auto; font-size: .88rem; color: var(--muted); padding-top: 8px; }
.mk-plan--main { background: var(--navy); color: var(--white); border-color: transparent; }
.mk-plan--main .mk-plan__name { color: var(--cyan); }
.mk-plan--main .mk-plan__price, .mk-plan--main .mk-plan__for, .mk-plan--main .mk-plan__note, .mk-plan--main .mk-checks li { color: #C9D2E8; }
.mk-plan--main .mk-plan__price b, .mk-plan--main .mk-plan__for b { color: var(--white); }
.mk-plan--main .mk-checks li::before { background-color: rgba(0, 188, 254, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300BCFE'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .mk-plans { grid-template-columns: 1fr; } .mk-plan { padding: 26px; } }

.mk-badge { display: inline-block; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; background: #FFF4DB; color: #7A4B00; }
.mk-badge--cyan { background: rgba(0, 188, 254, .16); color: var(--cyan); }
.mk-btn--outline { border-color: var(--primary); color: var(--primary); background: var(--white); }
.mk-btn--outline:hover { background: #EEF6FB; }

.mk-calc-head { max-width: 980px; margin: 64px auto 20px; }
.mk-calc-head h2 { font-size: 1.4rem; }
.mk-calc-head p { color: var(--muted); margin-top: 6px; }

.mk-compare { max-width: 980px; margin: 56px auto 0; }
.mk-compare h2 { font-size: 1.4rem; margin-bottom: 16px; }
.mk-compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.mk-compare table { width: 100%; min-width: 560px; border-collapse: collapse; }
.mk-compare th, .mk-compare td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.mk-compare tbody tr:last-child th, .mk-compare tbody tr:last-child td { border-bottom: 0; }
.mk-compare thead th { background: var(--tint); font-weight: 680; vertical-align: bottom; }
.mk-compare thead small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.mk-compare tbody th { font-weight: 520; }
.mk-compare td { width: 26%; text-align: center; color: var(--muted); }
.mk-compare thead th:not(:first-child) { text-align: center; }
.mk-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E3F6EE; color: var(--ok); }
.mk-yes svg { width: 16px; height: 16px; }
.mk-no { color: #66728A; } /* "not included" carries meaning: 4.8:1 on white */
.mk-price--compact { grid-template-columns: 1fr; max-width: 980px; }
.mk-price--compact .mk-price__calc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
.mk-price--compact .mk-price__calc > label, .mk-price--compact .mk-range { grid-column: 1; }
.mk-price--compact .mk-price__lines { grid-column: 2; grid-row: 1 / span 4; }
.mk-price--compact .mk-price__month, .mk-price--compact .mk-btn { grid-column: 1; }
@media (max-width: 760px) { .mk-price--compact .mk-price__calc { grid-template-columns: 1fr; } .mk-price--compact .mk-price__lines { grid-column: 1; grid-row: auto; } }

/* Solo sign-up (D-015) */
.mk-hint { color: var(--muted); font-size: .86rem; }
.mk-h2 { font-size: 1.6rem; line-height: 1.25; }
.mk-choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.mk-choice legend { font-size: .92rem; font-weight: 600; margin-bottom: 8px; width: 100%; float: left; }
.mk-choice > label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.mk-field.mk-choice > label > input[type="radio"] { width: 18px; height: 18px; padding: 0; margin: 0; border: 0; flex: none; accent-color: var(--primary); }
.mk-ae-activity { width: 100%; margin-top: 6px; }
.mk-ae-activity[hidden] { display: none; }
.mk-thanks [data-when] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-thanks [data-when][hidden] { display: none; }
.mk-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #DCE6F2; border-top-color: var(--primary); animation: mk-spin 0.9s linear infinite; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mk-spinner { animation-duration: 3s; } }

/* Second way in under the plan's button ("Ou parler à un conseiller →"). */
.mk-plan__alt { display: block; margin-top: 12px; text-align: center; color: inherit; opacity: .85; }
.mk-plan__alt:hover { opacity: 1; }


/* ---------------------------------------------------------------- touch targets (44px) */
/* Footer links, text arrows, radios and consent boxes: the visible size stays, the tappable area
   grows to 44px (WCAG 2.5.5). */
.mk-footer ul { gap: 0; }
.mk-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.mk-arrow { display: inline-flex; align-items: center; min-height: 44px; }
.mk-choice > label { min-height: 44px; padding-inline-end: 6px; }
.mk-consent label { min-height: 44px; padding-block: 10px; }
.mk-consent input { margin-top: 1px; }

/* ---------------------------------------------------------------- comparison on phones */
/* Below 640px the table becomes one card per feature: the label, then each plan's answer named. */
@media (max-width: 640px) {
    .mk-compare table { min-width: 0; }
    .mk-compare__scroll { overflow: visible; }
    .mk-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .mk-compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
    .mk-compare tbody tr:last-child { border-bottom: 0; }
    .mk-compare tbody th { grid-column: 1 / -1; border: 0; padding: 14px 16px 4px; font-weight: 620; }
    .mk-compare td { width: auto; border: 0; padding: 4px 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; color: var(--ink, #0B1533); }
    .mk-compare td::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--muted); }
}

/* Demo page: reach the team directly (WhatsApp, phone, e-mail), when the contact details are set. */
.mk-direct { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mk-direct p { margin: 0 0 4px; font-weight: 600; }
.mk-footer li span { display: inline-flex; align-items: center; min-height: 44px; }
.mk-brand { display: inline-flex; align-items: center; min-height: 44px; }

/* "Pourquoi Pilar": three statements under a hairline, no icon tiles or cards. */
.mk-why__title { max-width: 22ch; margin-bottom: 40px; }
.mk-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.mk-why > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.mk-why h3 { font-size: 1.15rem; }
.mk-why p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .mk-why { grid-template-columns: 1fr; gap: 28px; } }

/* Modules page: each module as a name and a line, two columns, hairlines; no icon tiles. */
.mk-modlist { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.mk-modlist > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mk-modlist dt { font-weight: 650; }
.mk-modlist dd { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .mk-modlist { grid-template-columns: 1fr; } }

/* Line breaks: balanced headings, no lone word on a paragraph's last line (progressive). */
.mk h1, .mk h2, .mk h3 { text-wrap: balance; }
.mk p, .mk li, .mk dd { text-wrap: pretty; }

/* Industries: tall rounded cards that move one at a time (buttons, swipe, or on their own every
   few seconds; pause button; no movement with reduced motion). The photo fills the card, the trade
   and its line sit on a navy fade at the bottom. The row starts at the text column and runs to the
   screen edge. */
.mk-trades-section { overflow: hidden; }
.mk-trades-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.mk-trades-head h2 { max-width: 18ch; }
.mk-trades-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.mk-trades-controls { display: flex; gap: 8px; flex: none; }
.mk-round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; transition: background-color .15s, border-color .15s; }
.mk-round:hover { border-color: var(--navy); }
.mk-round svg { width: 18px; height: 18px; }
.mk-round .mk-ico-play { display: none; }
[data-trades-toggle][aria-pressed="true"] .mk-ico-pause { display: none; }
[data-trades-toggle][aria-pressed="true"] .mk-ico-play { display: block; }
.mk-trades {
    --start: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
    list-style: none; margin: 0; display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 0 var(--start) 6px; scroll-padding-inline: var(--start);
    scrollbar-width: none;
}
.mk-trades::-webkit-scrollbar { display: none; }
.mk-trade { position: relative; flex: 0 0 clamp(240px, 21vw, 290px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: var(--navy); }
.mk-trade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-trade__text { position: absolute; inset: auto 0 0; padding: 80px 20px 20px; color: var(--white);
    background: linear-gradient(to top, rgba(2, 17, 61, .94) 0%, rgba(2, 17, 61, .86) 55%, rgba(2, 17, 61, 0) 100%); }
.mk-trade h3 { font-size: 1.08rem; color: var(--white); }
.mk-trade p { margin-top: 6px; font-size: .92rem; line-height: 1.45; color: #DCE3F2; }
@media (max-width: 760px) {
    .mk-trades-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
    .mk-trade { flex-basis: 74vw; }
}
@media (prefers-reduced-motion: reduce) { .mk-trades { scroll-behavior: auto; } }
