/* ============================================================================================
   b.world marketing page (Pages/Marketing/Index.cshtml)

   Layered on top of site.css, which supplies the brand tokens (--accent, --grayLighter, --br…),
   both type faces and the platform `button` look. Every rule here is scoped to body#marketing so
   nothing leaks into the app; where site.css uses !important on bare elements (button, h1/h2),
   the id scope is what lets these win.

   Motion: entrance reveals are gated on html.mk-js, which an inline <head> script sets and lifts
   again after 3.5s if marketing.js never runs, so a script failure cannot leave content hidden.
   All of it is switched off under prefers-reduced-motion.
   ============================================================================================ */

html { scroll-behavior: smooth; }

body#marketing {
    --mk-ink: #17302f;
    --mk-ink-soft: #3f5554;
    --mk-max: 1180px;
    --mk-bar-h: 66px;
    --mk-ease: cubic-bezier(.2, .8, .2, 1);
    --mk-shadow-lg: 0 40px 80px -36px rgba(16, 45, 48, .38), 0 16px 32px -20px rgba(16, 45, 48, .18);
    --mk-shadow-md: 0 18px 40px -22px rgba(16, 45, 48, .35);
    --mk-in-col: #2a8c6b;
    --mk-out-col: #3f7fc1;
    --mk-outcome-col: #9a4f93;

    /* site.css gives body a 2rem-narrower width and top padding for the app shell. */
    width: auto;
    margin: 0;
    padding: 0;
    min-width: 0;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* This page does not load bootstrap-grid.css (see the head of Index.cshtml), so this is the only
   box-sizing reset on it — body#marketing itself included, which `#marketing *` does not match. */
body#marketing, #marketing *, #marketing *::before, #marketing *::after { box-sizing: border-box; }
#marketing img { max-width: 100%; }
#marketing p { overflow-wrap: normal; }
#marketing a { text-decoration: none; }
#marketing section[id] { scroll-margin-top: var(--mk-bar-h); }

#marketing .mk-wrap { width: 100%; max-width: var(--mk-max); margin: 0 auto; padding: 0 32px; }
#marketing .mk-wrap--narrow { max-width: 860px; }
#marketing .mk-nowrap { white-space: nowrap; }
#marketing .mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#marketing .mk-skip {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    background: var(--accentDark); color: #fff; padding: 10px 16px; border-radius: var(--br);
    transition: top .2s;
}
#marketing .mk-skip:focus { top: 12px; }

#marketing :focus-visible { outline: 3px solid var(--accentLight); outline-offset: 3px; }

/* Phosphor glyphs: site.css pins [class^="ph-"] to 1.25rem, so size the <i> itself. */
#marketing i[class^="ph-"] { font-size: 1.1em; line-height: 1; vertical-align: -0.12em; }

/* ------------------------------------------------------------------------------- buttons */
/* Anchors, not <button>: site.css binds the platform look to the button ELEMENT, so the same
   tokens are restated here (see _OutreachStyles for the precedent). */
#marketing .mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 1.9rem;
    border-radius: var(--brbutton);
    font-size: 15.5px; font-variation-settings: 'wght' 650; letter-spacing: .01em; white-space: nowrap;
    transition: transform .25s var(--mk-ease), box-shadow .25s var(--mk-ease), filter .2s, background-color .2s, color .2s;
}
#marketing .mk-btn i[class^="ph-"] { transition: transform .25s var(--mk-ease); }
#marketing .mk-btn:hover i.ph-arrow-right { transform: translateX(3px); }
#marketing .mk-btn:hover i.ph-arrow-down { transform: translateY(2px); }
#marketing .mk-btn-primary {
    color: #fff;
    background-color: var(--accent);
    background-image: linear-gradient(-20deg, var(--accent), var(--accentLight));
    box-shadow: 0 10px 24px -12px rgba(52, 143, 150, .9);
}
#marketing .mk-btn-primary:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(52, 143, 150, .95); }
#marketing .mk-btn-quiet { color: var(--mk-ink); background: var(--grayLight); }
#marketing .mk-btn-quiet:hover { color: var(--mk-ink); background: var(--grayDark); }
#marketing .mk-btn-sm { height: 40px; padding: 0 1.25rem; font-size: 14.5px; }

#marketing .mk-textlink { color: var(--mk-ink); font-variation-settings: 'wght' 600; font-size: 14.5px; padding: 8px 6px; }
#marketing .mk-textlink:hover { color: var(--accentDark); }

/* ------------------------------------------------------------------------------- top bar */
#marketing .mk-bar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--mk-bar-h);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background-color .35s, border-color .35s, box-shadow .35s, height .35s var(--mk-ease);
}
#marketing .mk-bar.is-scrolled {
    background: rgba(255, 255, 255, .82);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -24px rgba(16, 45, 48, .5);
}
#marketing .mk-bar-inner {
    height: 100%; max-width: var(--mk-max); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 20px;
}
#marketing .mk-logo { display: inline-flex; flex: none; }
#marketing .mk-logo img { height: 46px; width: auto; display: block; transition: transform .4s var(--mk-ease); }
#marketing .mk-logo:hover img { transform: rotate(-8deg) scale(1.04); }

#marketing .mk-tabs {
    position: relative; flex: 1 1 auto; min-width: 0;
    display: flex; justify-content: center; gap: 2px;
    isolation: isolate;
}
#marketing .mk-tabs a {
    position: relative; padding: 9px 16px; border-radius: 999px;
    color: var(--mk-ink-soft); font-size: 14.5px; font-variation-settings: 'wght' 560; white-space: nowrap;
    transition: color .3s;
}
#marketing .mk-tabs a:hover { color: var(--mk-ink); }
#marketing .mk-tabs a.is-active { color: var(--accentDark); }
#marketing .mk-tabs-ink {
    position: absolute; z-index: -1; left: 0; top: 50%; height: 36px; width: 0;
    margin-top: -18px; border-radius: 999px;
    background: var(--accentLighter);
    opacity: 0;
    transition: transform .5s var(--mk-ease), width .5s var(--mk-ease), opacity .3s;
}
#marketing .mk-tabs-ink.is-on { opacity: 1; }
#marketing .mk-bar-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* ------------------------------------------------------------------------------- shared type */
#marketing .mk-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin: 0;
    color: var(--accentText); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
    font-variation-settings: 'wght' 700;
}
#marketing .mk-kicker span {
    padding: 3px 9px; border-radius: 999px; letter-spacing: .04em;
    background: var(--accentLighter); color: var(--accentDark);
}
#marketing h2.mk-title {
    font-family: "ff-tisa-web-pro", Georgia, serif;
    font-size: clamp(2.2rem, 4.8vw, 4.1rem);
    line-height: 1.07; letter-spacing: -0.015em;
    color: var(--mk-ink);
    margin: 18px 0 22px;
    font-variation-settings: normal;
}
#marketing .mk-title-turn { display: block; color: var(--accent); }
#marketing .mk-blurb {
    font-size: clamp(1.06rem, 1.35vw, 1.24rem); line-height: 1.62;
    max-width: 700px; margin: 0 auto; color: var(--mk-ink-soft);
}

