:root {
    --mkt-brand: #0c5c50;
    --mkt-brand-mid: #147a6a;
    --mkt-brand-dark: #083f37;
    --mkt-accent: #147a6a;
    --mkt-ink: #13201c;
    --mkt-muted: #5a6f68;
    --mkt-line: rgba(19, 32, 28, .12);
    --mkt-paper: #f3f7f5;
    --mkt-sand: #e7efeb;
    --mkt-surface: rgba(255, 255, 255, .72);
    --mkt-nav-solid: rgba(243, 247, 245, .95);
    --mkt-hero-text: #f4faf7;
    --mkt-font: "Sora", system-ui, sans-serif;
    --mkt-display: "Fraunces", Georgia, serif;
    --mkt-max: 1120px;
    --mkt-body-bg:
        radial-gradient(circle at 0% 0%, rgba(20, 122, 106, .12), transparent 42%),
        linear-gradient(180deg, #f7fbf9 0%, var(--mkt-paper) 55%, var(--mkt-sand) 100%);
}

html[data-theme="dark"] {
    --mkt-brand: #2a9b88;
    --mkt-brand-mid: #3bb39e;
    --mkt-brand-dark: #1d7a6b;
    --mkt-accent: #3bb39e;
    --mkt-ink: #e6f0ec;
    --mkt-muted: #9db0a8;
    --mkt-line: rgba(230, 240, 236, .12);
    --mkt-paper: #121c19;
    --mkt-sand: #0e1614;
    --mkt-surface: rgba(22, 34, 30, .88);
    --mkt-nav-solid: rgba(14, 22, 20, .92);
    --mkt-hero-text: #f4faf7;
    --mkt-body-bg:
        radial-gradient(circle at 12% -8%, rgba(42, 155, 136, .18), transparent 40%),
        linear-gradient(180deg, #15231f 0%, #121c19 50%, #0e1614 100%);
    color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.mkt-body {
    margin: 0;
    font-family: var(--mkt-font);
    color: var(--mkt-ink);
    background: var(--mkt-body-bg);
    min-height: 100vh;
    line-height: 1.55;
    transition: background .35s ease, color .25s ease;
}

a { color: var(--mkt-brand-mid); text-decoration: none; }
a:hover { color: var(--mkt-brand); }

.mkt-wrap {
    width: min(100% - 2.5rem, var(--mkt-max));
    margin-inline: auto;
}

/* —— Nav —— */
.mkt-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand links end";
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    color: var(--mkt-ink);
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, color .25s ease;
}

/* Accueil : textes blancs sur le hero sombre */
.mkt-has-hero .mkt-nav:not(.is-solid) {
    color: #fff;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-brand {
    color: #fff;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-links a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-links a.is-active::after,
.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-links a:hover::after {
    background: #fff;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-cta {
    background: #fff;
    color: var(--mkt-brand-dark) !important;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-cta:hover {
    background: #e8f3ef;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-toggle span {
    background: #fff;
}

.mkt-nav.is-solid {
    background: var(--mkt-nav-solid);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--mkt-line);
    color: var(--mkt-ink);
}

.mkt-nav.is-solid .mkt-nav-brand {
    color: var(--mkt-ink);
}

.mkt-nav.is-solid .mkt-nav-links a {
    color: var(--mkt-ink);
    text-shadow: none;
}

.mkt-nav.is-solid .mkt-nav-links a.is-active::after,
.mkt-nav.is-solid .mkt-nav-links a:hover::after {
    background: var(--mkt-brand-mid);
}

.mkt-nav.is-solid .mkt-nav-cta {
    background: var(--mkt-brand);
    color: #fff !important;
}

.mkt-nav.is-solid .mkt-nav-toggle span {
    background: var(--mkt-ink);
}

.mkt-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    justify-self: start;
    grid-area: brand;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo-nav {
    height: 2.65rem;
    width: auto;
    max-width: 11rem;
    background: #fff;
    border-radius: .65rem;
    padding: .2rem .4rem;
}

.brand-logo-footer {
    height: 3.25rem;
    width: auto;
    max-width: 12rem;
    margin-bottom: .65rem;
}

.brand-logo-hero {
    width: min(100%, 18rem);
    max-height: 6.5rem;
    margin: 0 0 1.25rem;
    background: #fff;
    border-radius: 1rem;
    padding: .55rem .85rem;
    box-shadow: 0 12px 40px rgba(8, 30, 26, .22);
}

.mkt-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: .7rem;
    background: linear-gradient(145deg, var(--mkt-brand-mid), var(--mkt-brand-dark));
    color: #fff;
    font-family: var(--mkt-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.mkt-brand-name {
    font-family: var(--mkt-display);
    font-weight: 650;
    font-size: 1.2rem;
    letter-spacing: -.02em;
}

.mkt-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    justify-self: center;
    grid-area: links;
}

.mkt-nav-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: .75rem;
    grid-area: end;
}

.mkt-nav-links a {
    color: inherit;
    font-size: .95rem;
    font-weight: 600;
    position: relative;
}

.mkt-nav-links a.is-active::after,
.mkt-nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.35rem;
    height: 2px;
    background: var(--mkt-brand-mid);
}

.mkt-nav-cta {
    padding: .55rem 1rem;
    border-radius: .55rem;
    background: var(--mkt-brand);
    color: #fff !important;
    font-weight: 600 !important;
    font-size: .95rem;
}

.mkt-nav-cta:hover {
    background: var(--mkt-brand-dark);
}

.mkt-nav-cta-menu {
    display: none;
}

.mkt-nav-links a.mkt-nav-cta-menu::after {
    display: none !important;
}

.mkt-theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--mkt-line);
    border-radius: .55rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.mkt-theme-toggle:hover {
    background: rgba(20, 122, 106, .1);
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-theme-toggle {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.mkt-has-hero .mkt-nav:not(.is-solid) .mkt-theme-toggle:hover {
    background: rgba(255, 255, 255, .12);
}

.mkt-theme-toggle .mkt-icon-moon { display: none; }
html[data-theme="dark"] .mkt-theme-toggle .mkt-icon-sun { display: none; }
html[data-theme="dark"] .mkt-theme-toggle .mkt-icon-moon { display: block; }

.mkt-nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    padding: .5rem;
    cursor: pointer;
    grid-area: toggle;
    justify-self: end;
}

.mkt-nav-toggle span {
    display: block;
    height: 2px;
    margin: .35rem 0;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

/* —— Hero —— */
.mkt-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--mkt-hero-text);
}

