/* MoovLogic Pages — design system · Direction B
   Scope: .ml-page  ·  prefix: ml-
   Fonts: Manrope (display/body) + JetBrains Mono (code/meta)
----------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design tokens ─────────────────────────────────────────────── */
.ml-page {
    --ml-ink:     #0E0F12;
    --ml-surface: #16181C;
    --ml-elev:    #1D1F24;
    --ml-accent:  #00D27A;
    --ml-tint:    #7BF0B8;
    --ml-bone:    #ECECEA;
    --ml-muted:   #8E9098;
    --ml-border:  rgba(255,255,255,0.08);
    --ml-radius:  16px;
    --ml-max:     1200px;

    background-color: var(--ml-ink);
    color: var(--ml-bone);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Break out of theme content container to full viewport width */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: 0;
    overflow-x: clip;
}

/* Prevent horizontal scrollbar caused by 100vw > body width (scrollbar) */
body:has(.ml-page) { overflow-x: hidden; }

/* ── Base resets (scoped) ──────────────────────────────────────── */
.ml-page *, .ml-page *::before, .ml-page *::after {
    box-sizing: border-box;
}
.ml-page a { color: inherit; }
.ml-page p { margin: 0 0 1em; }
.ml-page p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────────── */
.ml-section {
    padding: 5rem 1.5rem;
}
.ml-section--sm   { padding: 3rem 1.5rem; }
.ml-section--lg   { padding: 7rem 1.5rem; }
.ml-section--surf { background-color: rgba(22,24,28,0.5); border-top: 1px solid var(--ml-border); border-bottom: 1px solid var(--ml-border); }
.ml-section--bord { border-top: 1px solid var(--ml-border); }

.ml-container {
    max-width: var(--ml-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ── Typography ────────────────────────────────────────────────── */
.ml-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ml-accent);
    margin-bottom: .75rem;
}
.ml-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ml-accent);
    flex-shrink: 0;
}

.ml-kicker {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ml-muted);
    margin-bottom: .5rem;
}

.ml-display {
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--ml-bone);
}

.ml-h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.ml-h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ml-h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
.ml-h4 { font-size: 1.2rem; font-weight: 700; }

.ml-sub {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: rgba(236,236,234,.75);
    line-height: 1.7;
    max-width: 640px;
}

.ml-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: .875em;
}

.ml-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ml-muted);
}

.ml-accent { color: var(--ml-accent); }
.ml-muted  { color: var(--ml-muted); }

/* ── Page header ───────────────────────────────────────────────── */
.ml-page-header {
    padding: 6rem 1.5rem 4rem;
    max-width: var(--ml-max);
    margin: 0 auto;
}
.ml-page-header__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 1rem 0 1.25rem;
    color: var(--ml-bone);
}
.ml-page-header__sub {
    font-size: 1.0625rem;
    color: rgba(236,236,234,.75);
    max-width: 700px;
    line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.ml-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 100px;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    border: none;
}
.ml-btn--primary {
    background: var(--ml-accent);
    color: var(--ml-ink);
}
.ml-btn--primary:hover { background: var(--ml-tint); color: var(--ml-ink); }
.ml-btn--ghost {
    background: transparent;
    border: 1px solid var(--ml-border);
    color: var(--ml-bone);
}
.ml-btn--ghost:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }
.ml-btn--link {
    background: transparent;
    border: none;
    color: var(--ml-bone);
    padding-left: 0; padding-right: 0;
}
.ml-btn--link:hover { color: var(--ml-accent); }
.ml-btn--lg { padding: .875rem 2rem; font-size: 1rem; }
.ml-btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.ml-btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Cards ─────────────────────────────────────────────────────── */
.ml-card {
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: var(--ml-radius);
    padding: 1.75rem;
    height: 100%;
}
.ml-card--accent {
    border-color: rgba(0,210,122,.3);
    background: rgba(0,210,122,.03);
}
.ml-card__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(0,210,122,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--ml-accent);
    margin-bottom: 1rem;
}
.ml-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
    color: var(--ml-bone);
}
.ml-card__body {
    font-size: .875rem;
    color: var(--ml-muted);
    line-height: 1.65;
}

/* ── Feature grid ──────────────────────────────────────────────── */
.ml-grid-3 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
.ml-grid-2 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .ml-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ml-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .ml-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Checklist ─────────────────────────────────────────────────── */
.ml-checklist {
    list-style: none;
    margin: 0; padding: 0;
}
.ml-checklist li {
    display: flex;
    gap: .625rem;
    align-items: flex-start;
    font-size: .9375rem;
    color: rgba(236,236,234,.85);
    margin-bottom: .625rem;
}
.ml-checklist li::before {
    content: '';
    width: 16px; height: 16px;
    min-width: 16px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(0,210,122,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.5 3.5 6.5-7' stroke='%2300D27A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ── Section head ──────────────────────────────────────────────── */
.ml-section-head {
    max-width: 640px;
    margin-bottom: 3rem;
}
.ml-section-head__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ml-bone);
    margin: .75rem 0 .875rem;
}
.ml-section-head__sub {
    font-size: .9375rem;
    color: var(--ml-muted);
    line-height: 1.7;
}

