/* Scoped ALM hero + media gallery; does not override community pages. */
#almNewLanding{--alm-ink:#f8f4ff;--alm-soft:#c6c9e5;--alm-gold:#e9ba78;--alm-edge:rgba(153,151,240,.25);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--alm-ink);max-width:1440px;margin:0 auto 3.5rem;isolation:isolate}
#almNewLanding *{box-sizing:border-box}
#almNewLanding .alm-hero-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:12px 0 14px;padding:0 5px}
#almNewLanding .alm-hero-eyebrow{margin:0;color:var(--alm-gold);font-size:.8rem;letter-spacing:.17em;text-transform:uppercase;font-weight:750}
#almNewLanding .alm-hero-art{padding:0;margin:0;position:relative;overflow:hidden;border-radius:24px;border:1px solid rgba(205,165,239,.35);box-shadow:0 30px 90px rgba(2,5,24,.55),0 0 38px rgba(79,69,180,.22);background:#0a1446;aspect-ratio:1670/746}
#almNewLanding .alm-hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;filter:saturate(1.02)}
#almNewLanding .alm-mobile-tagline{display:none}
#almNewLanding .alm-underhero-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:25px 0 0}
#almNewLanding .alm-underhero-links :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:12px 22px;border:1px solid var(--alm-edge);border-radius:999px;text-decoration:none;font-weight:720;transition:transform .15s,filter .15s} 
#almNewLanding .alm-underhero-links button{font:inherit;cursor:pointer;appearance:none}
#almNewLanding .alm-underhero-links :is(a,button):focus-visible{outline:3px solid #e9ba78;outline-offset:4px}
#almNewLanding .alm-action-primary{background:linear-gradient(100deg,#efd49f,#a984f4);color:#18142b}
#almNewLanding .alm-action-secondary{background:rgba(40,38,80,.95);color:#f9f5ff}
#almNewLanding .alm-underhero-links :is(a,button):hover{transform:translateY(-2px);filter:brightness(1.1)}
#almNewLanding .alm-video-heading{text-align:center;max-width:760px;margin:65px auto 28px;padding:0 12px}
#almNewLanding .alm-video-heading h2{font-family:Georgia,"Noto Serif",serif;color:#f4e2bc;font-weight:700;line-height:1.2;font-size:clamp(1.55rem,3vw,2.45rem);margin:0 0 13px}
#almNewLanding .alm-video-heading>p:last-child{color:var(--alm-soft);margin:0;line-height:1.6}
#almNewLanding .alm-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#almNewLanding .alm-video-card{background:linear-gradient(155deg,rgba(35,32,76,.98),rgba(13,20,50,.96));border:1px solid var(--alm-edge);border-radius:22px;overflow:hidden;box-shadow:0 25px 50px rgba(0,0,0,.24);min-width:0}
#almNewLanding .alm-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#101c49}
#almNewLanding .alm-about-preview{background:radial-gradient(ellipse at 65% 17%,#67499b 0,transparent 44%),radial-gradient(ellipse at 20% 100%,#da8e97 0,transparent 40%),linear-gradient(150deg,#152353,#24184c 65%,#12112c)}
#almNewLanding .alm-about-sky{position:absolute;inset:0;overflow:hidden}
#almNewLanding .alm-orbit{position:absolute;width:70%;height:100%;border:1px solid rgba(248,203,158,.25);border-radius:50%;transform:rotate(-17deg);top:20%;left:14%}
#almNewLanding .alm-orbit-two{width:50%;height:80%;left:29%;top:35%;transform:rotate(35deg);opacity:.6}
#almNewLanding .alm-about-emblem{position:absolute;top:12%;left:50%;color:#f8d6aa;font-size:6rem;transform:translateX(-50%);text-shadow:0 0 50px #dab1ef}
#almNewLanding .alm-video-frame-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1.2rem;padding:20px;text-align:center;background:linear-gradient(0deg,rgba(8,8,32,.7),transparent 65%)}
#almNewLanding .alm-video-frame-content strong{font-family:Georgia,serif;font-size:clamp(1.05rem,2.2vw,1.65rem);color:#ffecdd}
#almNewLanding .alm-visual-pill{color:#f1ddf9;font-size:.73rem;letter-spacing:.07em;background:rgba(16,13,44,.6);border:1px solid rgba(239,204,245,.45);border-radius:30px;padding:7px 13px}
#almNewLanding .alm-karaoke-launch{border:0;border-radius:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:18px;cursor:pointer;background:radial-gradient(ellipse at 35% 35%,rgba(128,78,201,.64),transparent 50%),radial-gradient(ellipse at 65% 90%,rgba(230,144,129,.40),transparent 55%),linear-gradient(145deg,#131643,#26195c 56%,#14112e);color:#fff}
#almNewLanding .alm-karaoke-particles{font-size:clamp(1.7rem,3.5vw,3rem);color:#e5c5ff;letter-spacing:15px;text-shadow:0 0 30px #cf8af5}
#almNewLanding .alm-play-circle{display:grid;place-items:center;border-radius:50%;height:78px;width:78px;background:linear-gradient(130deg,#f5d594,#d7a3fc);color:#271a4f;font-size:2rem;box-shadow:0 12px 45px rgba(240,185,241,.3);transition:transform .2s}
#almNewLanding .alm-karaoke-launch:hover .alm-play-circle{transform:scale(1.09)}
#almNewLanding .alm-launch-caption{font-size:.98rem;font-weight:760}
#almNewLanding .alm-video-embed{width:100%;height:100%;border:0;display:block;background:#080a23}
#almNewLanding .alm-video-card-body{padding:23px 24px 26px}
#almNewLanding .alm-video-card-title{display:flex;align-items:center;gap:11px;margin:0 0 12px}
#almNewLanding .alm-video-card-title h3{font-size:1.25rem;margin:0;font-weight:730;color:#fff}
#almNewLanding .alm-number{color:var(--alm-gold);border:1px solid rgba(226,181,127,.38);border-radius:11px;padding:5px 8px;font-size:.72rem;font-weight:800}
#almNewLanding .alm-video-card-body p{color:var(--alm-soft);margin:8px 0;line-height:1.6;font-size:.92rem}
#almNewLanding .alm-video-card-body .alm-song-title{color:#eecaa2;font-weight:680}
#almNewLanding .alm-video-card-body .alm-muted{opacity:.7;font-size:.86rem}
#almNewLanding .alm-video-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:19px}
#almNewLanding .alm-video-actions a{color:#f1d0a2;text-underline-offset:3px;font-size:.9rem}
#almNewLanding .alm-video-actions small{color:#aab4d7;font-size:.73rem}
@media(max-width:780px){#almNewLanding .alm-video-grid{grid-template-columns:1fr;gap:17px}#almNewLanding .alm-hero-art{border-radius:14px}#almNewLanding .alm-video-heading{margin-top:44px}#almNewLanding .alm-mobile-tagline{display:block;text-align:center;padding:0 10px;color:#e9e4fd;font-size:clamp(.82rem,2.6vw,1rem);line-height:1.5;margin:12px 0}#almNewLanding .alm-hero-toolbar{gap:10px}}
@media(max-width:480px){#almNewLanding .alm-hero-toolbar{flex-direction:column;align-items:flex-start}#almNewLanding .alm-video-card-body{padding:19px}#almNewLanding .alm-underhero-links{gap:9px}#almNewLanding .alm-underhero-links a{flex:1;white-space:nowrap;font-size:.88rem;padding:10px 14px}}
@media(prefers-reduced-motion:reduce){#almNewLanding *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Hide an old hero even if the legacy site renders it after our DOMContentLoaded callback. */
#webLanding:has(#almNewLanding) .site-hero{display:none!important}


/* Account CTAs and four compact functional introductions. */
#almNewLanding .alm-underhero-links .alm-action-signup{background:linear-gradient(120deg,#9b7bed,#6446a5);color:#fff;border-color:rgba(187,164,255,.6)}
#almNewLanding .alm-underhero-links .alm-action-login{background:rgba(8,15,39,.8);color:#f2ecff;border-color:rgba(188,191,245,.34)}
#almNewLanding .alm-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:48px 0 0;align-items:stretch}
#almNewLanding .alm-feature-card{position:relative;border:1px solid rgba(154,155,226,.23);background:linear-gradient(152deg,rgba(34,44,89,.78),rgba(16,19,52,.83));border-radius:18px;padding:19px 20px 21px;min-width:0;box-shadow:0 16px 38px rgba(0,0,0,.12)}
#almNewLanding .alm-feature-card:before{content:'';position:absolute;top:0;left:20px;right:20px;height:1px;background:linear-gradient(90deg,transparent,#e4bfa2,transparent);opacity:.5}
#almNewLanding .alm-feature-index{display:inline-flex;font-size:.72rem;font-weight:820;letter-spacing:.12em;color:#ebc48e;margin:0 0 12px}
#almNewLanding .alm-feature-card h3{font-family:Georgia,'Noto Serif',serif;color:#fff0d5;font-weight:680;font-size:clamp(.99rem,1.4vw,1.21rem);line-height:1.23;margin:0 0 9px}
#almNewLanding .alm-feature-card p{font-size:.86rem;line-height:1.62;color:#c6cce8;margin:0}
#almNewLanding .alm-video-heading{margin-top:65px}
/* Newsletter CTA connects to the existing ALM newsletter page; no new endpoint. */
#almNewLanding .alm-newsletter{margin:32px 0 0;display:flex;align-items:center;gap:20px;min-width:0;padding:28px 32px;background:linear-gradient(104deg,rgba(32,36,87,.91),rgba(43,27,86,.82));border:1px solid rgba(210,176,238,.31);border-radius:21px;box-shadow:0 22px 45px rgba(2,7,29,.25)}
#almNewLanding .alm-newsletter-mark{width:57px;height:57px;flex:0 0 57px;border-radius:18px;display:grid;place-items:center;background:rgba(188,140,249,.17);border:1px solid rgba(212,172,245,.28);font-size:1.75rem;color:#f3d2fa}
#almNewLanding .alm-newsletter-copy{flex:1;min-width:0}
#almNewLanding .alm-newsletter-copy h2{font-family:Georgia,'Noto Serif',serif;font-size:clamp(1.25rem,2vw,1.63rem);margin:0 0 6px;color:#fff0d2}
#almNewLanding .alm-newsletter-copy p{font-size:.91rem;line-height:1.58;margin:0;color:#cfcee9}
#almNewLanding .alm-newsletter-button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:12px 22px;text-decoration:none;font-weight:770;color:#1e193b;background:linear-gradient(112deg,#f3d7a3,#d8a1ee);border:1px solid rgba(245,211,248,.7)}
#almNewLanding .alm-newsletter-button:hover{filter:brightness(1.1)}
@media(max-width:1080px){#almNewLanding .alm-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:600px){#almNewLanding .alm-features{grid-template-columns:1fr;margin-top:35px;gap:11px}#almNewLanding .alm-feature-card{padding:15px 18px}#almNewLanding .alm-feature-index{margin-bottom:7px}#almNewLanding .alm-newsletter{flex-wrap:wrap;align-items:flex-start;padding:24px 22px;gap:13px}#almNewLanding .alm-newsletter-mark{height:46px;width:46px;flex-basis:46px;font-size:1.4rem}#almNewLanding .alm-newsletter-copy{flex:1 1 calc(100% - 66px)}#almNewLanding .alm-newsletter-button{margin-left:0;width:100%}}
@media(max-width:480px){#almNewLanding .alm-underhero-links a{flex:1 1 calc(50% - 10px);text-align:center;min-height:43px}#almNewLanding .alm-newsletter-copy p{font-size:.88rem}}


/* V4 corrections: stable cards + hide duplicated legacy homepage blocks. */
#almNewLanding .alm-features{grid-auto-rows:auto}
#almNewLanding .alm-feature-card{display:flex;flex-direction:column;min-height:0}
#almNewLanding .alm-video-card{display:flex;flex-direction:column;height:100%}
#almNewLanding .alm-video-card-body{display:flex;flex-direction:column;min-height:185px}
#almNewLanding .alm-video-actions{margin-top:auto}
#almNewLanding .alm-newsletter{min-height:138px}
#almNewLanding .alm-video-frame iframe{display:block;width:100%;height:100%}
@media(max-width:600px){#almNewLanding .alm-feature-card{min-height:0}#almNewLanding .alm-video-card-body{min-height:0}}

/* V5: precise duplicate suppression, no side-effects on account/community content. */
#webLanding:has(#almNewLanding) > .site-features,
#webLanding:has(#almNewLanding) > section.comm-panel{display:none!important}
#almNewLanding .alm-newsletter-button{font:inherit;cursor:pointer}
#almNewLanding .alm-features{grid-auto-rows:auto;align-items:stretch}
#almNewLanding .alm-video-frame{aspect-ratio:16/9}
#almNewLanding .alm-video-card{display:flex;flex-direction:column}
#almNewLanding .alm-video-card-body{flex:1}
/* Reserve consistent space for translated content to prevent language-switch jumps. */
#almNewLanding .alm-hero-toolbar{min-height:50px}
#almNewLanding .alm-underhero-links{min-height:50px}
#almNewLanding .alm-video-heading{min-height:120px}
@media(max-width:600px){
  #almNewLanding .alm-mobile-tagline{min-height:56px}
  #almNewLanding .alm-video-heading{min-height:158px}
  #almNewLanding .alm-video-card-body{min-height:230px}
}
@media(max-width:360px){
  #almNewLanding .alm-video-heading{min-height:176px}
}

/* ALM Site V1 - stable multilingual banner frame (1670 x 941). */
#almNewLanding .alm-hero-art {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1670 / 941;
  min-height: 0;
  overflow: hidden;
}
#almNewLanding .alm-hero-art > #almHeroImage {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}

/* Banner without top/bottom baked-in letterboxing: all 7 assets are 1670x759. */
#almNewLanding .alm-hero-art{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1670 / 759;
  min-height:0;
  padding:0;
  overflow:hidden;
  background:transparent;
}
#almNewLanding .alm-hero-art > #almHeroImage{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center center;
  background:transparent;
}


/* Download choice modal — same nocturnal language as ALM, with inline brand SVGs. */
#almNewLanding .alm-download-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(92vw,660px);max-width:calc(100dvw - 24px);max-height:min(90dvh,700px);min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:30px 28px 24px;border:1px solid rgba(198,164,249,.48);border-radius:26px;background:linear-gradient(155deg,#25204d 0%,#151b3c 47%,#101632 100%);color:#f9f5ff;box-shadow:0 32px 100px rgba(0,0,0,.76),0 0 65px rgba(142,99,239,.16);text-align:left}
#almNewLanding .alm-download-dialog::backdrop{background:rgba(2,4,20,.77);backdrop-filter:blur(9px)}
#almNewLanding .alm-download-dialog:not([open]){display:none}
#almNewLanding .alm-download-glow{position:absolute;top:-180px;right:-125px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(190,133,239,.25),transparent 70%);pointer-events:none}
#almNewLanding .alm-download-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:18px;padding-right:50px;min-width:0;font-size:12px;font-weight:760;letter-spacing:.075em;color:#e7c7ef;position:relative;z-index:1}
#almNewLanding .alm-download-spark{color:#f4c88e;font-size:16px}
#almNewLanding .alm-download-chip{border:1px solid rgba(227,197,247,.35);border-radius:999px;padding:4px 9px;color:#f7d99e;font-size:10px;letter-spacing:.04em}
#almNewLanding .alm-download-close{position:absolute;top:15px;right:16px;box-sizing:border-box;width:42px;height:42px;min-width:42px;min-height:42px;padding:0;display:grid;place-items:center;border:1px solid rgba(198,164,249,.42);border-radius:50%;background:rgba(255,255,255,.085);color:#f5edff;cursor:pointer;z-index:3;line-height:1;transition:background .2s,transform .2s}
#almNewLanding .alm-download-close:hover{background:rgba(255,255,255,.18);transform:scale(1.035)}
#almNewLanding .alm-download-close svg{display:block;width:18px;height:18px;pointer-events:none}
#almNewLanding .alm-download-dialog h2{position:relative;z-index:1;margin:0 0 10px 0;padding-right:38px;font:700 clamp(1.55rem,4vw,2.05rem)/1.18 Georgia,"Noto Serif",serif;color:#fff0dd}
#almNewLanding .alm-download-intro{margin:0;color:#c9c8e3;font-size:.97rem;line-height:1.55}
#almNewLanding .alm-download-options{display:grid;width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0 18px}
#almNewLanding .alm-download-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;overflow-wrap:anywhere;min-height:188px;padding:23px 20px 19px;border:1px solid rgba(176,171,236,.28);border-radius:18px;background:linear-gradient(160deg,rgba(255,255,255,.085),rgba(255,255,255,.025));color:#fff;text-decoration:none;transition:transform .2s,border-color .2s,background .2s,box-shadow .2s}
#almNewLanding .alm-download-option:hover{transform:translateY(-4px);border-color:#d2b6f9;box-shadow:0 16px 35px rgba(0,0,0,.26);background:linear-gradient(160deg,rgba(185,139,241,.19),rgba(255,255,255,.04))}
#almNewLanding .alm-download-option:focus-visible,#almNewLanding .alm-download-close:focus-visible{outline:3px solid #f5d89a;outline-offset:3px}
#almNewLanding .alm-download-logo{display:grid;place-items:center;width:55px;height:55px;border-radius:15px;background:#eee9fa;color:#292345}
#almNewLanding .alm-download-logo svg{width:34px;height:34px}
#almNewLanding .alm-download-option-sourceforge .alm-download-logo{background:#fff0e9;color:#f06b38}
#almNewLanding .alm-download-option strong{font-size:1.18rem;font-weight:780;letter-spacing:.01em}
#almNewLanding .alm-download-provider-info{max-width:100%;color:#c9c7e4;font-size:.81rem;line-height:1.4}
#almNewLanding .alm-download-arrow{position:absolute;right:20px;top:25px;color:#e7c9f7;font-size:22px;line-height:1}
#almNewLanding .alm-download-footnote{margin:0;text-align:center;color:#aaaacb;font-size:.77rem;line-height:1.5}
@media(max-width:540px){#almNewLanding .alm-download-dialog{width:min(94vw,660px);max-width:calc(100dvw - 16px);padding:25px 18px 20px;border-radius:21px}#almNewLanding .alm-download-close{top:13px;right:13px}#almNewLanding .alm-download-options{grid-template-columns:1fr;gap:11px;margin:20px 0 15px}#almNewLanding .alm-download-option{min-height:125px;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;align-content:center;padding:15px 17px}#almNewLanding .alm-download-logo{grid-row:1/3;grid-column:1}#almNewLanding .alm-download-option strong{grid-row:1;grid-column:2}#almNewLanding .alm-download-provider-info{grid-row:2;grid-column:2;padding-right:20px}#almNewLanding .alm-download-arrow{top:16px;right:15px}}
@media(prefers-reduced-motion:reduce){#almNewLanding .alm-download-option{transition:none}}