.mkt-hero-media {
    position: absolute;
    inset: 0;
}

.mkt-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: mkt-ken 18s ease-out forwards;
}

@keyframes mkt-ken {
    to { transform: scale(1); }
}

.mkt-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 63, 55, .35) 0%, rgba(8, 63, 55, .55) 42%, rgba(8, 63, 55, .88) 100%),
        linear-gradient(90deg, rgba(8, 63, 55, .55), transparent 55%);
}

.mkt-hero-inner {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 4.5rem;
    max-width: 40rem;
    margin-left: max(1.25rem, calc((100% - var(--mkt-max)) / 2));
    margin-right: auto;
}

.mkt-hero-brand {
    margin: 0 0 .85rem;
    font-family: var(--mkt-display);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.mkt-hero-title {
    margin: 0 0 1rem;
    font-family: var(--mkt-display);
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    max-width: 18ch;
}

.mkt-hero-lead {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    color: rgba(244, 250, 247, .88);
    max-width: 34ch;
}

.mkt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

html[data-theme="dark"] .mkt-btn-primary {
    background: var(--mkt-brand);
    color: #fff;
}

html[data-theme="dark"] .mkt-hero .mkt-btn-primary {
    background: #fff;
    color: #083f37;
}

html[data-theme="dark"] .mkt-hero .mkt-btn-primary:hover {
    background: #e8f3ef;
    color: #083f37;
}

/* —— Buttons —— */
.mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: .7rem 1.25rem;
    border-radius: .55rem;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.mkt-btn:active { transform: translateY(1px); }

.mkt-btn-primary {
    background: #fff;
    color: var(--mkt-brand-dark);
}

.mkt-btn-primary:hover {
    background: #e8f3ef;
    color: var(--mkt-brand-dark);
}

.mkt-cta-band .mkt-btn-primary,
.mkt-section .mkt-btn-primary,
.mkt-contact-form .mkt-btn-primary {
    background: var(--mkt-brand);
    color: #fff;
}

.mkt-cta-band .mkt-btn-primary:hover,
.mkt-section .mkt-btn-primary:hover,
.mkt-contact-form .mkt-btn-primary:hover {
    background: var(--mkt-brand-dark);
    color: #fff;
}

.mkt-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}