/* "b." with the logo's circle drawn round it */
#marketing .mk-b { position: relative; display: inline-block; color: var(--accent); }
#marketing .mk-b svg {
    position: absolute; left: -24%; top: -8%; width: 150%; height: 120%;
    overflow: visible; pointer-events: none;
}
#marketing .mk-b path {
    fill: none; stroke: var(--accentLight); stroke-width: 3.2; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s var(--mk-ease) .45s;
}
#marketing .is-in .mk-b path, #marketing .mk-hero .mk-b path { stroke-dashoffset: 0; }
#marketing .mk-hero .mk-b path { transition: none; animation: mk-draw 1.3s var(--mk-ease) 1.1s both; }

/* ------------------------------------------------------------------------------- motion */
@keyframes mk-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mk-drift-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vw, 4vh) scale(1.15); } }
@keyframes mk-drift-b { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-5vw, 6vh) scale(.95); } }
@keyframes mk-pulse { 0% { box-shadow: 0 0 0 0 rgba(164, 212, 24, .55); } 100% { box-shadow: 0 0 0 10px rgba(164, 212, 24, 0); } }
@keyframes mk-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
@keyframes mk-travel { 0% { left: 16.6%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 83.4%; opacity: 0; } }
@keyframes mk-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

#marketing .mk-in { animation: mk-rise .9s var(--mk-ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

html.mk-js #marketing [data-reveal] {
    opacity: 0; transform: translateY(34px);
    transition: opacity .9s var(--mk-ease), transform .9s var(--mk-ease);
}
html.mk-js #marketing [data-reveal].is-in { opacity: 1; transform: none; }
html.mk-js #marketing .mk-head[data-reveal] { opacity: 1; transform: none; }
html.mk-js #marketing .mk-head[data-reveal] > * {
    opacity: 0; transform: translateY(26px);
    transition: opacity .85s var(--mk-ease), transform .85s var(--mk-ease);
}
html.mk-js #marketing .mk-head[data-reveal].is-in > * { opacity: 1; transform: none; }
#marketing .mk-head > *:nth-child(2) { transition-delay: .08s; }
#marketing .mk-head > *:nth-child(3) { transition-delay: .18s; }
#marketing .mk-head > *:nth-child(4) { transition-delay: .28s; }

/* ------------------------------------------------------------------------------- hero */
#marketing .mk-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--mk-bar-h) + 72px) 0 110px;
    background: linear-gradient(180deg, #fff 0%, #fbfaf8 55%, var(--grayLighter) 100%);
    text-align: center;
}
#marketing .mk-hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#marketing .mk-hero-glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
#marketing .mk-hero-glow span:nth-child(1) { width: 46vw; height: 46vw; left: -14vw; top: -18vw; background: var(--accentLighter); animation: mk-drift-a 18s ease-in-out infinite alternate; }
#marketing .mk-hero-glow span:nth-child(2) { width: 34vw; height: 34vw; right: -10vw; top: 4vw; background: #d8f3f5; animation: mk-drift-b 22s ease-in-out infinite alternate; }
#marketing .mk-hero-glow span:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; top: 22vw; background: var(--secondaryLight); opacity: .35; animation: mk-drift-a 26s ease-in-out infinite alternate-reverse; }
#marketing .mk-hero > .mk-wrap { position: relative; z-index: 1; }

#marketing h1.mk-hero-title {
    margin: 0 auto; max-width: 1000px;
    font-family: "ff-tisa-web-pro", Georgia, serif;
    font-size: clamp(2.7rem, 6.6vw, 5.6rem);
    line-height: 1.04; letter-spacing: -0.02em;
    color: var(--mk-ink);
    font-variation-settings: normal;
}
#marketing .mk-eyebrow {
    display: block; margin-bottom: 22px;
    font-family: "public sans variable", sans-serif;
    font-size: 14px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
    color: var(--accentText); font-variation-settings: 'wght' 700;
}
#marketing .mk-hero-line { display: block; }

/* The box is sized to the current word by marketing.js (width transitions), so the line
   re-centres as the word changes; clip-path keeps the outgoing word from showing outside it. */
#marketing .mk-rotator {
    display: inline-grid; justify-items: start; vertical-align: bottom;
    padding: .12em .04em .3em; margin: -.12em 0 -.3em;
    clip-path: inset(0 -0.04em);
    transition: width .45s var(--mk-ease);
}
#marketing .mk-rotator > span {
    grid-area: 1 / 1; white-space: nowrap;
    background: linear-gradient(-20deg, var(--accentDark), var(--accent) 40%, var(--accentLight));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    /* Parked fully below the clip box (item height + the .3em bottom padding), so a word only
       ever shows while it rolls in; is-out rolls it fully out above. No overlap mid-swap. */
    opacity: 0; transform: translateY(130%);
    transition: transform .75s var(--mk-ease), opacity .45s var(--mk-ease);
}
/* background-clip:text paints only inside the span's own box, so a descender (the g in
   "Planning", "Fundraising") hanging below the line box rendered clipped. Pad each word down
   past its descenders and cancel the padding with a margin so nothing moves. */
#marketing .mk-rotator > span { padding: .08em 0 .28em; margin: -.08em 0 -.28em; }
#marketing .mk-rotator > span.is-on { opacity: 1; transform: none; transition-delay: .2s; }
/* The lead line rotates whole sentences in the ink colour, not the accent gradient. */
#marketing .mk-rotator--lead > span {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: var(--mk-ink);
}
#marketing .mk-rotator > span.is-out { opacity: 0; transform: translateY(-118%); transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .22s ease-in; transition-delay: 0s; }

#marketing .mk-hero-sub {
    max-width: 680px; margin: 30px auto 0;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--mk-ink-soft);
}
#marketing .mk-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
#marketing .mk-hero-trust {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
    margin-top: 30px; font-size: 13.5px; color: var(--textLight);
}
#marketing .mk-hero-trust img { width: auto; }
#marketing .mk-hero-trust .mk-trust-iris { height: 26px; }
#marketing .mk-hero-trust .mk-trust-sdg { height: 26px; }
#marketing .mk-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grayDarker); }

#marketing .mk-hero-stage { position: relative; margin-top: 72px; max-width: 1240px; }
#marketing .mk-frame--hero { max-width: 1100px; margin: 0 auto; transform-origin: 50% 0; }
#marketing .mk-frame--hero.mk-in { animation-name: mk-tilt-in; animation-duration: 1.4s; }
@keyframes mk-tilt-in {
    from { opacity: 0; transform: perspective(1800px) translateY(60px) rotateX(14deg) scale(.96); }
    to { opacity: 1; transform: none; }
}

