/* Budgie Motion shares the product-page layout. Colour follows the instrument. */
body[data-budgie-product="motion"] {
  --canvas:#f6f2e9;
  --paper:#fbf8f1;
  --ink:#243955;
  --muted:#585f60;
  --line:#d9d1bf;
  --panel:var(--paper);
  --amber:#e9b566;
  --amber-hover:#efc485;
  --accent-ink:#583c18;
  --sage:#586d55;
  --shadow:0 12px 30px rgba(60,49,34,.08);
  background:var(--canvas)!important;
  color:var(--ink);
}
body[data-budgie-product="motion"] .ambient{display:none}
body[data-budgie-product="motion"] :is(.nav,.ba-mobile-bar,.ba-mobile-panel,.budgie-plugin-menu){
  background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important;box-shadow:none!important
}
body[data-budgie-product="motion"] :is(.brand,.budgie-plugins-trigger,.nav-links button,.ba-mobile-features a,.ba-mobile-features button,.budgie-plugin-card strong,.budgie-nav-actions a){color:var(--ink)!important}
body[data-budgie-product="motion"] :is(.budgie-plugin-card,.scenario,.motion-shot img,.motion-slot,.ghost){
  background:var(--paper)!important;border:1px solid var(--line)!important;box-shadow:none!important;color:var(--ink)!important
}
body[data-budgie-product="motion"] :is(.hero-actions,.nav-links,.budgie-nav-actions,.ba-mobile-features,.final-cta) :is(.primary,.ba-buy){
  background:var(--amber)!important;color:var(--ink)!important;border:1px solid #c89852!important;box-shadow:none!important
}
body[data-budgie-product="motion"] :is(.primary,.ba-buy):hover{background:var(--amber-hover)!important}
body[data-budgie-product="motion"] :is(.eyebrow,.card-label,.budgie-plugin-price){
  background:transparent!important;color:var(--accent-ink)!important;border-color:var(--line)!important
}
body[data-budgie-product="motion"] :is(.hero,.feature-row,.trial-section,.section-line){border-color:var(--line);background:transparent}
body[data-budgie-product="motion"] :is(h1,h2,h3,.proof-grid strong){color:var(--ink)}
body[data-budgie-product="motion"] :is(.hero-copy p,.feature-copy p,.scenario p,.motion-slot p,.trial-section p,.proof-grid span){color:var(--muted)}
body[data-budgie-product="motion"] .proof-grid{background:var(--line);border-color:var(--line);box-shadow:none}
body[data-budgie-product="motion"] .proof-grid div{background:var(--paper)}
body[data-budgie-product="motion"] .feature-row .card-label{border-left:3px solid #cb762f!important;padding-left:10px}
body[data-budgie-product="motion"] #lfo .card-label{border-left-color:#55859a!important}
body[data-budgie-product="motion"] #matrix .card-label{border-left-color:#a26982!important}
body[data-budgie-product="motion"] #dark .card-label{border-left-color:#72967b!important}
body[data-budgie-product="motion"] .motion-slot{background:#edeedf!important;border-color:#bdc5ac!important}
body[data-budgie-product="motion"] .motion-slot h2{color:var(--sage)}
body[data-budgie-product="motion"] .final-cta{background:#eae0cd;border:1px solid var(--line);box-shadow:none}
body[data-budgie-product="motion"] .final-cta p{color:var(--muted)}
body[data-budgie-product="motion"] :is(footer,.china-site-footer){background:var(--paper)!important;border-color:var(--line)!important;color:var(--muted)!important}
body[data-budgie-product="motion"] :focus-visible{outline:3px solid #935410;outline-offset:3px}
.motion-index{display:flex;flex-wrap:wrap;gap:10px 22px;padding-block:28px;border-bottom:1px solid var(--line)}
.motion-index a{font-size:13px;color:var(--muted);text-decoration:none}.motion-index a:hover{color:var(--accent-ink)}
.motion-diagram{padding:clamp(22px,4vw,48px);border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.motion-diagram-row{display:flex;flex-direction:column;gap:12px;padding:22px 0;border-bottom:1px solid var(--line)}
.motion-diagram-row strong{font-size:22px;color:var(--sage)}.motion-diagram-row span{font-size:17px;line-height:1.6}.motion-diagram small{display:block;margin-top:24px;color:var(--muted)}
.feature-row{scroll-margin-top:100px}.feature-copy p{line-height:1.85!important}.motion-index a:focus-visible{outline-offset:4px}
/* Scene-led edition: shared website navigation, Motion's own warm surface. */
body[data-budgie-product="motion"] :is(.nav-inner,.budgie-nav-inner,.budgie-language-options,.budgie-language-panel){background:#f8f5ec!important;border-color:#ddd6c6!important;color:#243935!important;box-shadow:0 6px 22px #433b2410!important}
body[data-budgie-product="motion"] .budgie-language-options>button{color:#243935!important}
body[data-budgie-product="motion"] .nav{background:#f6f2e9f5!important}
@font-face{font-family:MotionTitle;src:url('assets/motion/MotionTitle.ttf') format('truetype');font-display:swap}
body[data-budgie-product="motion"] .hero{grid-template-columns:1fr 1fr;min-height:0;padding:64px 0 56px;gap:64px}
.motion-wordmark{color:#19333c}.motion-wordmark>span{font-size:17px;font-weight:650;color:#637052}.motion-wordmark>div{font-family:MotionTitle,sans-serif;font-weight:800;font-size:clamp(96px,11vw,168px);line-height:1.1;letter-spacing:-.06em;margin-left:-5px}
body[data-budgie-product="motion"] .hero h1{font-size:clamp(26px,2.7vw,40px);line-height:1.32;letter-spacing:-.025em;margin:0 0 20px;max-width:560px}
body[data-budgie-product="motion"] .hero .eyebrow{display:none}.hero-copy{text-align:left!important}.hero p{font-size:16px!important}
.landscape{width:min(100%,1600px);margin:0 auto;position:relative;overflow:hidden;aspect-ratio:1000/224;background:#e5e5d7}
.landscape-art{position:absolute;inset:0}.landscape-art>img{position:absolute;top:-22.545%;width:100%;height:auto;max-width:none}.landscape .scene-motion{position:absolute;inset:0;width:100%;height:100%}
.scene-controls{display:flex;justify-content:space-between;align-items:center;padding-block:12px;color:#6b705f;font-size:12px}.scene-toggle{border:0;border-bottom:1px solid #9da18e;background:none;color:inherit;font:inherit;padding:4px;cursor:pointer}
body[data-budgie-product="motion"] .proof-grid{margin-top:24px;background:#d7d7c7}.proof-grid div{background:#ececdf!important}
body[data-budgie-product="motion"] #feature-4,body[data-budgie-product="motion"] #feature-8{background:#eeeee2;padding-inline:32px}
body[data-budgie-product="motion"] .feature-row .card-label{text-transform:none;letter-spacing:.07em;color:#697258!important}
body[data-budgie-product="motion"] .motion-shot img{border-radius:8px}.motion-slot{border-radius:8px!important}
@media(max-width:900px){body[data-budgie-product="motion"] .hero{gap:24px;grid-template-columns:1fr;padding:36px 0}.motion-wordmark>div{font-size:112px}.hero-actions{justify-content:flex-start!important}.hero p{margin-left:0!important}.landscape{aspect-ratio:auto;height:220px}.landscape-art{width:982px;left:50%;right:auto;transform:translateX(-50%)}.motion-wordmark>span{font-size:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* A continuous painted world, rather than illustrations inserted as banners. */
body[data-budgie-product="motion"]{background:#e9eee8!important;isolation:isolate}
.painted-world{position:fixed;inset:0;z-index:-1;background:url('assets/motion/world-wide.png') center/cover no-repeat;pointer-events:none}
.painted-world:after{content:"";position:absolute;inset:0;background:inherit;clip-path:polygon(79% 0,100% 0,100% 31%,89% 21%);transform-origin:100% 0;animation:leaf-air 9s ease-in-out infinite alternate}
@keyframes leaf-air{from{transform:rotate(-.16deg)}to{transform:rotate(.2deg)}}
body[data-budgie-product="motion"] .hero .eyebrow{display:flex!important;font-size:12px;letter-spacing:.12em;margin-bottom:18px;line-height:1.7;color:#5f5738!important}
body[data-budgie-product="motion"] .hero{padding:64px 36px 40px;gap:48px;min-height:360px}
body[data-budgie-product="motion"] .nav{background:transparent!important}
body[data-budgie-product="motion"] .nav-inner{background:#fbf9f0ed!important}
body[data-budgie-product="motion"] .hero-product{width:min(900px,calc(100% - 64px));margin:24px auto 36px}
body[data-budgie-product="motion"] .hero-product img{box-shadow:0 20px 48px #293e3926!important;border:1px solid #ffffffb3!important}
body[data-budgie-product="motion"] .feature-row{position:relative;background:#fafaf1b3!important;border-top:1px solid #fdfbf4b3;padding:56px 32px;margin-block:24px;border-radius:8px;backdrop-filter:blur(1px)}
body[data-budgie-product="motion"] .feature-row:nth-of-type(3n){background:#eef2e5b3!important}
body[data-budgie-product="motion"] .motion-index{background:#fbfaf2b8;padding:20px 24px;border-radius:8px}
body[data-budgie-product="motion"] .proof-grid{opacity:.95}
.world-passage{height:240px;background:url('assets/motion/world-tall.png') center 72%/100% auto no-repeat;mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);margin-block:20px}
body[data-budgie-product="motion"] :is(.trial-section,.final-cta,#sounds){background:#fafaf0b8!important;padding:32px;border:1px solid #ffffffb3;border-radius:8px}
.scene-controls>span{visibility:hidden}.scene-toggle{background:#fafaf1e8;padding:8px 12px;border:1px solid #d0d6c5;border-radius:4px}
body.motion-paused .painted-world:after{animation-play-state:paused}
@media(max-width:900px){.painted-world{background-image:url('assets/motion/world-tall.png');background-position:center;background-size:cover}.painted-world:after{display:none}body[data-budgie-product="motion"] .hero{padding:32px 24px;gap:12px}body[data-budgie-product="motion"] .feature-row{padding:32px 20px}.world-passage{height:160px}body[data-budgie-product="motion"] .hero-product{width:calc(100% - 32px)}.motion-wordmark>div{font-size:96px}}
@media(prefers-reduced-motion:reduce){.painted-world:after{animation:none}}

/* Shared outer geometry for every content panel. */
body[data-budgie-product="motion"] #homePage{--content-width:1180px;--content-gutter:32px;--panel-radius:12px}
body[data-budgie-product="motion"] #homePage > .wrap{box-sizing:border-box;width:min(var(--content-width),calc(100% - var(--content-gutter)));margin-inline:auto}
body[data-budgie-product="motion"] #homePage > :is(.feature-row,.proof-grid,.motion-index,.trial-section,.final-cta,#sounds){border-radius:var(--panel-radius);overflow:hidden}
body[data-budgie-product="motion"] #homePage > .feature-row{padding-inline:32px}
@media(max-width:640px){body[data-budgie-product="motion"] #homePage{--content-gutter:24px}body[data-budgie-product="motion"] #homePage > .feature-row{padding-inline:20px}}
.route-demo{min-width:0;border:1px solid #d7d8c6;background:#fbf9ef;color:#253e3c;border-radius:12px;padding:clamp(14px,2vw,26px);color-scheme:light}
.rd-head,.rd-foot,.rd-tools{display:flex;align-items:center;gap:8px}.rd-head{justify-content:space-between}.rd-head strong{font-size:18px}
.route-demo button{background:#f6f3e7;color:#324a43;border:1px solid #d0d3c2;border-radius:6px;padding:5px 12px;cursor:pointer;font:inherit;font-size:13px}.route-demo button[aria-pressed=true]{background:#f3d6a6;border-color:#dca55f}
.route-demo canvas{display:block;width:100%;height:84px;background:#eff0e5;border-radius:4px;margin:16px 0}
.rd-route{display:grid;grid-template-columns:minmax(0,1fr) auto 74px;align-items:baseline;gap:4px 8px;padding:8px 0}.rd-route strong{font-size:14px}.rd-route small{font-size:12px;color:#60695f}.rd-route b{text-align:right;font-variant-numeric:tabular-nums;font-size:14px}.rd-route i{grid-column:1/-1;height:4px;background:#e4e4d6}.rd-route em{display:block;background:#6b8c7b;height:100%;transform-origin:left}.rd-route:nth-child(2) em{background:#af8451}.rd-route:nth-child(3) em{background:#988196}
.rd-foot{margin-top:12px;border-top:1px solid #dadccd;padding-top:12px;font-size:12px}.rd-foot input{min-width:40px;flex:1;accent-color:#657e69}
.instrument-preview{min-width:0;margin:0;color:#33493f;background:#fbf8ef;border:1px solid #d3d3c2;border-radius:10px;overflow:hidden}
.instrument-window,.large-instrument iframe{aspect-ratio:1000/614}
.instrument-window iframe,.large-instrument iframe{display:block;border:0;width:100%;height:100%;background:#f6f2e9}
.instrument-preview figcaption{display:flex;align-items:center;gap:8px;padding:6px 10px;font-size:12px}
.instrument-preview output{margin-right:auto;font-variant-numeric:tabular-nums}
.instrument-preview button,.instrument-dialog>button{color:#304338;background:#f2eee1;border:1px solid #c9cbbc;border-radius:5px;padding:4px 10px;cursor:pointer}
#homePage .instrument-preview:popover-open {
  position:fixed;inset:0;margin:auto;width:min(96vw,1500px,calc((100dvh - 72px) * 1.62));
  max-width:96vw;height:fit-content;max-height:96dvh;background:#fbf8ef;
}
.instrument-preview::backdrop{background:#35433d88}
.instrument-preview:popover-open .instrument-window{overflow:auto;aspect-ratio:auto;max-height:82dvh}
.instrument-preview:popover-open iframe{width:100%;min-width:760px;height:auto;aspect-ratio:1000/614}
.instrument-preview:where([data-view=rhythm],[data-view=matrix],[data-view=phrase],[data-view=amount],[data-view=modes]) .instrument-window{aspect-ratio:auto;height:290px}
.instrument-preview:is([data-view=phrase],[data-view=amount],[data-view=modes]) .instrument-window{height:345px}
.instrument-preview:is([data-view=rhythm],[data-view=matrix],[data-view=modes],[data-view=phrase],[data-view=amount]):popover-open iframe{height:100%;aspect-ratio:auto;min-width:0}
.instrument-preview figcaption output{font-weight:600}
@media(max-width:650px){.feature-row .instrument-preview{width:100%}}
/* Keep both calls to action on the same baseline across product sections. */
body[data-budgie-product="motion"] .hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
body[data-budgie-product="motion"] .final-cta .hero-actions{justify-content:center}
body[data-budgie-product="motion"] .hero-actions > :is(.primary,.ghost){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:46px;margin:0;padding:10px 18px;line-height:1.3}
.instrument-preview[data-view=amount] .instrument-window{height:410px}
body[data-budgie-product="motion"] #homePage>.motion-support{width:calc(100% - var(--content-gutter));max-width:var(--content-max,1180px);box-sizing:border-box;margin:24px auto;padding:clamp(24px,4vw,56px) 32px;background:#faf9f0cf;color:var(--ink);border:1px solid #fdfbf4b3;border-radius:var(--panel-radius);scroll-margin-top:104px}
.motion-support{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr);gap:clamp(20px,4vw,64px);align-items:start}
.motion-support h2{margin:0;line-height:1.2;font-size:clamp(26px,3vw,42px)}
.motion-specs dl,.motion-specs dd{margin:0}
.motion-specs dl div{display:grid;grid-template-columns:7em 1fr;gap:12px;padding:17px 0}
.motion-specs dt,.motion-faq summary{font-weight:650}
.motion-specs dl div,.motion-faq details{border-bottom:1px solid #c7c7b6}
.motion-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;cursor:pointer;list-style:none;line-height:1.55}
.motion-faq summary::-webkit-details-marker{display:none}
.motion-faq summary::after{content:'+';font-size:22px;line-height:1;color:#536e56;font-weight:400}
.motion-faq details[open] summary::after{content:'−'}
.motion-faq details p{margin:0;padding:0 24px 18px 0;line-height:1.75;color:#49574e}
@media(max-width:900px){.feature-row:has([data-view=rhythm],[data-view=matrix],[data-view=modes],[data-view=phrase],[data-view=amount]){grid-template-columns:minmax(0,1fr)!important}.feature-row:has([data-view=rhythm],[data-view=matrix],[data-view=modes],[data-view=phrase],[data-view=amount])>*{grid-column:1;grid-row:auto;order:initial}.motion-support{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(max-width:640px){body[data-budgie-product="motion"] #homePage>.motion-support{padding:26px 20px}.motion-specs dl div{grid-template-columns:5.5em 1fr}}
.motion-faq details{padding:0}
.motion-faq summary{min-height:60px;box-sizing:border-box;font-size:16px}
.motion-faq details p{font-size:15px}
.motion-manual-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:6px;padding:1px 0 14px;border-bottom:1px solid #c7c7b6}
.motion-manual-links a{font-size:14px;font-weight:650;color:#48613f;text-decoration:underline;text-underline-offset:.25em}
.motion-manual-links a:hover{color:var(--ink)}

/* Shared product hero hierarchy: actions, resource links, compatibility. */
.hero-resources{margin:20px 0 0;padding:0;border:0;gap:10px 22px;align-items:center}
.hero-resources a{font-weight:500;text-decoration:none;border-bottom:1px solid #87967b66;padding:5px 0}
body[data-budgie-product="motion"] .hero .hero-compatibility{font-size:12px!important;line-height:1.8;margin:18px 0 0;color:#61705f}
@media(max-width:600px){.hero-resources{gap:6px 18px}.hero-resources a{font-size:13px}}