.mkt-btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* —— Sections —— */
.mkt-section {
    padding: 5rem 0;
}

.mkt-section-tint {
    background: color-mix(in srgb, var(--mkt-brand) 8%, transparent);
}

.mkt-kicker {
    margin: 0 0 .6rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mkt-brand-mid);
}

.mkt-h2,
.mkt-page-title {
    font-family: var(--mkt-display);
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.mkt-h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    max-width: 16ch;
}

.mkt-page-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.mkt-lead {
    margin: 0;
    color: var(--mkt-muted);
    font-size: 1.05rem;
    max-width: 36ch;
}

.mkt-lead-wide { max-width: 42ch; }

.mkt-copy {
    color: var(--mkt-muted);
    margin: 0 0 1rem;
}

.mkt-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.mkt-split-reverse { direction: rtl; }
.mkt-split-reverse > * { direction: ltr; }

.mkt-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--mkt-line);
}

.mkt-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkt-points {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.75rem;
    max-width: 40rem;
}

.mkt-points li {
    display: grid;
    gap: .35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mkt-line);
}

.mkt-points strong {
    font-family: var(--mkt-display);
    font-size: 1.25rem;
    font-weight: 650;
}

.mkt-points span { color: var(--mkt-muted); }

.mkt-cta-band {
    text-align: left;
}

.mkt-cta-band .mkt-h2 { max-width: 18ch; }
.mkt-cta-band .mkt-lead { margin-bottom: 1.5rem; }

.mkt-page-hero {
    padding: 8.5rem 0 2.5rem;
}

.mkt-about-facts {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

.mkt-contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.mkt-contact-form {
    padding: 1.75rem;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    border-radius: 1rem;
}

.mkt-form { display: grid; gap: 1rem; }

.mkt-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .86rem;
    font-weight: 600;
}

.mkt-input {
    width: 100%;
    border: 1px solid var(--mkt-line);
    border-radius: .55rem;
    padding: .75rem .9rem;
    font: inherit;
    background: color-mix(in srgb, var(--mkt-paper) 70%, #fff 30%);
    color: var(--mkt-ink);
}

html[data-theme="dark"] .mkt-input {
    background: #0f1815;
}

.mkt-input:focus {
    outline: 2px solid rgba(20, 122, 106, .35);
    border-color: var(--mkt-brand-mid);
}

.mkt-textarea { resize: vertical; min-height: 8rem; }

.mkt-field .invalid-feedback,
.mkt-field ul {
    margin: .35rem 0 0;
    padding: 0;
    list-style: none;
    color: #9a3412;
    font-size: .85rem;
}

/* —— Footer —— */
.mkt-footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-brand-dark) 8%, transparent);
}

.mkt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.mkt-footer-brand {
    font-family: var(--mkt-display);
    font-size: 1.35rem;
    font-weight: 650;
    margin-bottom: .5rem;
}

.mkt-footer p,
.mkt-footer a {
    color: var(--mkt-muted);
    display: block;
    margin: 0 0 .4rem;
}

.mkt-footer-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mkt-brand);
    margin-bottom: .75rem;
}