#marketing .mk-float {
    position: absolute; z-index: 2; text-align: left;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--brbig);
    box-shadow: var(--mk-shadow-lg);
    padding: 16px 18px;
}
#marketing .mk-float--kpi { left: 0; top: 16%; width: 220px; }
#marketing .mk-float-label { font-size: 12.5px; color: var(--textLight); font-variation-settings: 'wght' 600; display: flex; gap: 6px; align-items: center; }
#marketing .mk-float-label i { color: var(--accent); }
#marketing .mk-float-value { font-size: 30px; font-variation-settings: 'wght' 750; color: var(--mk-ink); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
#marketing .mk-spark { display: block; width: 100%; height: 40px; margin: 6px 0 4px; overflow: visible; }
#marketing .mk-spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: mk-draw 1.6s var(--mk-ease) 1.2s both; vector-effect: non-scaling-stroke; }
#marketing .mk-float-foot { font-size: 12px; color: var(--textLight); }
#marketing .mk-up { color: #4c8a12; font-variation-settings: 'wght' 700; }

#marketing .mk-float--sdg { right: 1%; top: 6%; display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 10px; }
#marketing .mk-float--sdg img { width: 40px; height: 40px; border-radius: 6px; }
#marketing .mk-float--sdg span { font-size: 12.5px; font-variation-settings: 'wght' 650; color: var(--mk-ink-soft); margin-left: 6px; }

#marketing .mk-float--gift {
    right: 4%; bottom: 10%; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3;
    opacity: 0; transform: translateY(16px) scale(.96);
    transition: opacity .5s var(--mk-ease), transform .5s var(--mk-ease);
}
#marketing .mk-float--gift.is-on { opacity: 1; transform: none; }
#marketing .mk-float--gift small { color: var(--textLight); font-size: 12px; }
#marketing .mk-float--gift strong { color: var(--mk-ink); }
#marketing .mk-gift-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fde8e3; color: var(--red); }
#marketing .mk-float--gift.is-on .mk-gift-icon { animation: mk-pop .6s var(--mk-ease); }

/* ------------------------------------------------------------------------------- frames */
#marketing .mk-frame {
    display: block; position: relative; overflow: hidden;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(16, 45, 48, .08);
    box-shadow: var(--mk-shadow-lg);
}
#marketing .mk-frame img { display: block; width: 100%; height: auto; }
#marketing .mk-frame-bar {
    display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    background: #f6f5f2; border-bottom: 1px solid rgba(16, 45, 48, .07);
}
#marketing .mk-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--grayDark); flex: none; }
#marketing .mk-frame-bar i:nth-child(1) { background: #f4a09a; }
#marketing .mk-frame-bar i:nth-child(2) { background: #f6d58b; }
#marketing .mk-frame-bar i:nth-child(3) { background: #a9d79a; }
#marketing .mk-frame-bar span {
    margin: 0 auto; transform: translateX(-24px);
    font-size: 11.5px; color: var(--textLight); background: #fff; border-radius: 999px; padding: 2px 14px;
    border: 1px solid rgba(16, 45, 48, .06); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------------------------- sections */
#marketing .mk-section {
    position: relative;
    min-height: 100vh;
    padding: 130px 0 120px;
    display: flex; flex-direction: column; justify-content: center;
}
#marketing .mk-section--warm { background: var(--grayLighter); }
#marketing .mk-section--deep {
    color: #d9eeee;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(83, 209, 219, .28), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(240, 195, 82, .14), transparent 60%),
        linear-gradient(160deg, #135e68 0%, #0f4b53 45%, #0b383e 100%);
}
#marketing .mk-section--deep h2.mk-title { color: #fff; }
#marketing .mk-section--deep .mk-title-turn { color: var(--accentLight); }
#marketing .mk-section--deep .mk-blurb { color: #c6e3e3; }
#marketing .mk-section--deep .mk-kicker { color: var(--accentLight); }
#marketing .mk-section--deep .mk-kicker span { background: rgba(255, 255, 255, .12); color: #fff; }
#marketing .mk-section--deep .mk-points strong { color: #fff; }
#marketing .mk-section--deep .mk-points li { color: #bcdcdc; }
#marketing .mk-section--deep .mk-points i[class^="ph-"] { background: rgba(255, 255, 255, .1); color: var(--accentLight); }
#marketing .mk-section--deep .mk-b path { stroke: var(--secondary); }
#marketing .mk-section--deep .mk-shot figcaption { color: #bcdcdc; }
#marketing .mk-section--deep .mk-shot figcaption strong { color: #fff; }

#marketing .mk-head { text-align: center; max-width: 900px; margin: 0 auto 64px; }
#marketing .mk-points {
    list-style: none; padding: 0; margin: 40px auto 0; max-width: 980px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left;
}
#marketing .mk-points li { display: flex; gap: 14px; font-size: 14.5px; line-height: 1.5; color: var(--mk-ink-soft); }
#marketing .mk-points strong { display: block; color: var(--mk-ink); font-variation-settings: 'wght' 700; margin-bottom: 2px; font-weight: normal; }
#marketing .mk-points i[class^="ph-"] {
    flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--accentLighter); color: var(--accentDark); font-size: 20px; vertical-align: 0;
}

/* ------------------------------------------------------------------------------- demo shells */
#marketing .mk-demo-shell {
    position: relative;
    background: #fff;
    border: 1px solid rgba(16, 45, 48, .08);
    border-radius: 22px;
    box-shadow: var(--mk-shadow-lg);
    padding: 30px;
}
#marketing .mk-demo-shell + .mk-shots,
#marketing .mk-demo-shell + .mk-split { margin-top: 56px; }
#marketing .mk-split + .mk-shots { margin-top: 40px; }
#marketing .mk-demo-tag {
    position: absolute; top: -15px; left: 30px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 11px; border-radius: 999px;
    background: var(--secondary); color: #3b2f0b;
    font-size: 12.5px; font-variation-settings: 'wght' 700;
    box-shadow: 0 8px 18px -10px rgba(120, 90, 10, .8);
}
#marketing .mk-demo-tag i { display: inline-block; transform-origin: 50% 80%; }
#marketing .is-in .mk-demo-tag i { animation: mk-wiggle 1.4s ease-in-out 1s 2; }
#marketing .mk-demo { min-height: 200px; }
#marketing .mk-demo--measure { min-height: 470px; }
#marketing .mk-demo--logframe { min-height: 430px; }
#marketing .mk-demo--budget { min-height: 300px; }
#marketing .mk-demo--donate { min-height: 380px; }