/* ── Pill / badge ──────────────────────────────────────────────── */
.ml-pill {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .75rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--ml-border);
    color: rgba(236,236,234,.75);
}
.ml-pill--accent {
    background: rgba(0,210,122,.1);
    border-color: rgba(0,210,122,.3);
    color: var(--ml-accent);
}

/* ── Stats strip ───────────────────────────────────────────────── */
.ml-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: var(--ml-radius);
    background: rgba(22,24,28,.4);
    margin-top: 4rem;
}
@media (min-width: 1024px) {
    .ml-stats-strip { grid-template-columns: repeat(4, 1fr); }
}
.ml-stats-strip__cell {
    padding: 1.75rem;
    border-right: 1px solid var(--ml-border);
    border-bottom: 1px solid var(--ml-border);
}
.ml-stats-strip__cell:nth-child(even), .ml-stats-strip__cell:nth-child(4) { border-right: 0; }
@media (min-width: 1024px) {
    .ml-stats-strip__cell { border-bottom: 0; }
    .ml-stats-strip__cell:nth-child(even)  { border-right: 1px solid var(--ml-border); }
    .ml-stats-strip__cell:nth-child(4) { border-right: 0; }
}
.ml-stats-strip__num {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: rgba(236,236,234,.3);
}
.ml-stats-strip__label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); margin-top: .625rem; }
.ml-stats-strip__note  { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: rgba(142,144,152,.7); margin-top: .25rem; }

/* ── Marquee ───────────────────────────────────────────────────── */
.ml-marquee-wrap { overflow: hidden; width: 100%; position: relative; }
.ml-marquee-wrap::before, .ml-marquee-wrap::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.ml-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--ml-ink), transparent); }
.ml-marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--ml-ink), transparent); }
.ml-marquee {
    display: flex;
    gap: .75rem;
    width: max-content;
    animation: ml-scroll 30s linear infinite;
}
.ml-marquee:hover { animation-play-state: paused; }
@keyframes ml-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ml-marquee__item {
    padding: .625rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--ml-border);
    background: rgba(22,24,28,.6);
    color: rgba(236,236,234,.75);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Logo box / integration tile ──────────────────────────────── */
.ml-logo-box {
    padding: 1.125rem;
    border-radius: 12px;
    border: 1px solid var(--ml-border);
    background: var(--ml-surface);
    text-align: center;
}
.ml-logo-box__name { font-size: .875rem; font-weight: 700; color: var(--ml-bone); }
.ml-logo-box__type { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-muted); margin-top: .25rem; }

/* ── Tech stack badges ─────────────────────────────────────────── */
.ml-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.ml-stack-badge {
    padding: .75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--ml-border);
    background: var(--ml-surface);
}
.ml-stack-badge__name { font-size: .875rem; font-weight: 700; color: var(--ml-bone); }
.ml-stack-badge__note { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-muted); margin-top: .25rem; }

/* ── Code block ────────────────────────────────────────────────── */
.ml-code-block {
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-border);
    background: var(--ml-ink);
    overflow: hidden;
}
.ml-code-block__header {
    padding: .625rem 1.25rem;
    border-bottom: 1px solid var(--ml-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ml-code-block__path { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-muted); }
.ml-code-block__badge { font-size: .6875rem; font-weight: 600; padding: .2rem .6rem; border-radius: 100px; background: rgba(0,210,122,.12); color: var(--ml-accent); }
.ml-code-block__body  { padding: 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: .75rem; line-height: 1.75; color: rgba(236,236,234,.85); overflow-x: auto; white-space: pre; }

/* ── Final CTA band ────────────────────────────────────────────── */
.ml-final-cta {
    padding: 6rem 1.5rem;
    background: var(--ml-surface);
    border-top: 1px solid var(--ml-border);
    text-align: center;
}
.ml-final-cta__eyebrow { justify-content: center; margin-bottom: 1.25rem; }
.ml-final-cta__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ml-bone);
    margin-bottom: 1rem;
}
.ml-final-cta__sub {
    font-size: 1rem;
    color: var(--ml-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Booking timeline ──────────────────────────────────────────── */
.ml-timeline { position: relative; padding-left: 1.5rem; }
.ml-timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 1px; background: var(--ml-border); }
.ml-timeline__item { position: relative; margin-bottom: 1rem; }
.ml-timeline__dot {
    position: absolute;
    left: -1.35rem; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ml-accent);
    box-shadow: 0 0 0 3px var(--ml-ink);
}
.ml-timeline__state { font-size: .875rem; font-weight: 600; }
.ml-timeline__time  { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-muted); }
.ml-timeline__note  { font-size: .8125rem; color: var(--ml-muted); }

/* ── Before/After ──────────────────────────────────────────────── */
.ml-before-after { display: grid; gap: 1rem; }
@media (min-width: 768px) { .ml-before-after { grid-template-columns: 1fr 1fr; } }
.ml-before-card, .ml-after-card {
    border-radius: 24px;
    border: 1px solid var(--ml-border);
    padding: 2rem 2.25rem;
}
.ml-before-card { background: rgba(22,24,28,.4); }
.ml-after-card  { background: rgba(0,210,122,.03); border-color: rgba(0,210,122,.3); }
.ml-dl { display: grid; gap: .75rem; }
.ml-dl__row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.ml-dl__row:last-child { border-bottom: 0; padding-bottom: 0; }
.ml-dl__key { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); padding-top: .125rem; }
.ml-dl__val { font-size: .875rem; color: rgba(236,236,234,.8); }