.mkt-footer-copy {
    padding-top: 1.25rem;
    border-top: 1px solid var(--mkt-line);
    color: var(--mkt-muted);
    font-size: .85rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.mkt-footer-copy > span:first-child {
    text-align: left;
}

.mkt-credit {
    text-align: right;
    margin-left: auto;
    white-space: nowrap;
}

.mkt-credit a {
    display: inline !important;
    margin: 0 !important;
    color: var(--mkt-brand);
    text-decoration: none;
    white-space: nowrap;
}

.mkt-credit a:hover {
    text-decoration: underline;
}

.mkt-credit strong {
    color: inherit;
    font-weight: 650;
}

@media (max-width: 640px) {
    .mkt-footer-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .mkt-credit {
        margin-left: 0;
        text-align: left;
        white-space: normal;
    }

    .mkt-wrap {
        width: min(100% - 1.5rem, var(--mkt-max));
    }

    .mkt-hero-inner {
        padding: 5.5rem 0 3rem;
        margin-left: .75rem;
        margin-right: .75rem;
    }

    .mkt-section {
        padding: 3rem 0;
    }

    .mkt-hero-lead {
        font-size: .98rem;
    }
}

/* —— Motion —— */
.reveal-up {
    opacity: 0;
    transform: translateY(1.1rem);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-up.is-in {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

.mkt-toasts {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    gap: .5rem;
    width: min(22rem, calc(100vw - 2rem));
}

.mkt-toast {
    padding: .9rem 1rem;
    border-radius: .65rem;
    background: var(--mkt-brand-dark);
    color: #fff;
    box-shadow: 0 8px 24px rgba(8, 63, 55, .2);
    animation: mkt-toast-in .35s ease;
}

.mkt-toast.is-success { background: var(--mkt-brand); }
.mkt-toast.is-danger { background: #9a3412; }

@keyframes mkt-toast-in {
    from { opacity: 0; transform: translateY(.5rem); }
    to { opacity: 1; transform: none; }
}

/* —— Responsive (mobile + tablette) —— */
@media (max-width: 1024px) {
    .mkt-split,
    .mkt-split-reverse,
    .mkt-about-facts,
    .mkt-contact-grid,
    .mkt-footer-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .mkt-hero-inner {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        max-width: none;
        width: auto;
    }

    .mkt-nav {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand end toggle";
    }

    .mkt-nav-toggle { display: block; }

    .mkt-nav-cta-bar {
        display: none;
    }

    .mkt-nav-cta-menu {
        display: flex;
        justify-content: center;
        margin-top: .5rem;
        text-align: center;
    }

    .mkt-nav-links {
        position: fixed;
        inset: calc(4.25rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) auto max(1rem, env(safe-area-inset-left, 0px));
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem;
        background: var(--mkt-nav-solid);
        border: 1px solid var(--mkt-line);
        border-radius: .85rem;
        box-shadow: 0 12px 30px rgba(8, 63, 55, .18);
        grid-area: unset;
        justify-self: stretch;
        z-index: 60;
    }

    .mkt-nav-links.is-open { display: flex; }

    .mkt-nav-links a:not(.mkt-nav-cta) {
        padding: .85rem 1rem;
        border-radius: .5rem;
        color: var(--mkt-ink) !important;
        text-shadow: none !important;
        text-align: center;
    }

    .mkt-nav-links a.is-active::after,
    .mkt-nav-links a:hover::after { display: none; }

    .mkt-nav-links a.is-active:not(.mkt-nav-cta) {
        background: color-mix(in srgb, var(--mkt-brand) 12%, transparent);
    }

    .mkt-has-hero .mkt-nav:not(.is-solid) .mkt-nav-links a.mkt-nav-cta-menu {
        background: var(--mkt-brand);
        color: #fff !important;
        text-shadow: none;
    }
}

/* —— Guide d'utilisation (site public) —— */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.mkt-guide-page .mkt-guide-hero {
    position: relative;
    padding: 8.5rem 0 3rem;
    overflow: hidden;
}

.mkt-guide-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 10% 20%, rgba(20, 122, 106, .28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(12, 92, 80, .18), transparent 50%),
        linear-gradient(160deg, #0c5c50 0%, #147a6a 42%, #0e3f38 100%);
    animation: mkt-guide-shift 14s ease-in-out infinite alternate;
}

@keyframes mkt-guide-shift {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

.mkt-guide-hero-inner {
    position: relative;
    z-index: 1;
    color: var(--mkt-hero-text);
}

.mkt-guide-hero .mkt-kicker { color: rgba(244, 250, 247, .78); }
.mkt-guide-hero .mkt-page-title { color: #fff; }
.mkt-guide-hero .mkt-lead { color: rgba(244, 250, 247, .88); }

.mkt-guide-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 1.5rem 0 1.25rem;
}

.mkt-guide-search {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    font: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.mkt-guide-search::placeholder { color: rgba(255, 255, 255, .62); }

.mkt-guide-search:focus {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

.mkt-guide-search-hint {
    display: inline-block;
    margin-top: .55rem;
    font-size: .82rem;
    color: rgba(244, 250, 247, .7);
    font-weight: 600;
}

.mkt-guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.mkt-guide-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 2.25rem 0 5rem;
    align-items: start;
}

.mkt-guide-rail {
    position: sticky;
    top: 5.5rem;
}

.mkt-guide-rail-card {
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid var(--mkt-line);
    background: var(--mkt-surface);
    box-shadow: 0 10px 28px rgba(8, 63, 55, .06);
}

.mkt-guide-rail-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mkt-muted);
    margin-bottom: .65rem;
}

.mkt-guide-rail-nav {
    display: grid;
    gap: .2rem;
}

.mkt-guide-rail-nav a {
    display: block;
    padding: .45rem .65rem;
    border-radius: .55rem;
    color: var(--mkt-ink);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.mkt-guide-rail-nav a:hover,
.mkt-guide-rail-nav a.is-active {
    background: color-mix(in srgb, var(--mkt-brand) 12%, transparent);
    color: var(--mkt-brand-dark);
}

.mkt-guide-rail-nav a.is-active {
    transform: translateX(2px);
}

.mkt-guide-rail-contact {
    margin-top: .9rem;
    padding-top: .85rem;
    border-top: 1px solid var(--mkt-line);
    display: grid;
    gap: .35rem;
}

.mkt-guide-rail-contact a {
    color: var(--mkt-brand);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    word-break: break-all;
}

.mkt-guide-main {
    display: grid;
    gap: 1rem;
}

.mkt-guide-card {
    scroll-margin-top: 5.5rem;
    padding: 1.35rem 1.4rem 1.45rem;
    border-radius: 1.15rem;
    border: 1px solid var(--mkt-line);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mkt-brand) 8%, transparent), transparent 42%),
        var(--mkt-surface);
    box-shadow: 0 12px 30px rgba(8, 63, 55, .05);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease, border-color .25s ease;
}

.mkt-guide-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mkt-brand) 28%, var(--mkt-line));
    box-shadow: 0 16px 36px rgba(8, 63, 55, .09);
}