/* ------------------------------------------------------------------------------- screenshots */
#marketing .mk-shots { display: grid; gap: 28px; }
#marketing .mk-shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#marketing .mk-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
#marketing .mk-collage + .mk-shots { margin-top: 72px; }
#marketing .mk-shot { margin: 0; }
#marketing .mk-shot-link { display: block; border-radius: 14px; }
#marketing .mk-shot .mk-frame { box-shadow: var(--mk-shadow-md); transition: transform .45s var(--mk-ease), box-shadow .45s var(--mk-ease); }
#marketing .mk-shot .mk-frame-bar { height: 24px; padding: 0 10px; gap: 5px; }
#marketing .mk-shot .mk-frame-bar i { width: 7px; height: 7px; }
#marketing .mk-shot .mk-frame img { transition: transform .8s var(--mk-ease); }
#marketing .mk-shot-link:hover .mk-frame { transform: translateY(-6px); box-shadow: var(--mk-shadow-lg); }
#marketing .mk-shot-link:hover .mk-frame img { transform: scale(1.025); }
#marketing .mk-shot figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--mk-ink-soft); }
#marketing .mk-shot figcaption strong { display: block; color: var(--mk-ink); font-variation-settings: 'wght' 700; font-weight: normal; font-size: 15px; margin-bottom: 2px; }
#marketing .mk-shot--feature .mk-frame-bar { height: 30px; }
#marketing .mk-shot--feature .mk-frame-bar i { width: 9px; height: 9px; }
html.mk-js #marketing .mk-shots[data-reveal] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--mk-ease), transform .8s var(--mk-ease); }
html.mk-js #marketing .mk-shots[data-reveal] { opacity: 1; transform: none; }
html.mk-js #marketing .mk-shots[data-reveal].is-in > * { opacity: 1; transform: none; }
#marketing .mk-shots > *:nth-child(2) { transition-delay: .1s; }
#marketing .mk-shots > *:nth-child(3) { transition-delay: .2s; }

#marketing .mk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
#marketing .mk-split--fund { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ------------------------------------------------------------------------------- outreach collage */
#marketing .mk-collage { position: relative; padding: 0 13% 9% 0; }
#marketing .mk-collage-main { display: block; }
#marketing .mk-collage-phone {
    position: absolute; right: 0; bottom: 0; width: 22%; z-index: 2;
    border-radius: 34px; border: 9px solid #16292b; background: #16292b; overflow: hidden;
    box-shadow: var(--mk-shadow-lg);
    transition: transform .5s var(--mk-ease);
}
#marketing .mk-collage-phone img { display: block; width: 100%; height: auto; border-radius: 25px; }
#marketing .mk-collage-phone::before {
    content: ""; position: absolute; top: 7px; left: 50%; width: 32%; height: 15px; margin-left: -16%;
    border-radius: 999px; background: #16292b; z-index: 1;
}
#marketing .mk-collage-mail {
    position: absolute; left: -3%; bottom: -2%; width: 31%; z-index: 2;
    background: #fff; border-radius: var(--brbig); overflow: hidden;
    border: 1px solid rgba(16, 45, 48, .08);
    box-shadow: var(--mk-shadow-lg);
    transition: transform .5s var(--mk-ease);
}
#marketing .mk-mail-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.3; color: var(--mk-ink); }
#marketing .mk-mail-head i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accentLighter); color: var(--accentDark); font-size: 18px; vertical-align: 0; }
#marketing .mk-mail-head small { display: block; color: var(--textLight); font-size: 12px; }
#marketing .mk-collage-mail img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 0; }
#marketing .mk-collage-phone:hover, #marketing .mk-collage-mail:hover { transform: translateY(-6px) !important; }

#marketing .mk-live {
    position: absolute; top: -18px; right: 20%; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border-radius: 999px; background: #fff;
    box-shadow: var(--mk-shadow-md);
    font-size: 13px; color: var(--mk-ink-soft); font-variation-settings: 'wght' 600;
}
#marketing .mk-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: mk-pulse 1.6s ease-out infinite; }
#marketing .mk-live-sep { width: 1px; height: 14px; background: var(--border); }
#marketing .mk-live-num { color: var(--mk-ink); font-variant-numeric: tabular-nums; font-variation-settings: 'wght' 750; }

/* ------------------------------------------------------------------------------- donation flow */
#marketing .mk-flow {
    list-style: none; padding: 0; margin: 70px auto 0; max-width: 940px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative;
}
#marketing .mk-flow::before {
    content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 27px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 8px, transparent 8px 16px);
}
#marketing .mk-flow::after {
    content: ""; position: absolute; top: 22px; left: 16.6%; width: 12px; height: 12px; margin-left: -6px;
    border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 6px rgba(240, 195, 82, .2);
    animation: mk-travel 3.2s ease-in-out infinite;
}
#marketing .mk-flow li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #a9cfcf; font-size: 14px; }
#marketing .mk-flow i[class^="ph-"] {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
    background: #0d4148; border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 24px; vertical-align: 0;
}
#marketing .mk-flow strong { color: #fff; font-variation-settings: 'wght' 700; font-weight: normal; font-size: 15.5px; }

/* ------------------------------------------------------------------------------- close + faq + foot */
#marketing .mk-close { padding: 140px 0 120px; text-align: center; background: #fff; position: relative; overflow: hidden; }
#marketing .mk-close::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
    border-radius: 50%; border: 1px solid var(--accentLighter); box-shadow: 0 0 0 90px rgba(219, 246, 246, .35), 0 0 0 180px rgba(219, 246, 246, .18);
    pointer-events: none;
}
#marketing .mk-close .mk-wrap { position: relative; }
#marketing .mk-close-logo { width: 96px; height: auto; margin-bottom: 8px; }
#marketing .mk-close .mk-hero-cta { margin-top: 34px; }

#marketing .mk-faq { padding: 110px 0 120px; background: var(--grayLighter); }
#marketing h2.mk-faq-title {
    font-family: "ff-tisa-web-pro", Georgia, serif; font-size: clamp(2rem, 3.6vw, 2.8rem);
    color: var(--mk-ink); text-align: center; margin: 0 0 40px; font-variation-settings: normal;
}
#marketing .mk-faq-list { display: grid; gap: 12px; }
#marketing .mk-faq details {
    background: #fff; border-radius: var(--brbig); border: 1px solid rgba(16, 45, 48, .07);
    box-shadow: 0 10px 30px -26px rgba(16, 45, 48, .6);
    transition: box-shadow .3s, border-color .3s;
}
#marketing .mk-faq details[open] { border-color: var(--accentLighter); box-shadow: var(--mk-shadow-md); }
#marketing .mk-faq summary {
    list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative;
    font-size: 17px; color: var(--mk-ink); font-variation-settings: 'wght' 650;
}
#marketing .mk-faq summary::-webkit-details-marker { display: none; }
#marketing .mk-faq summary::after {
    content: ""; position: absolute; right: 26px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(45deg); transition: transform .35s var(--mk-ease), margin-top .35s var(--mk-ease);
}
#marketing .mk-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
#marketing .mk-faq details p { margin: 0; padding: 0 26px 24px; line-height: 1.65; color: var(--mk-ink-soft); }
#marketing .mk-faq details[open] p { animation: mk-rise .5s var(--mk-ease); }