/* ── Contact form ──────────────────────────────────────────────── */
.ml-form-card {
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 24px;
    padding: 2rem 2.25rem;
}
.ml-form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ml-form-row { grid-template-columns: 1fr 1fr; } }
.ml-field { margin-bottom: 1rem; }
.ml-field label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ml-muted);
    margin-bottom: .375rem;
}
.ml-field input,
.ml-field select,
.ml-field textarea {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--ml-border);
    border-radius: 10px;
    color: var(--ml-bone);
    font-family: 'Manrope', sans-serif;
    font-size: .9375rem;
    padding: .75rem 1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.ml-field input:focus,
.ml-field select:focus,
.ml-field textarea:focus {
    border-color: var(--ml-accent);
    box-shadow: 0 0 0 3px rgba(0,210,122,.25);
}
.ml-field textarea { min-height: 120px; resize: vertical; }
.ml-field select option { background: var(--ml-ink); }
.ml-field__error { font-size: .8125rem; color: #f87171; margin-top: .25rem; display: none; }
.ml-field--invalid .ml-field__error { display: block; }
.ml-field--invalid input,
.ml-field--invalid select,
.ml-field--invalid textarea { border-color: rgba(248,113,113,.5); }

.ml-contact-success {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0,210,122,.3);
    background: rgba(0,210,122,.04);
    text-align: center;
    display: none;
}
.ml-contact-success__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ml-accent);
    color: var(--ml-ink);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

/* ── Contact info cards ────────────────────────────────────────── */
.ml-contact-card {
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: var(--ml-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.ml-contact-card__title { font-size: .875rem; font-weight: 700; color: var(--ml-bone); margin-bottom: .625rem; }
.ml-contact-card__row   { display: flex; justify-content: space-between; font-size: .8125rem; padding: .25rem 0; }
.ml-contact-card__key   { color: var(--ml-muted); }
.ml-contact-card__val   { color: var(--ml-bone); font-weight: 500; }

/* ── Pricing table ─────────────────────────────────────────────── */
.ml-pricing-table { border-radius: var(--ml-radius); border: 1px solid var(--ml-border); background: var(--ml-surface); overflow: hidden; }
.ml-pricing-table__head { display: grid; grid-template-columns: 1fr 80px 80px 80px; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--ml-border); }
.ml-pricing-table__head span { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); }
.ml-pricing-table__head span:not(:first-child) { text-align: right; }
.ml-pricing-table__row { display: grid; grid-template-columns: 1fr 80px 80px 80px; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .8125rem; }
.ml-pricing-table__row:last-child { border-bottom: 0; }
.ml-pricing-table__row span:not(:first-child) { text-align: right; font-family: 'JetBrains Mono', monospace; color: rgba(236,236,234,.8); }
.ml-pricing-table__row span:last-child { color: var(--ml-accent); }
.ml-pricing-table__row span:first-child { font-weight: 600; }

/* ── Values cards ──────────────────────────────────────────────── */
.ml-value-num { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; letter-spacing: .1em; color: var(--ml-accent); margin-bottom: 1rem; }

/* ── Accordion (dispatch page) ─────────────────────────────────── */
.ml-accordion { border: 1px solid var(--ml-border); border-radius: var(--ml-radius); overflow: hidden; }
.ml-accordion__item { border-bottom: 1px solid var(--ml-border); }
.ml-accordion__item:last-child { border-bottom: 0; }
.ml-accordion__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--ml-bone);
    transition: background .15s;
}
.ml-accordion__trigger:hover { background: rgba(255,255,255,.03); }
.ml-accordion__trigger.is-open { background: rgba(255,255,255,.02); }
.ml-accordion__trigger-inner { flex: 1; }
.ml-accordion__num  { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-muted); margin-right: .75rem; }
.ml-accordion__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.ml-accordion__tease { font-size: .875rem; color: var(--ml-muted); margin-top: .25rem; }
.ml-accordion__icon { font-size: 1.25rem; color: var(--ml-muted); transition: transform .2s; flex-shrink: 0; margin-left: 1rem; }
.ml-accordion__trigger.is-open .ml-accordion__icon { transform: rotate(45deg); }
.ml-accordion__body { display: none; padding: 0 1.5rem 1.5rem; }
.ml-accordion__body.is-open { display: block; }