.mkt-guide-card.is-filtered-out,
.mkt-glossary-item.is-filtered-out {
    display: none;
}

.mkt-guide-card-top {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.mkt-guide-card-top h2 {
    margin: 0;
    font-family: var(--mkt-display);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 650;
    color: var(--mkt-ink);
}

.mkt-guide-step {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(145deg, var(--mkt-brand-mid), var(--mkt-brand-dark));
    box-shadow: 0 8px 16px rgba(12, 92, 80, .22);
}

.mkt-guide-list {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    line-height: 1.55;
    color: var(--mkt-ink);
}

.mkt-guide-list li { margin-bottom: .4rem; }

.mkt-copy-muted { color: var(--mkt-muted); }

.mkt-guide-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.mkt-guide-steps li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: .75rem;
    align-items: start;
    padding: .7rem .85rem;
    border-radius: .8rem;
    border: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-paper) 65%, transparent);
}

.mkt-guide-steps li span {
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--mkt-brand);
}

.mkt-guide-chips,
.mkt-guide-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .85rem 0 1rem;
}

.mkt-guide-chips span {
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--mkt-brand) 22%, var(--mkt-line));
    background: color-mix(in srgb, var(--mkt-brand) 8%, transparent);
    color: var(--mkt-brand-dark);
    font-size: .78rem;
    font-weight: 650;
}

.mkt-guide-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: .85rem 0 1rem;
}

.mkt-guide-mini {
    padding: .9rem;
    border-radius: .85rem;
    border: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-paper) 70%, transparent);
}

.mkt-guide-mini strong {
    display: block;
    margin-bottom: .3rem;
    color: var(--mkt-brand-dark);
}

.mkt-guide-mini p {
    margin: 0;
    color: var(--mkt-muted);
    font-size: .9rem;
    line-height: 1.4;
}