#marketing .mk-foot { background: #fff; border-top: 1px solid var(--border); padding: 48px 0; }
#marketing .mk-foot-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; }
#marketing .mk-foot-tag { margin: 0; font-size: 14px; color: var(--textLight); max-width: 420px; }
#marketing .mk-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
#marketing .mk-foot-links a { color: var(--mk-ink-soft); }
#marketing .mk-foot-links a:hover { color: var(--accentDark); }
#marketing .mk-foot-copy { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--textLight); }

/* ------------------------------------------------------------------------------- lightbox */
#marketing .mk-lightbox {
    border: 0; padding: 0; background: transparent; overflow: visible;
    max-width: min(1440px, 94vw); max-height: 92vh; width: auto;
}
#marketing .mk-lightbox::backdrop { background: rgba(12, 36, 39, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#marketing .mk-lightbox[open] { animation: mk-lightbox-in .45s var(--mk-ease); }
#marketing .mk-lightbox[open]::backdrop { animation: mk-fade .35s ease; }
@keyframes mk-lightbox-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
#marketing .mk-lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); margin: 0 auto; }
#marketing .mk-lightbox-caption { color: #e6f2f2; text-align: center; margin: 14px 0 0; font-size: 14.5px; }
#marketing button.mk-lightbox-close {
    position: absolute; top: -16px; right: -16px; z-index: 2;
    width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important;
    background: #fff !important; color: var(--mk-ink) !important; box-shadow: var(--mk-shadow-md);
    display: grid; place-items: center;
}

/* =============================================================================================
   Interactive demos (rendered by marketing.js)
   ============================================================================================= */

/* Generic segmented control. <button> elements, so the platform's !important button rules are
   restated under the id scope. */
#marketing .mk-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--grayLight); gap: 2px; }
#marketing .mk-seg button {
    height: 32px; padding: 0 14px !important; border-radius: 999px !important;
    background: transparent !important; color: var(--mk-ink-soft) !important;
    font-size: 13px !important; font-variation-settings: 'wght' 620;
    transition: background-color .25s, color .25s, box-shadow .25s !important;
}
#marketing .mk-seg button:hover { color: var(--mk-ink) !important; background: rgba(255, 255, 255, .6) !important; }
#marketing .mk-seg button.is-on { background: #fff !important; color: var(--accentDark) !important; box-shadow: 0 4px 12px -6px rgba(16, 45, 48, .45); }
#marketing .mk-seg button:active { transform: none !important; }

#marketing .mk-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
    font-size: 11.5px; font-variation-settings: 'wght' 680; letter-spacing: .02em;
    background: var(--grayLight); color: var(--mk-ink-soft); white-space: nowrap;
}
#marketing .mk-chip--out { background: #e3eefa; color: #2c5f93; }
#marketing .mk-chip--in { background: #e1f3ea; color: #1f6b51; }
#marketing .mk-chip--outcome { background: #f6e8f4; color: #7c3a76; }
#marketing .mk-chip--sdg { background: #e1f1f7; color: #0f6a8b; }
#marketing .mk-chip--iris { background: var(--secondaryLight); color: #6b5410; }

/* ---------------- measurement demo (mirrors bworld_chart_core.js → ej2 chart) */
#marketing .md-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
#marketing .md-ind { display: flex; align-items: center; gap: 14px; min-width: 0; }
#marketing .md-ind-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(-20deg, var(--accent), var(--accentLight)); color: #fff; }
#marketing .md-ind-icon i[class^="ph-"] { font-size: 22px; vertical-align: 0; }
#marketing .md-ind h3 { margin: 0 0 6px; font-family: "public sans variable", sans-serif; font-size: 18px; color: var(--mk-ink); font-variation-settings: 'wght' 700; }
#marketing .md-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#marketing .md-kpis { display: flex; align-items: center; gap: 18px; }
#marketing .md-kpi { text-align: right; }
#marketing .md-kpi b { display: block; font-size: 24px; line-height: 1.1; color: var(--mk-ink); font-variation-settings: 'wght' 750; font-weight: normal; font-variant-numeric: tabular-nums; }
#marketing .md-kpi span { font-size: 12px; color: var(--textLight); white-space: nowrap; }
#marketing .md-ring { width: 54px; height: 54px; transform: rotate(-90deg); }
#marketing .md-ring circle { fill: none; stroke-width: 6; }
#marketing .md-ring .md-ring-bg { stroke: var(--grayLight); }
#marketing .md-ring .md-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s var(--mk-ease); }

#marketing .md-body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
#marketing .md-chartwrap { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
#marketing .md-chart { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; font-family: "Public Sans Variable", "public sans variable", sans-serif; }
#marketing .md-title { font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 20px; fill: #333; }
#marketing .md-grid line { stroke: #dddddd; stroke-width: 1; }
#marketing .md-axis text { fill: #616161; font-size: 12px; }
#marketing .md-axis .md-axis-title { font-size: 14px; fill: #424242; }
#marketing .md-strip line { stroke: #348f96; stroke-width: 2.5; }
#marketing .md-strip text { fill: #333333cc; font-size: 12px; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
#marketing .md-col { fill: #348f96; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s var(--mk-ease), opacity .2s; }
#marketing .md-chart:not(.is-drawn) .md-col { transform: scaleY(0); }
#marketing .md-col.is-hot { opacity: .82; }
#marketing .md-reveal { transition: width 1.2s var(--mk-ease) .25s; }
#marketing .md-vstroke { fill: none; stroke: #348f96; stroke-width: 3; stroke-linejoin: round; }
#marketing .md-area { fill: #348f96; opacity: .35; }
#marketing .md-chart.is-area .md-vstroke { stroke-width: 2; }
#marketing .md-vmark { fill: #348f96; stroke: #fff; stroke-width: 1; transition: r .15s; }
#marketing .md-chart.is-area .md-vmark { display: none; }
#marketing .md-sline { fill: none; stroke: #e8773a; stroke-width: 3; stroke-linejoin: round; }
#marketing .md-smark { fill: #e8773a; stroke: #fff; stroke-width: 1; transition: r .15s; }
#marketing .md-dlabel { fill: #424242; font-size: 11.5px; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
#marketing .md-legend text { fill: #424242; font-size: 13px; }
#marketing .md-strip, #marketing .md-axis, #marketing .md-legend, #marketing .md-title, #marketing .md-dlabel, #marketing .md-sline, #marketing .md-smark, #marketing .md-vline { pointer-events: none; }

/* ej2 bootstrap4 tooltip: dark, header over a rule, a marker per series row */
#marketing .md-tip {
    position: absolute; z-index: 4; pointer-events: none;
    min-width: 190px; padding: 8px 12px 9px; border-radius: 4px;
    background: rgba(33, 37, 41, .92); color: #fff; font-size: 12.5px; line-height: 1.6;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity .18s, left .14s var(--mk-ease), top .14s var(--mk-ease);
}
#marketing .md-tip b { display: block; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .3); text-align: center; font-variation-settings: 'wght' 700; font-weight: normal; }
#marketing .md-tip span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
#marketing .md-tip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
#marketing .md-tip em { font-style: normal; font-variation-settings: 'wght' 700; font-variant-numeric: tabular-nums; }
#marketing .md-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(33, 37, 41, .92); }