/* ── Dispatch sub-nav ──────────────────────────────────────────── */
.ml-subnav {
    position: sticky;
    top: 0; z-index: 30;
    background: rgba(14,15,18,.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--ml-border);
    border-bottom: 1px solid var(--ml-border);
    padding: .5rem 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.ml-subnav::-webkit-scrollbar { display: none; }
.ml-subnav a {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1rem;
    border-radius: 100px;
    font-size: .8125rem;
    color: rgba(236,236,234,.7);
    text-decoration: none;
    margin-right: .25rem;
    transition: all .15s;
}
.ml-subnav a:hover { color: var(--ml-bone); background: rgba(255,255,255,.05); }
.ml-subnav a .ml-subnav__num { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: var(--ml-muted); }

/* ── Pillar cards (home) ───────────────────────────────────────── */
.ml-pillar {
    display: block;
    padding: 2rem;
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-border);
    background: var(--ml-surface);
    text-decoration: none;
    color: inherit;
    transition: all .15s;
    height: 100%;
}
.ml-pillar:hover { border-color: rgba(255,255,255,.15); background: var(--ml-elev); }
.ml-pillar__kicker { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ml-accent); margin-bottom: 1rem; }
.ml-pillar__title  { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .625rem; color: var(--ml-bone); }
.ml-pillar__blurb  { font-size: .875rem; color: var(--ml-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.ml-pillar__cta    { font-size: .8125rem; font-weight: 600; color: var(--ml-bone); display: flex; align-items: center; gap: .25rem; }
.ml-pillar:hover .ml-pillar__cta { color: var(--ml-accent); }

/* ── Trusted-by sector boxes ───────────────────────────────────── */
.ml-sector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .625rem;
}
@media (max-width: 768px) { .ml-sector-grid { grid-template-columns: repeat(3, 1fr); } }
.ml-sector-box {
    padding: .875rem .5rem;
    border-radius: 10px;
    border: 1px solid var(--ml-border);
    background: rgba(22,24,28,.5);
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(236,236,234,.5);
}

/* ── Affiliate pattern cards ───────────────────────────────────── */
.ml-pattern-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-muted); margin-bottom: .625rem; }

/* ── MXP tag row ───────────────────────────────────────────────── */
.ml-tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ml-tag {
    padding: .375rem .875rem;
    border-radius: 100px;
    background: rgba(0,210,122,.1);
    border: 1px solid rgba(0,210,122,.3);
    color: var(--ml-accent);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ── Grid helpers ──────────────────────────────────────────────── */
.ml-gap-sm  { gap: .75rem; }
.ml-mt-sm   { margin-top: 1.25rem; }
.ml-mt-md   { margin-top: 2rem; }
.ml-mt-lg   { margin-top: 3rem; }
.ml-flex    { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ml-center  { text-align: center; }
.ml-two-col { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .ml-two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.ml-two-col--center { align-items: center !important; }

/* ── Hero layout ───────────────────────────────────────────────── */
.ml-hero {
    padding: 7rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.ml-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
    pointer-events: none;
}
.ml-hero-inner {
    max-width: var(--ml-max);
    margin: 0 auto;
    display: grid;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 1024px) { .ml-hero-inner { grid-template-columns: 1.05fr 1fr; } }
.ml-hero__h1 {
    font-size: clamp(2.5rem, 6vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: .96;
    color: var(--ml-bone);
    margin: 1.25rem 0 1.25rem;
}
.ml-hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: rgba(236,236,234,.75);
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 2rem;
}
.ml-hero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .8125rem; color: var(--ml-muted); margin-top: 2rem; }
.ml-hero__meta-check { display: flex; align-items: center; gap: .375rem; color: rgba(236,236,234,.85); }
.ml-hero__meta-check::before {
    content: '✓';
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(0,210,122,.12);
    color: var(--ml-accent);
    font-size: .6875rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Dispatch loop mockup ──────────────────────────────────────── */
.ml-dispatch-mock {
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-border);
    background: var(--ml-surface);
    padding: 1.25rem;
}
.ml-dispatch-mock__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ml-dispatch-mock__title  { font-size: .8125rem; font-weight: 700; color: var(--ml-bone); }
.ml-dispatch-mock__live   { display: flex; align-items: center; gap: .375rem; font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: var(--ml-accent); }
.ml-dispatch-mock__dot    { width: 6px; height: 6px; border-radius: 50%; background: var(--ml-accent); animation: ml-pulse 2s infinite; }
@keyframes ml-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.ml-route-map { margin: .75rem 0 1rem; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }
.ml-booking-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: .75rem; align-items: center; padding: .625rem .75rem; border-radius: 8px; background: rgba(255,255,255,.03); margin-bottom: .375rem; font-size: .8125rem; }
.ml-booking-row__code  { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: var(--ml-muted); }
.ml-booking-row__route { color: rgba(236,236,234,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-booking-status { font-size: .625rem; font-weight: 600; padding: .2rem .5rem; border-radius: 100px; }
.ml-booking-status--active { background: rgba(0,210,122,.12); color: var(--ml-accent); }
.ml-booking-status--muted  { background: rgba(255,255,255,.06); color: var(--ml-muted); }
.ml-dispatch-stats { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ml-border); font-size: .75rem; }
.ml-dispatch-stats__val   { font-weight: 700; font-size: .875rem; color: var(--ml-bone); }
.ml-dispatch-stats__label { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: var(--ml-muted); }

/* ── Case study placeholder ────────────────────────────────────── */
.ml-case-study-block {
    border-radius: 24px;
    border: 1px dashed rgba(255,255,255,.15);
    background: rgba(22,24,28,.3);
    padding: 2rem 2.5rem;
}
.ml-case-metric { margin-bottom: 1.5rem; }
.ml-case-metric__val { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: rgba(236,236,234,.25); }
.ml-case-metric__label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(142,144,152,.8); margin-top: .375rem; }
.ml-blockquote { border-left: 2px solid rgba(255,255,255,.15); padding-left: 1.25rem; font-size: .9375rem; font-style: italic; color: var(--ml-muted); line-height: 1.7; margin-top: 1.5rem; }
.ml-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px dashed var(--ml-border); flex-shrink: 0; }

