/* ==========================================================================
   Shared components for marketing-editable pages (see inc/editable-pages.php).
   Page content is core blocks; these classes give them the design.
   Class names here are a contract with saved page content: restyle freely,
   but do not rename or remove a class that pages use.
   ========================================================================== */

/* ---------- section shells ---------- */
.ma-sec{margin-block:0;color:#fff}
.ma-sec .is-layout-flow > *,.ma-sec .is-layout-constrained > *{margin-block-start:0}
.ma-sec .wp-block-image{margin:0}
.ma-sec mark{background:transparent}
.ma-pad{padding:var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--small)}
.ma-bg-contrast{background:var(--wp--preset--color--contrast)}
.ma-bg-secondary{background:var(--wp--preset--color--secondary)}
.ma-bg-base{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}

/* shared section header */
.ma-hd{text-align:center;max-width:720px;margin:0 auto clamp(28px,4vw,44px)}
.ma-sec .ma-eye{display:block;font-size:.62rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#ffa000;margin:0 0 14px;font-family:var(--wp--preset--font-family--roboto),sans-serif}
.ma-sec .ma-h2{font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:clamp(1.65rem,3vw,2.4rem);font-weight:800;line-height:1.12;letter-spacing:-.025em;color:#fff;margin:0 0 14px}
.ma-sec .ma-sub{font-size:1.125rem;line-height:1.7;color:rgba(255,255,255,.78);margin:0}

/* legend tags (dot drawn in CSS so the tag is plain editable text) */
.ma-sec .wrf-legend{margin:0 0 20px}
.ma-sec .wrf-legend .wrf-legend-item{margin:0;line-height:var(--wp--custom--line-height--body, 1.7)}
.ma-sec .wrf-legend .wrf-legend-item::before{content:"";width:9px;height:9px;border-radius:50%;flex-shrink:0;background:#ffa000;box-shadow:0 0 6px rgba(255,160,0,.6)}

/* hero-style buttons (same look as .wrf-hero-cta) */
.ma-sec .ma-actions{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-end}
:is(.ma-sec,.ma-btns) .ma-cta{margin:0}
:is(.ma-sec,.ma-btns) .ma-cta .wp-block-button__link{display:inline-flex;align-items:center;font-family:inherit;font-weight:700;font-size:1rem;line-height:1.5;background:transparent;color:#fff;border:none;border-radius:0 0 10px 0;box-shadow:none;padding:0 30px 23px 0;text-decoration:none;position:relative;transition:all .3s ease}
:is(.ma-sec,.ma-btns) .ma-cta .wp-block-button__link:hover,:is(.ma-sec,.ma-btns) .ma-cta .wp-block-button__link:focus{background:transparent;color:#fff}
:is(.ma-sec,.ma-btns) .ma-cta .wp-block-button__link::before{content:"";position:absolute;right:0;bottom:0;border-radius:0 0 8px 0;height:50%;width:100%;background:none;pointer-events:none;transition:all .3s ease}
:is(.ma-sec,.ma-btns) .ma-cta .wp-block-button__link:hover::before{height:100%;width:50%}
:is(.ma-sec,.ma-btns) .ma-cta--orange .wp-block-button__link::before{border-right:4px solid var(--wp--preset--color--neutral);border-bottom:4px solid var(--wp--preset--color--neutral)}
:is(.ma-sec,.ma-btns) .ma-cta--cyan .wp-block-button__link::before{border-right:4px solid var(--wp--preset--color--primary);border-bottom:4px solid var(--wp--preset--color--primary)}

/* app window frame, shared by hero + tour */
.ma-frame{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 28px 70px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.14)}
.ma-frame-bar{display:flex;align-items:center;gap:7px;padding:9px 14px;background:#fff;border-bottom:1px solid #e6e8ef;font-family:var(--wp--preset--font-family--red-hat-display),sans-serif}
.ma-frame-bar i{width:9px;height:9px;border-radius:50%;background:#d9dce6;display:inline-block}
.ma-frame-bar i:first-child{background:#ffa000}
.ma-frame-name{margin-left:6px;font-size:.74rem;font-weight:700;color:#2b2367;letter-spacing:.02em}
.ma-frame-name b{color:#5b4fc4}
.ma-frame img{display:block;width:100%;height:auto}

/* ---------- HERO (centred; add a visual below the buttons if needed) ---------- */
.ma-hero{padding:clamp(56px,7vw,96px) var(--wp--preset--spacing--small) clamp(64px,8vw,100px);text-align:center}
.ma-hero-in{max-width:860px;margin:0 auto}
.ma-hero .wrf-legend{justify-content:center}
.ma-sec .ma-hero-h1{font-size:clamp(2.3rem,4.6vw,3.6rem);font-weight:700;line-height:1.06;letter-spacing:-.028em;color:#fff;margin:0 0 18px}
.ma-hero-h1 em{color:var(--wp--preset--color--primary);font-style:normal}
.ma-sec .ma-hero-sub{font-size:1.125rem;line-height:1.72;color:rgba(255,255,255,.75);margin:0 auto 34px;max-width:56ch;text-wrap:balance}
.ma-hero .ma-actions{justify-content:center}
@media(max-width:600px){.ma-sec .ma-hero .ma-actions{gap:14px;align-items:center}}

/* ---------- section wrapper widths ---------- */
.ma-wrap{max-width:1140px;margin:0 auto}

/* card icons: drawn in CSS (not inline SVG) so they survive any editor's save.
   ::before is the 44px tile, ::after the 22px icon masked from --ma-ic. */
.ma-ic{position:relative}
.ma-ic::before{content:"";display:block;width:44px;height:44px;border-radius:12px;margin-bottom:16px}
.ma-ic::after{content:"";position:absolute;top:37px;left:35px;width:22px;height:22px;-webkit-mask:var(--ma-ic) center/contain no-repeat;mask:var(--ma-ic) center/contain no-repeat}
.ma-ic-nocode{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h10M7 13h6'/%3E%3C/svg%3E")}
.ma-ic-eye{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.ma-ic-shield{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")}
.ma-ic-history{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E")}
.ma-ic-report{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E")}
.ma-ic-trend{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17 9 11l4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E")}
.ma-ic-team{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3Cpath d='M17 14.5a5 5 0 0 1 4.5 5'/%3E%3C/svg%3E")}
.ma-ic-plug{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v4M15 3v4M7 7h10v4a5 5 0 0 1-10 0z'/%3E%3Cpath d='M12 16v5'/%3E%3C/svg%3E")}
.ma-ic-clock{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E")}
.ma-ic-alert{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E")}
.ma-ic-shuffle{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'/%3E%3Cline x1='4' y1='20' x2='21' y2='3'/%3E%3Cpolyline points='21 16 21 21 16 21'/%3E%3Cline x1='15' y1='15' x2='21' y2='21'/%3E%3Cline x1='4' y1='4' x2='9' y2='9'/%3E%3C/svg%3E")}
.ma-ic-wrench{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/%3E%3C/svg%3E")}
.ma-ic-refresh{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpolyline points='1 20 1 14 7 14'/%3E%3Cpath d='M3.5 9a9 9 0 0 1 14.9-3.4L23 10M1 14l4.6 4.4A9 9 0 0 0 20.5 15'/%3E%3C/svg%3E")}
.ma-ic-pulse{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E")}
.ma-ic-target{--ma-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E")}

/* ---------- CARD GRID (dark cards; add ma-card--light on white sections) ---------- */
.ma-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:18px}
.ma-card{background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.1);border-top:3px solid #ffa000;border-radius:14px;padding:26px 24px}
.ma-card::before{background:rgba(26,196,250,.12)}
.ma-card::after{background:#1ac4fa}
.ma-sec .ma-card h3{font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:1.15rem;font-weight:800;color:#fff;margin:0 0 10px;line-height:1.25}
.ma-sec .ma-card p{font-size:1rem;line-height:1.65;color:rgba(255,255,255,.78);margin:0}
.ma-bg-base .ma-h2{color:var(--wp--preset--color--secondary)}
.ma-bg-base .ma-sub{color:rgba(1,0,35,.75)}
.ma-card.ma-card--light{background:#fff;border:1px solid rgba(43,35,103,.09);border-top:3px solid var(--wp--preset--color--neutral);border-radius:10px;padding:26px 24px;box-shadow:0 4px 24px rgba(43,35,103,.08);transition:transform .2s ease,box-shadow .2s ease}
.ma-card.ma-card--light:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(43,35,103,.15)}
.ma-card.ma-card--light::before{background:rgba(43,35,103,.08)}
.ma-card.ma-card--light::after{background:var(--wp--preset--color--secondary)}
.ma-sec .ma-card.ma-card--light h3{font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:1.12rem;font-weight:800;color:var(--wp--preset--color--secondary);margin:0 0 8px;line-height:1.25}
.ma-sec .ma-card.ma-card--light p{font-size:1rem;line-height:1.62;color:rgba(1,0,35,.75);margin:0}

/* ---------- PLATFORM (.mplat component as editable blocks) ---------- */
.mplat{max-width:1140px;margin:0 auto}
.mplat-hd{text-align:center;margin-bottom:clamp(28px,4vw,40px)}
.ma-sec .mplat-eye{display:block;font-size:.62rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#ffa000;margin:0 0 14px}
.ma-sec .mplat-title{font-size:clamp(1.65rem,3vw,2.4rem);font-weight:800;line-height:1.12;letter-spacing:-.025em;color:#fff;margin:0 0 12px}
.ma-sec .mplat-sub{font-size:1.125rem;line-height:1.7;color:rgba(255,255,255,.75);margin:0}
.mplat-maia,.mplat-card{position:relative}
.mplat-maia{background:rgba(1,0,35,.6);border:1px solid rgba(255,160,0,.18);border-top:3px solid #ffa000;border-radius:14px;padding:18px 22px;margin-bottom:16px}
.ma-sec .mplat-maia{margin-bottom:16px}
.ma-sec .mplat-maia-title{font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:1.15rem;font-weight:800;color:#fff;margin:0 0 10px;line-height:1.2}
.ma-sec .mplat-maia-title mark{font-weight:400}
.ma-sec .mplat-maia-desc{font-size:1.125rem;color:rgba(255,255,255,.75);line-height:1.6;margin:0}
.mplat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.mplat-card{background:rgba(1,0,35,.55);border:1px solid rgba(255,255,255,.08);border-radius:14px;border-top:3px solid rgba(255,255,255,.15);padding:22px 20px 20px;display:flex;flex-direction:column}
.mplat-card--here{background:rgba(255,160,0,.08);border-top-color:#ffa000;border-color:rgba(255,160,0,.2)}
.ma-sec .mplat-step{font-size:.58rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.38);margin:0 0 10px;display:block}
.ma-sec .mplat-card--here .mplat-step{color:#ffa000}
.ma-sec .mplat-card-name{font-size:1rem;font-weight:700;color:#fff;margin:0 0 3px;line-height:1.2}
.ma-sec .mplat-card-role{font-size:.72rem;font-weight:600;color:rgba(255,255,255,.45);margin:0 0 10px;letter-spacing:.02em}
.ma-sec .mplat-card-desc{font-size:1.125rem;line-height:1.6;color:rgba(255,255,255,.75);margin:0;flex:1}
.ma-sec .mplat-explore{display:inline-flex;align-items:center;gap:5px;margin:16px 0 0;font-size:.78rem;font-weight:700;color:rgba(255,255,255,.55);letter-spacing:.04em;transition:color .2s}
.ma-sec .mplat-explore a{color:inherit;text-decoration:none}
/* the Explore link covers the whole card, so the card stays one big link */
.ma-sec .mplat-explore a::after{content:"";position:absolute;inset:0;border-radius:14px}
.ma-sec .mplat-explore::after{content:"";width:13px;height:13px;background:currentColor;transition:transform .2s;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat}
.mplat-maia:hover .mplat-explore,.mplat-card:hover .mplat-explore{color:#1ac4fa}
.mplat-maia:hover .mplat-explore::after,.mplat-card:hover .mplat-explore::after{transform:translateX(3px)}
.ma-sec .mplat-here-badge{display:inline-flex;align-items:center;gap:5px;margin:16px 0 0;font-size:.72rem;font-weight:700;color:#ffa000;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:780px){.mplat-grid{grid-template-columns:repeat(2,1fr);gap:14px}.mplat-maia{padding:16px 18px}}
@media(max-width:480px){.mplat-grid{grid-template-columns:1fr;gap:12px}.mplat-card{padding:18px 16px 16px}}

/* ---------- CLOSING CTA (white, title left / text + buttons right) ---------- */
.ma-close{padding:calc(var(--wp--preset--spacing--medium) * 2) var(--wp--preset--spacing--small)}
.ma-close-in{max-width:1220px;margin:0 auto;display:grid;grid-template-columns:49fr 51fr;gap:var(--wp--preset--spacing--medium);align-items:center}
.ma-sec .ma-close-h{font-size:clamp(1.65rem,3vw,2.4rem);font-weight:800;line-height:1.25;color:var(--wp--preset--color--contrast);margin:0}
.ma-sec .ma-close-h strong{color:var(--wp--preset--color--secondary)}
.ma-sec .ma-close-p{font-size:1.125rem;color:rgba(1,0,35,.75);margin:0 0 var(--wp--preset--spacing--small)}
.ma-sec .ma-close-btns{flex-wrap:nowrap;gap:clamp(14px,3vw,48px)}
@media(max-width:781px){.ma-close-in{grid-template-columns:1fr;gap:var(--wp--preset--spacing--small)}}

/* ---------- CONVERTED SECTIONS (.ma-auto) ----------
   Sections carried over from a hand-built template. Inner groups (.ma-c) stand
   in for the template's plain HTML, so they get no block gaps of their own. */
/* same weight as the block-gap rule it cancels, so the page CSS can still set margins */
:root :where(.ma-auto .ma-c.is-layout-flow) > *{margin-block-start:0}
/* groups written by a page generator (not converted): flow layout kept, block gaps removed */
:root :where(.ma-auto .ma-g.is-layout-flow) > *{margin-block-start:0}
/* .ma-gap: kept as a hook; measured parity needs no extra gap */
.ma-auto .wp-block-image{margin:0}
.ma-auto .wrf-legend-item::before{content:"";width:9px;height:9px;border-radius:50%;flex-shrink:0;background:#ffa000;box-shadow:0 0 6px rgba(255,160,0,.6)}
/* former standalone links: the paragraph carries the link's classes */
.ma-auto p.ma-link > a{color:inherit;text-decoration:inherit;font:inherit}
.ma-auto .ma-arrow > a{display:inline-flex;align-items:center;gap:6px}
.ma-auto .ma-arrow > a::after,.ma-auto span.ma-arrow::after,.ma-auto p.ma-arrow:not(.ma-link)::after{content:"";width:13px;height:13px;background:currentColor;transition:transform .2s;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat}
.ma-auto .ma-arrow:hover > a::after{transform:translateX(3px)}
.is-root-container > .ma-auto{margin-block-start:0 !important}
/* converted sections sit edge to edge in the page content, as they did directly in <main> */
.wp-block-post-content > .ma-v2{margin-block-start:0}

/* plain text elements in converted sections get the browser's default margins back, as they had
   in the original HTML (WordPress's layout rules zero them). Same weight as WordPress's rule and
   loaded after it, so it wins over that, while any margin set by the page CSS still wins over this. */
:root :where(.ma-v2 .ma-c.is-layout-flow > :is(p:not([class*="ma-from-"]),h1,h2,h3,h4,h5,h6,ul,ol)){margin-block:revert}
/* paragraphs converted from div/span/a... had no margins in the original HTML (zero weight: page CSS still wins) */
:where(.ma-auto p[class*="ma-from-"]){margin-block:0}
/* text that was inline in the original template (span, a, strong...) stays inline;
   zero weight, so any page rule that sets display still wins */
:where(.ma-auto p.ma-inline){display:inline}
/* link cards: the title holds the link, stretched over the whole card */
.ma-linkcard{position:relative}
.ma-linkcard a{color:inherit;text-decoration:none}
.ma-linkcard a::after{content:"";position:absolute;inset:0;z-index:1}
/* a title that was a layout box (flex row of name + tag): the link wrapping its parts stays out of the layout */
.ma-linkcard p.ma-from-div > a:only-child{display:contents}


/* ---------- FAQ (reusable: any page, any number of questions) ----------
   Section: .ma-faq > .ma-faq-in > (.ma-faq-head, .ma-faq-list > core/details blocks).
   Add a question by duplicating one; any Details block in the list gets this style. */
.ma-faq{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}
.ma-faq-in{max-width:1220px;margin:0 auto;padding:clamp(56px,8vw,88px) var(--wp--preset--spacing--small)}
.ma-faq-head{text-align:center;max-width:620px;margin:0 auto 52px}
.ma-faq .ma-faq-eye{display:block;font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ffa000;margin:0}
.ma-faq .ma-faq-head .ma-faq-title{font-size:clamp(1.65rem,3vw,2.4rem);font-weight:800;color:var(--wp--preset--color--secondary);line-height:1.18;letter-spacing:-.025em;margin:12px 0 0}
.ma-faq-list{max-width:720px;margin:0 auto}
.ma-faq-list .wp-block-details{border-bottom:1px solid rgba(43,35,103,.1);margin:0;padding:0}
.ma-faq-list .wp-block-details:first-child{border-top:1px solid rgba(43,35,103,.1)}
.ma-faq-list .wp-block-details > summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;cursor:pointer;list-style:none;font-size:1.05rem;font-weight:700;color:var(--wp--preset--color--secondary);line-height:1.3;letter-spacing:-.01em;user-select:none;transition:color .2s}
.ma-faq-list .wp-block-details > summary::-webkit-details-marker{display:none}
.ma-faq-list .wp-block-details > summary::after{content:"";flex-shrink:0;width:26px;height:26px;border-radius:50%;border:1.5px solid rgba(43,35,103,.2);background:rgba(43,35,103,.55);transition:background .2s,border-color .2s,transform .2s;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='12.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M13 8v10M8 13h10' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='12.25' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M13 8v10M8 13h10' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;border:0}
.ma-faq-list .wp-block-details[open] > summary{color:#ffa000}
.ma-faq-list .wp-block-details[open] > summary::after{background:#ffa000;transform:rotate(45deg)}
.ma-faq-list .wp-block-details > :not(summary){margin:0;padding:0 40px 22px 0;font-size:.975rem;color:rgba(43,35,103,.75);line-height:1.68}
.ma-faq-list .wp-block-details a{color:var(--wp--preset--color--primary);font-weight:700;text-decoration:none}
.ma-faq-list .wp-block-details a:hover{text-decoration:underline}
/* the FAQ holds plain blocks: no block gaps inside it */
.ma-faq{margin-block:0}
:root :where(.ma-faq .is-layout-flow) > *{margin-block-start:0}
.is-root-container > .ma-faq{margin-block-start:0 !important}
/* dark variant (.ma-faq--dark, pattern "FAQ section (dark)"): heading on the left, questions as panels on the right */
.ma-faq--dark{background:radial-gradient(80% 120% at 100% 0%,rgba(43,35,103,.85),transparent 62%),var(--wp--preset--color--contrast);color:#fff}
.ma-faq.ma-faq--dark .ma-faq-head .ma-faq-title{color:#fff}
.ma-faq--dark .ma-faq-list{display:flex;flex-direction:column;gap:12px}
.ma-faq--dark .ma-faq-list .wp-block-details,.ma-faq--dark .ma-faq-list .wp-block-details:first-child{border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.04);transition:border-color .2s,background .2s}
.ma-faq--dark .ma-faq-list .wp-block-details:hover{border-color:rgba(255,255,255,.24)}
.ma-faq--dark .ma-faq-list .wp-block-details[open]{border-color:rgba(255,160,0,.5);background:rgba(255,160,0,.06)}
.ma-faq--dark .ma-faq-list .wp-block-details > summary{color:#fff;padding:20px 22px}
.ma-faq--dark .ma-faq-list .wp-block-details > summary::after{background:#1ac4fa;border-color:rgba(26,196,250,.4)}
.ma-faq--dark .ma-faq-list .wp-block-details[open] > summary{color:#ffa000}
.ma-faq--dark .ma-faq-list .wp-block-details[open] > summary::after{background:#ffa000}
.ma-faq--dark .ma-faq-list .wp-block-details > :not(summary){padding:0 22px 22px;color:rgba(255,255,255,.8)}
@media(min-width:960px){
  .ma-faq--dark .ma-faq-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(40px,6vw,88px);align-items:start}
  .ma-faq--dark .ma-faq-head{text-align:left;margin:0;position:sticky;top:32px}
  .ma-faq--dark .ma-faq-list{max-width:none;margin:0}
}
@media(max-width:600px){.ma-faq--dark .ma-faq-list .wp-block-details > summary{padding:18px}.ma-faq--dark .ma-faq-list .wp-block-details > :not(summary){padding:0 18px 18px}}

/* card label above a card title (e.g. "Lost confidence") */
.ma-sec .ma-card-tag{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#ffa000;margin:0 0 10px}
.ma-sec .ma-card:nth-child(even) .ma-card-tag{color:#1ac4fa}

/* ---------- editor only ---------- */
/* sections sit edge to edge, as on the page */
.is-root-container > .ma-sec{margin-block:0 !important}
/* the site's scroll fade-in (style.css) never runs in the editor, so show sections there */
.entry-content > .wp-block-group.block-editor-block-list__block > *{opacity:1 !important;transform:none !important}

/* ---------- PRODUCT TOUR (Studio, Mind; built by components/studio-tour.js) ---------- */
.mst-tour{max-width:1180px;margin:0 auto}
/* stages as authored: a readable list (editor, or before the script runs) */
.mst-steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:16px}
.mst-step{background:rgba(1,0,35,.35);border:1px solid rgba(255,255,255,.12);border-top:3px solid #ffa000;border-radius:14px;overflow:hidden}
.mst-step .wp-block-image img{display:block;width:100%;height:auto}
.mst-step > :not(.wp-block-image){padding:0 18px}
.mst-step > .wp-block-image + *{padding-top:16px}
.mst-step > :last-child{padding-bottom:18px}
/* the script builds the interactive tour and hides the list */
.ma-js .mst-steps{display:none}
.mst-tabs{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.mst-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,330px);gap:20px;align-items:stretch}
.mst-body .ma-frame{align-self:start;justify-self:center;width:100%;max-width:calc((100vh - 230px) * 1.9);max-width:calc((100svh - 230px) * 1.9)}
.mst-tab{display:inline-flex;align-items:center;gap:8px;font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:.88rem;font-weight:700;color:rgba(255,255,255,.7);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:7px 14px 7px 8px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.mst-tab span{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.12);display:inline-flex;align-items:center;justify-content:center;font-size:.72rem}
.mst-tab:hover{color:#fff;background:rgba(255,255,255,.12)}
.mst-tab:focus-visible{outline:2px solid #ffa000;outline-offset:2px}
.mst-tab.is-on{color:#010023;background:#ffa000;border-color:#ffa000}
.mst-tab.is-on span{background:rgba(1,0,35,.15)}
.mst-shot{position:relative;aspect-ratio:1600/826;background:#f4f5f9}
.ma-frame .mst-shot-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease}
.ma-frame .mst-shot-img.is-on{opacity:1}
.mst-hot{position:absolute;left:0;top:0;width:9.8%;height:100%;z-index:2}
.mst-hot-b{position:absolute;left:0;width:100%;height:4.6%;border:0;background:transparent;cursor:pointer;border-radius:0 6px 6px 0;transition:background .15s}
.mst-hot-b:hover{background:rgba(255,255,255,.14)}
.mst-cap{display:flex;flex-direction:column;background:rgba(1,0,35,.35);border:1px solid rgba(255,255,255,.12);border-top:3px solid #ffa000;border-radius:14px;padding:clamp(20px,2.4vw,26px)}
.mst-cap-n{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#1ac4fa;margin-bottom:8px}
.ma-sec .mst-cap-t{font-family:var(--wp--preset--font-family--red-hat-display),sans-serif;font-size:clamp(1.2rem,1.8vw,1.4rem);font-weight:800;color:#fff;line-height:1.2;margin:0 0 8px}
.ma-sec .mst-cap-p{font-size:1rem;line-height:1.62;color:rgba(255,255,255,.82);margin:0 0 14px;text-wrap:pretty}
.ma-sec .mst-cap-out{display:inline-block;align-self:flex-start;font-size:.8rem;font-weight:700;color:#010023;background:#ffa000;border-radius:999px;padding:6px 14px;margin:0}
.mst-step > .mst-cap-out{display:block;width:max-content;max-width:calc(100% - 36px);margin:0 18px 18px;padding:6px 14px}
.mst-cap-nav{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:20px}
.mst-dots{display:flex;gap:5px;flex:1}
.mst-dots i{height:4px;flex:1;border-radius:999px;background:rgba(255,255,255,.18);transition:background .2s}
.mst-dots i.is-on{background:#ffa000}
.mst-nav-b{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-size:1.05rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.mst-nav-b:hover,.mst-nav-b:focus-visible{background:#ffa000;color:#010023;border-color:#ffa000;outline:none}
.ma-sec .mst-tour-note{text-align:center;font-size:.8rem;color:rgba(255,255,255,.55);margin:16px 0 0}
@media(max-width:960px){.mst-body{grid-template-columns:1fr}.mst-body .ma-frame{max-width:none}}
@media(max-width:600px){.mst-cap{padding:16px 18px}.ma-sec .mst-cap-t{margin-bottom:6px}.ma-sec .mst-cap-p{font-size:.95rem;line-height:1.55;margin-bottom:12px}.mst-cap-nav{padding-top:14px}.mst-nav-b{width:38px;height:38px}.mst-tabs{margin-bottom:12px}}
@media(max-width:600px){.mst-tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:0 -20px 14px;padding:2px 20px}.mst-tabs::-webkit-scrollbar{display:none}.mst-tab{flex:none}.mst-hot{display:none}}
@media(prefers-reduced-motion:reduce){.ma-frame .mst-shot-img{transition:none}}
/* MassTer Mind screenshots: taller ratio, wider sidebar */
.mst-tour--mind .mst-shot{aspect-ratio:1600/906}
.mst-tour--mind .mst-hot{width:16.6%}
.mst-tour--mind .mst-hot-b{height:3.5%}
/* editor: the tour stages show as a list of cards to edit */
.editor-styles-wrapper .mst-steps{display:grid}
/* Platform block, orchestrator layout: Maia Agent, three components, the Academy underneath */
.mplat-grid.mplat-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ma-sec .mplat-found{margin:16px 0 0;padding:14px 20px;border:1px dashed rgba(26,196,250,.4);background:rgba(26,196,250,.07);border-radius:12px;font-size:1rem;line-height:1.6;color:rgba(255,255,255,.82);text-align:center}
.ma-sec .mplat-found a{color:var(--wp--preset--color--primary);font-weight:700;text-decoration:none}
/* the Academy link covers the whole line, like the Explore links on the cards */
.ma-sec .mplat-found{position:relative;transition:background .2s,border-color .2s}
.ma-sec .mplat-found a::after{content:"";position:absolute;inset:0;border-radius:12px}
.ma-sec .mplat-found:hover{background:rgba(26,196,250,.12);border-color:rgba(26,196,250,.6)}
.ma-sec .mplat-found:hover a{text-decoration:underline}
.mplat--orch .mplat-maia-title mark{margin-left:6px}
/* on the Maia page the Maia bar gets the "you are here" tint */
.mplat--orch .mplat-maia.mplat-card--here{background:rgba(255,160,0,.08);border-color:rgba(255,160,0,.25)}
@media(max-width:780px){.mplat-grid.mplat-grid--3{grid-template-columns:1fr}}