#marketing .md-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
#marketing .md-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--textLight); font-variation-settings: 'wght' 650; padding: 0 8px 10px; border-bottom: 1px solid var(--border); }
#marketing .md-table th:not(:first-child), #marketing .md-table td:not(:first-child) { text-align: right; }
#marketing .md-table td { vertical-align: middle; padding: 3px 4px; border-bottom: 1px solid rgba(16, 45, 48, .05); transition: background-color .2s; }
#marketing .md-table td:first-child { padding-left: 8px; color: var(--mk-ink-soft); white-space: nowrap; }
#marketing .md-table tr.is-hot td { background: var(--accentLighter); }
#marketing .md-table tr.is-hot td:first-child { border-radius: 8px 0 0 8px; }
#marketing .md-table tr.is-hot td:last-child { border-radius: 0 8px 8px 0; }
#marketing .md-table input {
    width: 100%; max-width: 104px; height: 34px; padding: 0 9px; text-align: right;
    font: inherit; color: var(--mk-ink); font-variant-numeric: tabular-nums;
    background: transparent; border: 1px solid transparent; border-radius: 8px;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -moz-appearance: textfield;
}
#marketing .md-table input::-webkit-outer-spin-button, #marketing .md-table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#marketing .md-table input:hover { border-color: var(--border); background: #fff; }
#marketing .md-table input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(83, 209, 219, .25); }
#marketing .md-table tfoot td { border-bottom: 0; padding-top: 12px; color: var(--mk-ink); font-variation-settings: 'wght' 700; }
#marketing .md-table tfoot td:not(:first-child) { padding-right: 13px; font-variant-numeric: tabular-nums; }
#marketing .md-note { margin: 12px 0 0; font-size: 12.5px; color: var(--textLight); display: flex; gap: 6px; align-items: center; }

/* ---------------- logframe demo (mirrors Pages/Projects/Whiteboard.cshtml) */
#marketing .lf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
#marketing .lf-top p { margin: 0; font-size: 14px; color: var(--mk-ink-soft); max-width: 600px; }
#marketing .lf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
#marketing .lf-board {
    position: relative; margin: 0 auto; border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(16, 45, 48, .08);
    background-color: #f7f6f3;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    transition: height .45s var(--mk-ease);
}
#marketing .lf-canvas { position: absolute; left: 24px; top: 20px; transform-origin: 0 0; }
#marketing .lf-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#marketing .lf-wires path { fill: none; stroke: #333; stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0; transition: opacity .6s, stroke .25s, stroke-width .25s; }
#marketing .lf-wires.is-on path { opacity: .85; }
#marketing .lf-canvas.is-hovering .lf-wires path { opacity: .18; }
#marketing .lf-canvas.is-hovering .lf-wires path.is-lit { opacity: 1; stroke: #348f96; stroke-width: 2; animation: lf-march .8s linear infinite; }
@keyframes lf-march { to { stroke-dashoffset: -12; } }
#marketing .lf-node {
    position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 6px 12px; overflow: hidden;
    background: #fff; border: 2px solid var(--lf-c); border-radius: 10px;
    font-family: "Public Sans Variable", "public sans variable", sans-serif; font-size: 14.5px; line-height: 1.25;
    color: #1f1f1f; font-variation-settings: 'wght' 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: opacity .3s, box-shadow .3s, transform .3s var(--mk-ease);
    /* backwards, not both: a held end state would pin opacity/transform over the hover rules */
    animation: mk-rise .6s var(--mk-ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
    cursor: default;
}
#marketing .lf-node.is-goal { border-width: 3px; font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 19px; font-variation-settings: normal; color: var(--lf-t); }
#marketing .lf-node.is-objective { font-size: 15.5px; }
#marketing .lf-canvas.is-hovering .lf-node { opacity: .32; }
#marketing .lf-canvas.is-hovering .lf-node.is-lit { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lf-c) 22%, transparent), 0 10px 22px -12px rgba(0, 0, 0, .35); transform: translateY(-2px); }
#marketing .lf-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12.5px; color: var(--mk-ink-soft); }
#marketing .lf-legend span { display: inline-flex; align-items: center; gap: 7px; }
#marketing .lf-legend i { width: 18px; height: 12px; border: 2px solid; border-radius: 4px; background: #fff; }

/* ---------------- budget demo */
#marketing .bd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#marketing .bd-head h3 { margin: 0; font-family: "public sans variable", sans-serif; font-size: 17px; color: var(--mk-ink); font-variation-settings: 'wght' 700; }
#marketing .bd-head span { font-size: 13px; color: var(--textLight); }
#marketing .bd-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; }
/* Grid items default to min-width:auto and would overflow a minmax(0, …) track. */
#marketing .bd-body > *, #marketing .md-body > *, #marketing .mk-split > * { min-width: 0; }
#marketing .bd-donut { position: relative; width: 180px; height: 180px; }
#marketing .bd-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
#marketing .bd-seg { fill: none; stroke-width: 24; cursor: pointer; transition: stroke-width .3s var(--mk-ease), opacity .3s, stroke-dashoffset 1.2s var(--mk-ease); }
#marketing .bd-donut.is-hovering .bd-seg { opacity: .35; }
#marketing .bd-donut.is-hovering .bd-seg.is-hot { opacity: 1; stroke-width: 32; }
#marketing .bd-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 34px; }
#marketing .bd-center small { font-size: 11.5px; color: var(--textLight); line-height: 1.3; }
#marketing .bd-center b { font-size: 19px; color: var(--mk-ink); font-variation-settings: 'wght' 750; font-weight: normal; font-variant-numeric: tabular-nums; line-height: 1.25; }
#marketing .bd-center span { font-size: 11.5px; color: var(--accentText); font-variation-settings: 'wght' 650; }
#marketing .bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#marketing .bd-list li { padding: 7px 10px; border-radius: 10px; cursor: pointer; transition: background-color .2s; font-size: 13px; }
#marketing .bd-list li.is-hot { background: var(--grayLighter); }
#marketing .bd-row { display: flex; align-items: center; gap: 8px; color: var(--mk-ink); }
#marketing .bd-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
#marketing .bd-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#marketing .bd-row b { font-variation-settings: 'wght' 650; font-weight: normal; font-variant-numeric: tabular-nums; }
#marketing .bd-bar { height: 4px; border-radius: 4px; background: var(--grayLight); margin: 6px 0 0 18px; overflow: hidden; }
#marketing .bd-bar u { display: block; height: 100%; border-radius: 4px; transition: width 1.1s var(--mk-ease); }