/* ── Related cards row ─────────────────────────────────────────── */
.ml-related-card {
    padding: 1.75rem;
    border-radius: var(--ml-radius);
    border: 1px solid var(--ml-border);
    background: var(--ml-surface);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all .15s;
}
.ml-related-card:hover { border-color: rgba(255,255,255,.15); background: var(--ml-elev); }
.ml-related-card__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; color: var(--ml-bone); display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.ml-related-card__arrow { color: var(--ml-muted); }
.ml-related-card:hover .ml-related-card__arrow { color: var(--ml-accent); }
.ml-related-card__desc { font-size: .875rem; color: var(--ml-muted); line-height: 1.6; }

/* ── Phone mockup ──────────────────────────────────────────────── */
.ml-phone-frame {
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 40px;
    background: var(--ml-ink);
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.ml-phone-frame__inner { padding: 1.25rem 1rem; }
.ml-phone-label { text-align: center; font-size: .75rem; font-weight: 600; color: var(--ml-muted); margin-top: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* ── Browser frame ─────────────────────────────────────────────── */
.ml-browser-frame {
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ml-browser-frame__bar {
    background: #f0f0ee;
    padding: .625rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.ml-browser-frame__dots { display: flex; gap: .35rem; }
.ml-browser-frame__dot  { width: 10px; height: 10px; border-radius: 50%; }
.ml-browser-frame__dot:nth-child(1) { background: #ff5f57; }
.ml-browser-frame__dot:nth-child(2) { background: #febc2e; }
.ml-browser-frame__dot:nth-child(3) { background: #28c840; }
.ml-browser-frame__url {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: .3rem .75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: #555;
}
.ml-browser-frame__body { background: #fafaf8; }

/* ── B2C booking mock ──────────────────────────────────────────── */
.ml-b2c-mock { padding: 2rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .ml-b2c-mock { grid-template-columns: 1.1fr 1fr; } }
.ml-booking-form { background: #f5f5f3; border-radius: 14px; padding: 1.25rem; color: #111; }
.ml-booking-form__label { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: #777; text-transform: uppercase; letter-spacing: .08em; }
.ml-booking-form__value { font-weight: 700; font-size: .875rem; color: #111; margin-top: .25rem; }
.ml-booking-form__divider { border: none; border-top: 1px solid rgba(0,0,0,.08); margin: .875rem 0; }
.ml-service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .875rem; }
.ml-service-option { padding: .75rem .5rem; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); background: #fff; text-align: center; }
.ml-service-option--selected { border: 2px solid #00D27A; background: #f0fdf9; }
.ml-service-option__name  { font-size: .75rem; font-weight: 600; color: #111; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.ml-service-option__price { font-size: 1rem; font-weight: 800; color: #111; margin-top: .25rem; }
.ml-map-placeholder {
    border-radius: 12px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: .75rem;
    font-size: .6875rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='240'><rect width='400' height='240' fill='%23e5e1d4'/><rect x='0' y='0' width='58' height='52' fill='%23d8d4c7'/><rect x='64' y='0' width='64' height='52' fill='%23d8d4c7'/><rect x='134' y='0' width='64' height='52' fill='%23d8d4c7'/><rect x='204' y='0' width='64' height='52' fill='%23d8d4c7'/><rect x='274' y='0' width='64' height='52' fill='%23d8d4c7'/><rect x='344' y='0' width='56' height='52' fill='%23d8d4c7'/><rect x='0' y='57' width='58' height='55' fill='%23d8d4c7'/><rect x='64' y='57' width='64' height='55' fill='%23c6dcb6'/><rect x='134' y='57' width='64' height='55' fill='%23c6dcb6'/><rect x='204' y='57' width='64' height='55' fill='%23d8d4c7'/><rect x='274' y='57' width='64' height='55' fill='%23d8d4c7'/><rect x='344' y='57' width='56' height='55' fill='%23d8d4c7'/><rect x='0' y='117' width='58' height='55' fill='%23d8d4c7'/><rect x='64' y='117' width='64' height='55' fill='%23d8d4c7'/><rect x='134' y='117' width='64' height='55' fill='%23d8d4c7'/><rect x='204' y='117' width='64' height='55' fill='%23d8d4c7'/><rect x='274' y='117' width='64' height='55' fill='%23c6dcb6'/><rect x='344' y='117' width='56' height='55' fill='%23d8d4c7'/><rect x='0' y='177' width='58' height='63' fill='%23d8d4c7'/><rect x='64' y='177' width='64' height='63' fill='%23d8d4c7'/><rect x='134' y='177' width='64' height='63' fill='%23d8d4c7'/><rect x='204' y='177' width='64' height='63' fill='%23d8d4c7'/><rect x='274' y='177' width='64' height='63' fill='%23d8d4c7'/><rect x='344' y='177' width='56' height='63' fill='%23d8d4c7'/><rect x='126' y='0' width='10' height='240' fill='%23fff'/><rect x='0' y='110' width='400' height='8' fill='%23fff'/><polyline points='29,114 61,114 61,54 300,54' stroke='%2300D27A' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/><circle cx='29' cy='114' r='6' fill='%2300D27A' stroke='%23fff' stroke-width='2'/><circle cx='300' cy='40' r='10' fill='%2300D27A'/><polygon points='291,47 309,47 300,61' fill='%2300D27A'/><circle cx='300' cy='40' r='4' fill='%23fff'/></svg>");
}
.ml-map-placeholder::before { display: none; }
.ml-map-placeholder::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 65%, rgba(232,228,216,.4) 100%);
    pointer-events: none;
}

/* ── B2B portal mock ───────────────────────────────────────────── */
.ml-b2b-mock { background: #fafaf8; padding: 1.5rem; border-top: 1px solid rgba(0,0,0,.06); }
.ml-b2b-mock__topbar { background: #111; border-radius: 8px 8px 0 0; padding: .625rem 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ml-b2b-mock__brand  { font-size: .875rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.ml-b2b-mock__corp   { font-family: 'JetBrains Mono', monospace; font-size: .625rem; color: rgba(255,255,255,.5); }
.ml-trip-row { padding: .875rem 1rem; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 10px; margin-bottom: .5rem; }
.ml-trip-row__title  { font-size: .875rem; font-weight: 700; color: #111; }
.ml-trip-row__meta   { font-size: .75rem; color: #888; margin-top: .25rem; }
.ml-pending-badge    { display: inline-block; font-size: .625rem; font-weight: 600; padding: .2rem .625rem; border-radius: 100px; background: rgba(251,191,36,.12); color: #b45309; border: 1px solid rgba(251,191,36,.3); }

/* ── Venue app mock ────────────────────────────────────────────── */
.ml-venue-row { padding: .625rem .875rem; background: rgba(255,255,255,.04); border-radius: 8px; margin-bottom: .375rem; font-size: .8125rem; display: flex; justify-content: space-between; align-items: center; }
.ml-venue-row__name { font-weight: 600; color: var(--ml-bone); }
.ml-venue-row__dest { font-size: .75rem; color: var(--ml-muted); }
.ml-venue-row__time { font-family: 'JetBrains Mono', monospace; font-size: .6875rem; color: var(--ml-accent); flex-shrink: 0; }

/* ── Responsive helpers ────────────────────────────────────────── */
@media (max-width: 767px) {
    .ml-hide-mobile { display: none !important; }
    .ml-section { padding: 3.5rem 1.25rem; }
    .ml-hero    { padding: 4.5rem 1.25rem 3rem; }
    .ml-final-cta { padding: 4rem 1.25rem; }
    .ml-page-header { padding: 4rem 1.25rem 2.5rem; }
    .ml-form-card { padding: 1.5rem 1.25rem; }
}

/* ── Site navigation ───────────────────────────────────────────────
   Rendered via wp_body_open outside .ml-page, so NOT scoped under it.
   Uses ml-nav__ prefix throughout.
----------------------------------------------------------------- */
.ml-nav {
    --ml-nav-h: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    height: var(--ml-nav-h);
    background: rgba(14,15,18,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-family: 'Manrope', -apple-system, system-ui, sans-serif;
    color: #ECECEA;
    transition: background 0.2s ease;
}
.admin-bar .ml-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .ml-nav { top: 46px; } }

.ml-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo */
.ml-nav__logo {
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.03em;
    flex-shrink: 0;
    line-height: 1;
}
.ml-nav__logo-moov  { color: #ECECEA; }
.ml-nav__logo-logic { color: #00D27A; }

/* Desktop links */
.ml-nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
}
.ml-nav__link {
    display: inline-flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: #8E9098;
    text-decoration: none;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.ml-nav__link:hover, .ml-nav__link--active {
    color: #ECECEA;
    background: rgba(255,255,255,0.06);
}

/* Dropdown groups */
.ml-nav__group { position: relative; }
.ml-nav__group-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    background: none;
    border: none;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: #8E9098;
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.ml-nav__group-btn:hover,
.ml-nav__group--active .ml-nav__group-btn,
.ml-nav__group--open .ml-nav__group-btn {
    color: #ECECEA;
    background: rgba(255,255,255,0.06);
}
.ml-nav__chevron {
    font-size: .5625rem;
    color: #8E9098;
    transition: transform .2s ease;
}
.ml-nav__group--open .ml-nav__chevron { transform: rotate(180deg); }

.ml-nav__dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 210px;
    padding: .375rem;
    background: rgba(22,24,28,0.97);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(6px) scale(.98);
    pointer-events: none;
    transition: opacity .15s ease, transform .18s ease;
}
.ml-nav__group--open .ml-nav__dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.ml-nav__dropdown-link {
    display: block;
    padding: .5rem .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #8E9098;
    text-decoration: none;
    border-radius: 8px;
    transition: color .12s ease, background .12s ease;
}
.ml-nav__dropdown-link:hover { color: #ECECEA; background: rgba(255,255,255,0.06); }
.ml-nav__dropdown-link--active { color: #00D27A; background: rgba(0,210,122,.08); }

/* CTA button + hamburger */
.ml-nav__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}
.ml-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: .4375rem 1rem;
    background: #00D27A;
    color: #0E0F12;
    font-size: .8125rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, transform .12s ease;
}
.ml-nav__cta:hover { background: #00bf6e; transform: translateY(-1px); }

.ml-nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0 6px;
    background: none !important;
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 8px;
    cursor: pointer;
    color: #ECECEA;
}
.ml-nav__burger span {
    display: block;
    height: 1.5px;
    background: #ECECEA;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.ml-nav--mobile-open .ml-nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ml-nav--mobile-open .ml-nav__burger span:nth-child(2) { opacity: 0; }
.ml-nav--mobile-open .ml-nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.ml-nav__mobile {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;           /* vertical padding is 0 when closed — prevents bleed-through */
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(14,15,18,0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.ml-nav--mobile-open .ml-nav__mobile {
    max-height: 600px;
    padding: .75rem 1.5rem 1.25rem;
}
.ml-nav__mobile-section {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ml-nav__mobile-section:last-child { border-bottom: none; }
.ml-nav__mobile-label {
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #8E9098;
    padding: .25rem 0 .375rem;
}
.ml-nav__mobile-link {
    display: block;
    padding: .5rem 0;
    font-size: .9375rem;
    font-weight: 600;
    color: #8E9098;
    text-decoration: none;
    transition: color .12s ease;
}
.ml-nav__mobile-link:hover,
.ml-nav__mobile-link--active { color: #ECECEA; }
.ml-nav__mobile-cta { color: #00D27A; margin-top: .25rem; }
.ml-nav__mobile-cta:hover { color: #00bf6e; }

/* Offset page content from fixed nav */
.ml-page { padding-top: var(--ml-nav-h, 60px); }
.admin-bar .ml-page { padding-top: calc(var(--ml-nav-h, 60px) + 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .ml-page { padding-top: calc(var(--ml-nav-h, 60px) + 46px); }
}

/* Responsive: show hamburger, hide desktop links */
@media (max-width: 900px) {
    .ml-nav {
        height: auto;
        min-height: 56px;
        overflow: hidden;
    }
    .ml-nav--mobile-open { overflow: visible; }
    .ml-nav__inner { height: 56px; }
    .ml-nav__links { display: none; }
    .ml-nav__cta   { display: none; }
    .ml-nav__burger { display: flex; }
    .ml-nav__mobile { display: flex; }
    .ml-page { padding-top: 56px; }
    .admin-bar .ml-page { padding-top: calc(56px + 32px); }
    @media screen and (max-width: 782px) {
        .admin-bar .ml-page { padding-top: calc(56px + 46px); }
    }
}

/* ── Floating language switcher ────────────────────────────────────
   Documented exception: this component renders outside `.ml-page`
   (via wp_footer hook), so styles are NOT scoped under .ml-page.
   The unique `ml-lang-switcher` prefix avoids collision with theme.
----------------------------------------------------------------- */
.ml-lang-switcher {
    --ml-ls-ink:     #0E0F12;
    --ml-ls-surface: #16181C;
    --ml-ls-elev:    #1D1F24;
    --ml-ls-accent:  #00D27A;
    --ml-ls-bone:    #ECECEA;
    --ml-ls-muted:   #8E9098;
    --ml-ls-border:  rgba(255,255,255,0.10);

    position: fixed;
    bottom: 4.5rem;
    right: 1.25rem;
    z-index: 9999;
    font-family: 'Manrope', -apple-system, system-ui, sans-serif;
    color: var(--ml-ls-bone);
}
body.admin-bar .ml-lang-switcher { bottom: 1.25rem; }
body:has(.ml-consent-banner.is-visible) .ml-lang-switcher {
    bottom: calc(4.5rem + 110px);
    transition: bottom .35s cubic-bezier(.4,0,.2,1);
}

.ml-lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem .875rem;
    border-radius: 999px;
    border: 1px solid var(--ml-ls-border);
    background: rgba(22,24,28,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ml-ls-bone);
    font: inherit;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(0,210,122,0);
    transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.ml-lang-switcher__toggle:hover,
.ml-lang-switcher__toggle:focus-visible {
    border-color: rgba(0,210,122,.45);
    box-shadow: 0 4px 24px rgba(0,0,0,.30), 0 0 0 3px rgba(0,210,122,.18);
    outline: none;
}
.ml-lang-switcher__toggle:active { transform: translateY(1px); }
.ml-lang-switcher__flag {
    font-size: 1rem;
    line-height: 1;
}
.ml-lang-switcher__code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .6875rem;
    letter-spacing: .08em;
    color: var(--ml-ls-bone);
}
.ml-lang-switcher__chevron {
    font-size: .625rem;
    color: var(--ml-ls-muted);
    transition: transform .2s ease;
}
.ml-lang-switcher--open .ml-lang-switcher__chevron { transform: rotate(180deg); }

.ml-lang-switcher__menu {
    position: absolute;
    bottom: calc(100% + .5rem);
    right: 0;
    min-width: 240px;
    padding: .5rem;
    border-radius: 14px;
    border: 1px solid var(--ml-ls-border);
    background: rgba(22,24,28,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0,0,0,.40);
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .15s ease, transform .18s ease;
}
.ml-lang-switcher--open .ml-lang-switcher__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ml-lang-switcher__menu-title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ml-ls-muted);
    padding: .5rem .625rem .375rem;
}

.ml-lang-btn {
    display: flex;
    align-items: center;
    gap: .625rem;
    width: 100%;
    padding: .5rem .625rem;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--ml-ls-bone);
    font: inherit;
    font-size: .8125rem;
    text-align: left;
    cursor: pointer;
    transition: background-color .12s ease;
}
.ml-lang-btn:hover,
.ml-lang-btn:focus-visible {
    background: rgba(255,255,255,0.06);
    outline: none;
}
.ml-lang-btn--active {
    background: rgba(0,210,122,.10);
    color: var(--ml-ls-accent);
}
.ml-lang-btn--active:hover { background: rgba(0,210,122,.14); }

.ml-lang-btn__flag { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.ml-lang-btn__name { flex: 1; font-weight: 600; }
.ml-lang-btn__code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .625rem;
    letter-spacing: .08em;
    color: var(--ml-ls-muted);
}
.ml-lang-btn--active .ml-lang-btn__code { color: var(--ml-ls-accent); }

@media (max-width: 480px) {
    .ml-lang-switcher { bottom: 4.5rem; right: .75rem; }
    .ml-lang-switcher__menu { min-width: 220px; }
}

/* ── Site footer ────────────────────────────────────────────────── */
.ml-site-footer {
    background: var(--ml-ink);
    border-top: 1px solid var(--ml-border);
    padding: 1.25rem 1.5rem;
}
.ml-site-footer__inner {
    max-width: var(--ml-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ml-site-footer__copy {
    font-size: .8125rem;
    color: var(--ml-muted);
}
.ml-site-footer__links {
    display: flex;
    gap: 1.5rem;
}
.ml-site-footer__link {
    font-size: .8125rem;
    color: var(--ml-muted);
    text-decoration: none;
    transition: color .2s;
}
.ml-site-footer__link:hover { color: var(--ml-bone); }

@media (max-width: 600px) {
    .ml-site-footer__inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ── Legal pages (cookie policy / privacy policy) ───────────────── */
.ml-legal {
    padding: 5rem 1.5rem 6rem;
}
.ml-legal__wrap {
    max-width: 760px;
    margin: 0 auto;
}
.ml-legal__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ml-bone);
    margin: 0 0 .75rem;
}
.ml-legal__muted {
    color: var(--ml-muted);
    margin: 0 0 .25rem;
}
.ml-legal__updated {
    color: var(--ml-muted);
    margin: 0 0 2.5rem;
}
.ml-legal__toc {
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: var(--ml-radius);
    padding: 1.25rem 1.5rem 1.25rem 2rem;
    margin: 0 0 3rem;
    display: inline-block;
    min-width: 260px;
}
.ml-legal__toc strong {
    display: block;
    color: var(--ml-bone);
    margin-bottom: .5rem;
    font-size: .875rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.ml-legal__toc ol {
    margin: 0;
    padding-left: 1.25rem;
}
.ml-legal__toc li { margin: .25rem 0; }
.ml-legal__toc a {
    color: var(--ml-muted);
    text-decoration: none;
    font-size: .9375rem;
    transition: color .2s;
}
.ml-legal__toc a:hover { color: var(--ml-accent); }

.ml-legal section {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ml-border);
}
.ml-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ml-bone);
    margin: 0 0 .75rem;
}
.ml-legal h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ml-bone);
    margin: 1.25rem 0 .5rem;
}
.ml-legal p, .ml-legal li {
    color: var(--ml-muted);
    line-height: 1.75;
    font-size: .9375rem;
}
.ml-legal ul, .ml-legal ol {
    padding-left: 1.5rem;
    margin: .5rem 0 1rem;
}
.ml-legal li { margin: .35rem 0; }
.ml-legal strong { color: var(--ml-bone); }
.ml-legal a { color: var(--ml-accent); text-decoration: none; }
.ml-legal a:hover { text-decoration: underline; }
.ml-legal code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8125rem;
    background: var(--ml-elev);
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    padding: .1em .4em;
    color: var(--ml-tint);
}

.ml-legal__table-wrap { overflow-x: auto; margin: 1rem 0; }
.ml-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.ml-legal th {
    text-align: left;
    padding: .6rem .875rem;
    background: var(--ml-surface);
    border: 1px solid var(--ml-border);
    color: var(--ml-bone);
    font-weight: 600;
    white-space: nowrap;
}
.ml-legal td {
    padding: .6rem .875rem;
    border: 1px solid var(--ml-border);
    color: var(--ml-muted);
    vertical-align: top;
}
.ml-legal tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Blog post: space above featured image */
.single-post .entry-thumbnail { padding-top: 32px !important; }