.mkt-guide-callout {
    margin: 0;
    padding: .85rem 1rem;
    border-radius: .85rem;
    border-left: 3px solid var(--mkt-brand);
    background: color-mix(in srgb, var(--mkt-brand) 9%, transparent);
    color: var(--mkt-ink);
}

.mkt-guide-formula {
    display: inline-block;
    margin: .15rem 0 1rem;
    padding: .8rem 1rem;
    border-radius: .85rem;
    border: 1px dashed color-mix(in srgb, var(--mkt-brand) 40%, var(--mkt-line));
    background: color-mix(in srgb, var(--mkt-brand) 8%, var(--mkt-surface));
    font-family: var(--mkt-display);
    font-weight: 650;
    color: var(--mkt-brand-dark);
}

.mkt-guide-timeline,
.mkt-guide-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: .85rem 0 1rem;
}

.mkt-guide-timeline > div,
.mkt-guide-roles > div {
    padding: .85rem;
    border-radius: .85rem;
    border: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-paper) 65%, transparent);
}

.mkt-guide-timeline strong,
.mkt-guide-roles strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--mkt-brand-dark);
}

.mkt-guide-timeline span,
.mkt-guide-roles span {
    color: var(--mkt-muted);
    font-size: .9rem;
}

.mkt-guide-kw {
    appearance: none;
    border: 1px solid var(--mkt-line);
    background: var(--mkt-surface);
    color: var(--mkt-ink);
    border-radius: .55rem;
    padding: .4rem .75rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.mkt-guide-kw:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--mkt-brand) 40%, transparent);
    background: color-mix(in srgb, var(--mkt-brand) 10%, transparent);
    color: var(--mkt-brand-dark);
}

.mkt-glossary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0 0;
}

.mkt-glossary-item {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: .9rem;
    border: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-paper) 55%, var(--mkt-surface));
    transition: transform .18s ease, border-color .18s ease;
}

.mkt-glossary-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mkt-brand) 35%, var(--mkt-line));
}

.mkt-glossary-item dt {
    font-family: var(--mkt-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--mkt-brand);
    margin-bottom: .3rem;
}

.mkt-glossary-item dd {
    margin: 0;
    color: var(--mkt-muted);
    line-height: 1.45;
    font-size: .92rem;
}

.mkt-glossary-item dd strong { color: var(--mkt-ink); }

.mkt-guide-support {
    scroll-margin-top: 5.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mkt-brand) 25%, var(--mkt-line));
    background:
        radial-gradient(circle at 0% 0%, rgba(20, 122, 106, .18), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(12, 92, 80, .12), transparent 40%),
        var(--mkt-surface);
}

.mkt-guide-support-inner { padding: 1.6rem 1.5rem 1.7rem; }

.mkt-guide-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.15rem;
}

.mkt-guide-support-item {
    display: grid;
    gap: .25rem;
    padding: 1rem 1.05rem;
    border-radius: .9rem;
    border: 1px solid var(--mkt-line);
    background: color-mix(in srgb, var(--mkt-paper) 70%, transparent);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mkt-guide-support-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mkt-brand) 40%, transparent);
    background: color-mix(in srgb, var(--mkt-brand) 8%, transparent);
}

.mkt-guide-support-label {
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mkt-muted);
}

.mkt-guide-support-item strong {
    color: var(--mkt-brand-dark);
    font-size: 1.02rem;
    word-break: break-word;
}

@media (max-width: 960px) {
    .mkt-guide-shell { grid-template-columns: 1fr; }
    .mkt-guide-rail { position: relative; top: 0; }
    .mkt-guide-rail-nav {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
    }
    .mkt-guide-rail-nav a {
        border: 1px solid var(--mkt-line);
        background: color-mix(in srgb, var(--mkt-paper) 70%, transparent);
    }
}

@media (max-width: 760px) {
    .mkt-glossary,
    .mkt-guide-grid-3,
    .mkt-guide-timeline,
    .mkt-guide-roles,
    .mkt-guide-support-grid { grid-template-columns: 1fr; }

    .mkt-guide-steps li { grid-template-columns: 1fr; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-hero-media img { animation: none; transform: none; }
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