/* ---------------- donate demo (mirrors _DonationModule) */
#marketing .dn h3 { margin: 0; font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 26px; color: var(--mk-ink); font-variation-settings: normal; }
#marketing .dn-sub { margin: 4px 0 18px; font-size: 14px; color: var(--textLight); }
#marketing .dn-progress { margin-bottom: 20px; }
#marketing .dn-progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--textLight); margin-bottom: 8px; }
#marketing .dn-progress-top b { font-size: 22px; color: var(--mk-ink); font-variation-settings: 'wght' 750; font-weight: normal; font-variant-numeric: tabular-nums; }
#marketing .dn-track { height: 10px; border-radius: 10px; background: var(--grayLight); overflow: hidden; }
#marketing .dn-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accentLight)); transition: width 1.1s var(--mk-ease); position: relative; }
#marketing .dn-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); }
#marketing .dn-fill.is-bump::after { animation: mk-shine 1s ease; }
@keyframes mk-shine { to { transform: translateX(100%); } }
#marketing .dn-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
#marketing .dn-amounts button {
    height: 56px; padding: 0 !important; border-radius: 14px !important;
    background: #fff !important; color: var(--mk-ink) !important;
    border: 1.5px solid var(--grayDark) !important;
    font-size: 19px !important; font-variation-settings: 'wght' 700;
    transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--mk-ease) !important;
}
#marketing .dn-amounts button:hover { border-color: var(--accentLight) !important; transform: translateY(-1px); }
#marketing .dn-amounts button.is-on { background: var(--accentLighter) !important; border-color: var(--accent) !important; color: var(--accentDark) !important; }
#marketing button.dn-give {
    width: 100%; height: 52px; border-radius: var(--brbutton) !important;
    color: #fff !important; background-color: var(--accent) !important;
    background-image: linear-gradient(-20deg, var(--accent), var(--accentLight)) !important;
    font-size: 15.5px !important; font-variation-settings: 'wght' 650;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
#marketing button.dn-give:hover { filter: brightness(1.1); }
#marketing button.dn-give:disabled { filter: grayscale(.5) brightness(1.05); cursor: default; }
#marketing .dn-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: mk-spin .7s linear infinite; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
#marketing .dn-fine { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px 2px 0; font-size: 12px; color: var(--textLight); text-align: center; }
#marketing .dn-feed { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
#marketing .dn-feed li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mk-ink-soft); }
#marketing .dn-feed li i[class^="ph-"] { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fde8e3; color: var(--red); font-size: 14px; vertical-align: 0; flex: none; }
#marketing .dn-feed li b { color: var(--mk-ink); font-variation-settings: 'wght' 700; font-weight: normal; }
#marketing .dn-feed li span { flex: 1; min-width: 0; }
#marketing .dn-feed li time { font-size: 11.5px; color: var(--textLight); white-space: nowrap; }
#marketing .dn-feed-enter-active { transition: opacity .5s var(--mk-ease), transform .5s var(--mk-ease); }
#marketing .dn-feed-enter { opacity: 0; transform: translateY(-10px); }
#marketing .dn-thanks { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; font-size: 14px; color: var(--accentDark); font-variation-settings: 'wght' 650; }
#marketing .dn-thanks i { color: var(--red); animation: mk-pop .6s var(--mk-ease); }

/* ------------------------------------------------------------------------------- testimonials */
#marketing .mk-quotes { padding: 120px 0; background: #fff; }
#marketing .mk-head--tight { margin-bottom: 52px; }
#marketing .mk-quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
#marketing .mk-quote {
    position: relative; margin: 0; display: flex; flex-direction: column;
    background: var(--grayLighter); border-radius: 22px; padding: 56px 30px 28px;
    border: 1px solid rgba(16, 45, 48, .06);
    transition: transform .35s var(--mk-ease), box-shadow .35s var(--mk-ease), background-color .35s;
}
#marketing .mk-quote:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--mk-shadow-md); }
#marketing .mk-quote::before {
    content: "\201C"; position: absolute; top: 6px; left: 24px;
    font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 84px; line-height: 1; color: var(--accentLight);
}
#marketing .mk-quote blockquote { margin: 0 0 26px; flex: 1 1 auto; }
#marketing .mk-quote blockquote p { margin: 0; font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 18px; line-height: 1.55; color: var(--mk-ink); }
#marketing .mk-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.4; color: var(--textLight); }
#marketing .mk-quote figcaption strong { display: block; color: var(--mk-ink); font-size: 15px; font-variation-settings: 'wght' 700; font-weight: normal; }
#marketing .mk-quote-avatar {
    flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--accentLight);
}
html.mk-js #marketing .mk-quote-grid[data-reveal] { opacity: 1; transform: none; }
html.mk-js #marketing .mk-quote-grid[data-reveal] > .mk-quote { opacity: 0; translate: 0 30px; transition: opacity .8s var(--mk-ease), translate .8s var(--mk-ease), transform .35s var(--mk-ease), box-shadow .35s var(--mk-ease), background-color .35s; }
html.mk-js #marketing .mk-quote-grid[data-reveal].is-in > .mk-quote { opacity: 1; translate: 0 0; }
#marketing .mk-quote-grid > *:nth-child(2) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
#marketing .mk-quote-grid > *:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s, 0s; }

/* ------------------------------------------------------------------------------- pricing */
/* Both billing periods are in the markup; data-billing on the wrapper shows one. Scoped to the
   wrapper and placed after every other rule so no id-scoped display can override it. */
#marketing .mk-pricing[data-billing="month"] [data-per="year"],
#marketing .mk-pricing[data-billing="year"] [data-per="month"] { display: none; }

#marketing .mk-billing { display: flex; justify-content: center; margin-bottom: 34px; }
#marketing .mk-billing .mk-seg { background: #fff; box-shadow: 0 6px 18px -12px rgba(16, 45, 48, .45); }
#marketing .mk-billing .mk-seg button { height: 38px; padding: 0 18px !important; font-size: 14px !important; }
#marketing .mk-billing .mk-seg button.is-on { background: var(--accentLighter) !important; box-shadow: none; }
#marketing .mk-save { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--secondaryLight); color: #6b5410; font-size: 11.5px; font-variation-settings: 'wght' 700; }

#marketing .mk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
#marketing .mk-plan {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid rgba(16, 45, 48, .08); border-radius: 22px;
    padding: 32px 30px 30px; box-shadow: var(--mk-shadow-md);
    transition: transform .35s var(--mk-ease), box-shadow .35s var(--mk-ease);
}
#marketing .mk-plan:hover { transform: translateY(-4px); box-shadow: var(--mk-shadow-lg); }
#marketing .mk-plan.is-featured { border: 2px solid var(--accent); box-shadow: var(--mk-shadow-lg); transform: translateY(-10px); }
#marketing .mk-plan.is-featured:hover { transform: translateY(-14px); }
#marketing .mk-plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 5px 14px; border-radius: 999px; white-space: nowrap;
    background-image: linear-gradient(-20deg, var(--accent), var(--accentLight)); color: #fff;
    font-size: 12px; font-variation-settings: 'wght' 700; letter-spacing: .02em;
}
#marketing .mk-plan h3 { margin: 0; font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 26px; color: var(--mk-ink); font-variation-settings: normal; }
#marketing .mk-plan-for { margin: 4px 0 18px; font-size: 14px; color: var(--textLight); }
#marketing .mk-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#marketing .mk-price b { font-size: 46px; line-height: 1; color: var(--mk-ink); font-variation-settings: 'wght' 750; font-weight: normal; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#marketing .mk-price b.mk-price-talk { font-family: "ff-tisa-web-pro", Georgia, serif; font-size: 38px; font-variation-settings: normal; letter-spacing: 0; }
#marketing .mk-price small { font-size: 14px; color: var(--textLight); }
#marketing .mk-price-note { margin: 10px 0 0; font-size: 13.5px; color: var(--mk-ink-soft); }
#marketing .mk-price-note strong { color: var(--accentDark); font-variation-settings: 'wght' 750; font-weight: normal; }
#marketing .mk-plan ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
#marketing .mk-plan li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--mk-ink-soft); }
#marketing .mk-plan li i[class^="ph-"] { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accentLighter); color: var(--accentDark); font-size: 13px; vertical-align: 0; }
#marketing .mk-plan .mk-btn { width: 100%; margin-top: auto; }

#marketing .mk-calc { margin: -6px 0 22px; padding: 16px; border-radius: 14px; background: var(--grayLighter); }
#marketing .mk-calc label { display: flex; justify-content: space-between; font-size: 13px; color: var(--mk-ink-soft); font-variation-settings: 'wght' 600; margin-bottom: 10px; }
#marketing .mk-calc output { color: var(--mk-ink); font-variation-settings: 'wght' 700; }
#marketing .mk-calc input[type=range] {
    --fill: 40%;
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; margin: 0;
    background: linear-gradient(90deg, var(--accent) var(--fill), var(--grayDark) var(--fill));
    cursor: pointer;
}
#marketing .mk-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 3px 8px rgba(0, 0, 0, .18); transition: transform .15s; }
#marketing .mk-calc input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
#marketing .mk-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
#marketing .mk-calc-total { margin: 12px 0 0; font-size: 13px; color: var(--textLight); }
#marketing .mk-calc-total b { font-size: 22px; color: var(--mk-ink); font-variation-settings: 'wght' 750; font-weight: normal; font-variant-numeric: tabular-nums; margin-right: 4px; }
#marketing .mk-pricing-fine { text-align: center; margin: 34px 0 0; font-size: 13px; color: var(--textLight); }
html.mk-js #marketing .mk-pricing[data-reveal] .mk-plan { opacity: 0; translate: 0 30px; transition: opacity .8s var(--mk-ease), translate .8s var(--mk-ease), transform .35s var(--mk-ease), box-shadow .35s var(--mk-ease); }
html.mk-js #marketing .mk-pricing[data-reveal].is-in .mk-plan { opacity: 1; translate: 0 0; }
#marketing .mk-plans > *:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
#marketing .mk-plans > *:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; }

/* =============================================================================================
   Responsive
   ============================================================================================= */
@media (max-width: 1080px) {
    #marketing .mk-float--kpi { left: -6px; top: 12%; width: 200px; }
    #marketing .md-body { grid-template-columns: 1fr; }
    #marketing .md-table input { max-width: none; }
}
@media (max-width: 900px) {
    #marketing .mk-points { grid-template-columns: 1fr; max-width: 520px; gap: 16px; }
    #marketing .mk-split, #marketing .mk-split--fund { grid-template-columns: 1fr; gap: 36px; }
    #marketing .mk-shots--3, #marketing .mk-shots--2 {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
        overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 -4px;
        -webkit-overflow-scrolling: touch;
    }
    #marketing .mk-shots--3 > *, #marketing .mk-shots--2 > * { scroll-snap-align: start; }
    #marketing .mk-flow { grid-template-columns: 1fr; gap: 26px; }
    #marketing .mk-quote-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    #marketing .mk-quotes { padding: 84px 0; }
    #marketing .mk-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 34px; }
    #marketing .mk-plan.is-featured, #marketing .mk-plan.is-featured:hover { transform: none; }
    #marketing .mk-flow::before, #marketing .mk-flow::after { display: none; }
    #marketing .mk-foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body#marketing { --mk-bar-h: 58px; }
    #marketing .mk-wrap { padding: 0 16px; }
    #marketing .mk-bar-inner { padding: 0 12px; gap: 8px; }
    #marketing .mk-logo img { height: 32px; }
    #marketing .mk-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    #marketing .mk-tabs::-webkit-scrollbar { display: none; }
    #marketing .mk-tabs a { padding: 8px 11px; font-size: 13.5px; }
    #marketing .mk-textlink { display: none; }
    #marketing .mk-free { display: none; }
    #marketing h1.mk-hero-title { font-size: clamp(2.1rem, 9.6vw, 2.7rem); }
    #marketing .mk-btn-sm { height: 36px; padding: 0 .95rem; font-size: 13.5px; }
    #marketing .mk-hero { padding: calc(var(--mk-bar-h) + 44px) 0 70px; }
    #marketing .mk-hero-stage { margin-top: 48px; }
    #marketing .mk-float { display: none; }
    #marketing .mk-section { min-height: 0; padding: 88px 0 84px; }
    #marketing .mk-head { margin-bottom: 44px; }
    #marketing .mk-demo-shell { padding: 26px 16px 18px; border-radius: 18px; }
    #marketing .mk-demo-tag { left: 16px; }
    #marketing .md-kpis { width: 100%; justify-content: space-between; }
    #marketing .md-kpi { text-align: left; }
    #marketing .md-axis text { font-size: 16px; }
    #marketing .md-dlabel { display: none; }
    #marketing .md-ring { width: 46px; height: 46px; }
    #marketing .bd-body { grid-template-columns: 1fr; justify-items: center; }
    #marketing .bd-list { width: 100%; }
    #marketing .mk-collage { padding: 0 0 26% 0; }
    #marketing .mk-collage-phone { width: 34%; border-width: 6px; border-radius: 24px; }
    #marketing .mk-collage-phone img { border-radius: 18px; }
    #marketing .mk-collage-mail { width: 52%; left: 0; bottom: 0; }
    #marketing .mk-collage-mail img { height: 120px; }
    #marketing .mk-mail-head { padding: 10px 12px; font-size: 12px; }
    #marketing .mk-live { right: 8px; top: -16px; font-size: 12px; padding: 7px 12px; }
    #marketing .mk-frame-bar span { display: none; }
    #marketing .mk-close { padding: 100px 0 90px; }
    #marketing .mk-faq { padding: 80px 0 90px; }
    #marketing .mk-faq summary { padding: 18px 54px 18px 18px; font-size: 16px; }
    #marketing .mk-faq details p { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #marketing *, #marketing *::before, #marketing *::after {
        animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; transition-delay: 0s !important;
    }
    #marketing .mk-hero-glow span { animation: none !important; }
    #marketing .mk-flow::after { display: none; }
}
