/* MAS Apps Public UI v1.2.0 — dark MAS-aligned, isolated, cache-safe */
:root{
  --mas-app-bg:#050505;
  --mas-app-surface:#111113;
  --mas-app-surface-2:#17171a;
  --mas-app-text:#f5f5f7;
  --mas-app-muted:#a1a1aa;
  --mas-app-soft:#74747c;
  --mas-app-line:#2a2a2f;
  --mas-app-accent:#7a7dff;
  --mas-app-paper:#ffffff;
  --mas-app-paper-text:#17171a;
  --mas-app-radius:26px;
}

html body.common-front{background:#000!important;}
html body.common-front .mas-apps-public,
html body.common-front .mas-apps-public *{box-sizing:border-box;}
html body.common-front .mas-apps-public{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  overflow:hidden!important;
  background:var(--mas-app-bg)!important;
  color:var(--mas-app-text)!important;
  isolation:isolate;
}
html body.common-front .mas-apps-public:before{
  content:"";
  position:absolute;
  inset:0 auto auto 50%;
  transform:translateX(-50%);
  width:min(1200px,95vw);
  height:560px;
  pointer-events:none;
  background:radial-gradient(circle at 50% 0%,rgba(122,125,255,.11),transparent 64%);
  z-index:0;
}
html body.common-front .mas-apps-public .container{position:relative;z-index:1;max-width:1320px;}
html body.common-front .mas-apps-public h1,
html body.common-front .mas-apps-public h2,
html body.common-front .mas-apps-public h3,
html body.common-front .mas-apps-public h4,
html body.common-front .mas-apps-public h5,
html body.common-front .mas-apps-public h6{color:var(--mas-app-text)!important;}
html body.common-front .mas-apps-public p,
html body.common-front .mas-apps-public li{color:var(--mas-app-muted)!important;}
html body.common-front .mas-apps-public a{text-decoration:none;}
html body.common-front .mas-apps-public img{max-width:100%;height:auto;}

/* Header remains the MAS header; page spacing prevents overlap. */
html body.common-front .header{z-index:9999!important;}
html body.common-front .header__logo img{opacity:1!important;filter:brightness(0) invert(1)!important;-webkit-filter:brightness(0) invert(1)!important;}
html body.common-front .header__action-btn{color:#fff!important;border-color:rgba(255,255,255,.78)!important;}
html body.common-front .header-burger{z-index:10000!important;}

/* Cookie banner stays fixed but content gets safe bottom room. */
html body.common-front .js-cookie-consent{z-index:200000!important;}

.mas-app-eyebrow{
  display:inline-flex!important;
  align-items:center;
  gap:9px;
  margin:0 0 16px!important;
  font-size:12px!important;
  line-height:1!important;
  letter-spacing:.18em!important;
  text-transform:uppercase;
  font-weight:800!important;
  color:#8f909b!important;
}
.mas-app-eyebrow:before{content:"";width:22px;height:2px;border-radius:99px;background:var(--mas-app-accent);}
.mas-app-mark{
  flex:0 0 auto;
  width:78px;
  height:78px;
  border-radius:22px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#0e0e10;
  color:#fff!important;
  font-size:28px;
  font-weight:800;
  border:1px solid #2c2c31;
  box-shadow:0 18px 44px rgba(0,0,0,.28);
}
.mas-app-mark img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}

/* /apps */
.mas-apps-index{padding:150px 0 170px!important;min-height:100vh!important;}
.mas-apps-hero{max-width:900px!important;margin:0 auto 58px!important;text-align:center!important;}
.mas-apps-hero .mas-app-eyebrow{justify-content:center;}
.mas-apps-hero h1{
  margin:0 auto 22px!important;
  max-width:900px!important;
  color:#f7f7f8!important;
  font-size:clamp(48px,6vw,86px)!important;
  line-height:.98!important;
  letter-spacing:-.052em!important;
  font-weight:650!important;
}
.mas-apps-hero p{
  margin:0 auto!important;
  max-width:720px!important;
  color:#96969f!important;
  font-size:17px!important;
  line-height:1.75!important;
}
.mas-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;}
.mas-app-card{
  min-width:0;
  min-height:330px;
  padding:28px!important;
  display:flex!important;
  flex-direction:column;
  border:1px solid var(--mas-app-line)!important;
  border-radius:var(--mas-app-radius)!important;
  background:linear-gradient(180deg,#141416 0%,#0f0f11 100%)!important;
  color:#fff!important;
  box-shadow:0 20px 60px rgba(0,0,0,.18)!important;
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.mas-app-card:hover{transform:translateY(-5px);border-color:#44444c!important;box-shadow:0 30px 80px rgba(0,0,0,.30)!important;}
.mas-app-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px;}
.mas-app-card .mas-app-mark{width:76px;height:76px;border-radius:22px;}
.mas-app-card-arrow{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:1px solid #35353a;color:#b7b7bf!important;font-size:18px;transition:.18s;}
.mas-app-card:hover .mas-app-card-arrow{background:#fff;border-color:#fff;color:#111!important;}
.mas-app-card h2{margin:0 0 10px!important;color:#fff!important;font-size:27px!important;line-height:1.15!important;letter-spacing:-.03em!important;font-weight:650!important;}
.mas-app-card p{margin:0!important;color:#9d9da5!important;font-size:15px!important;line-height:1.72!important;}
.mas-app-meta{margin-top:auto;padding-top:25px;display:flex;gap:8px;flex-wrap:wrap;}
.mas-app-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid #2d2d32;border-radius:99px;background:#171719;color:#b9b9c0!important;font-size:11px!important;font-weight:700!important;line-height:1!important;}
.mas-apps-empty{grid-column:1/-1;padding:56px 24px;border:1px dashed #34343a;border-radius:24px;background:#101012;color:#aaaab2!important;text-align:center;}
.mas-apps-pagination{margin-top:36px;}

/* /apps/{app} */
.mas-app-detail{padding:145px 0 175px!important;min-height:100vh!important;}
.mas-app-detail-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
  gap:52px;
  align-items:center;
  padding:48px!important;
  border:1px solid #29292e!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,#151517 0%,#0d0d0f 60%,#12121a 100%)!important;
  box-shadow:0 28px 90px rgba(0,0,0,.28)!important;
}
.mas-app-brand{display:flex;align-items:center;gap:18px;margin-bottom:28px;min-width:0;}
.mas-app-brand-copy{min-width:0;}
.mas-app-brand-copy small{display:block;margin-bottom:5px;color:#85858f!important;font-size:11px!important;line-height:1.3;text-transform:uppercase;letter-spacing:.14em;font-weight:800!important;}
.mas-app-brand-copy strong{display:block;color:#dedee3!important;font-size:14px!important;line-height:1.4;overflow-wrap:anywhere;}
.mas-app-detail-hero h1{margin:0 0 17px!important;color:#fff!important;font-size:clamp(48px,6vw,82px)!important;line-height:.97!important;letter-spacing:-.055em!important;font-weight:650!important;}
.mas-app-lead{max-width:680px!important;margin:0!important;color:#a0a0aa!important;font-size:17px!important;line-height:1.75!important;}
.mas-app-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px;}
.mas-app-btn{min-height:50px;padding:0 19px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #3c3c42;font-size:14px!important;font-weight:700!important;line-height:1.2!important;transition:.18s;}
.mas-app-btn:hover{transform:translateY(-2px);}
.mas-app-btn--dark{background:#fff!important;color:#111!important;border-color:#fff!important;box-shadow:0 12px 30px rgba(0,0,0,.18);}
.mas-app-btn--light{background:#151517!important;color:#e9e9ed!important;border-color:#34343a!important;}
.mas-app-inline-arrow{font-size:17px!important;line-height:1!important;color:inherit!important;}
.mas-app-visual{position:relative;min-width:0;min-height:420px;display:flex;align-items:center;justify-content:center;}
.mas-app-visual-card{position:relative;width:min(100%,410px);min-height:400px;padding:25px;border-radius:32px;background:#070708;color:#fff!important;border:1px solid #26262c;box-shadow:0 32px 80px rgba(0,0,0,.36);overflow:hidden;}
.mas-app-visual-card:before{content:"";position:absolute;width:250px;height:250px;right:-100px;top:-110px;border-radius:50%;background:rgba(122,125,255,.28);}
.mas-app-visual-card-inner{position:relative;z-index:2;height:100%;min-height:350px;display:flex;flex-direction:column;}
.mas-app-visual-card .mas-app-mark{width:76px;height:76px;}
.mas-app-visual-title{margin:23px 0 8px;color:#fff!important;font-size:32px!important;line-height:1.05!important;font-weight:650!important;letter-spacing:-.035em!important;}
.mas-app-visual-sub{margin:0 0 18px!important;color:#8f8f98!important;font-size:13px!important;line-height:1.6!important;}
.mas-app-visual-list{margin-top:auto;display:grid;gap:10px;}
.mas-app-visual-item{padding:14px 15px;border:1px solid #28282e;border-radius:15px;background:#111114;}
.mas-app-visual-item strong{display:block;color:#ececf0!important;font-size:13px!important;line-height:1.35!important;}
.mas-app-visual-item span{display:block;margin-top:3px;color:#777780!important;font-size:11px!important;line-height:1.45!important;}
.mas-app-hero-media{width:100%!important;max-height:480px!important;object-fit:cover!important;border-radius:30px!important;border:1px solid #29292e;box-shadow:0 28px 70px rgba(0,0,0,.34);}
.mas-app-section{padding-top:76px;}
.mas-app-section-head{max-width:780px;margin-bottom:23px;}
.mas-app-section h2{margin:0 0 12px!important;color:#f5f5f7!important;font-size:clamp(30px,4vw,44px)!important;line-height:1.12!important;letter-spacing:-.038em!important;font-weight:650!important;}
.mas-app-copy{color:#a0a0a9!important;font-size:16px!important;line-height:1.86!important;white-space:pre-line;overflow-wrap:anywhere;}
.mas-app-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:26px;}
.mas-app-info{min-width:0;padding:21px;border:1px solid #29292e;border-radius:19px;background:#101012!important;}
.mas-app-info small{display:block;margin-bottom:8px;color:#71717a!important;font-size:11px!important;line-height:1.3;text-transform:uppercase;letter-spacing:.09em;font-weight:700!important;}
.mas-app-info strong{display:block;color:#e8e8ec!important;font-size:14px!important;line-height:1.55;overflow-wrap:anywhere;word-break:break-word;}
.mas-app-shots{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;padding:5px 2px 20px;scroll-snap-type:x proximity;}
.mas-app-shot{flex:0 0 auto;width:auto!important;height:490px!important;max-width:85vw!important;object-fit:cover!important;border-radius:23px;border:1px solid #2d2d32;background:#101012;box-shadow:0 14px 40px rgba(0,0,0,.25);scroll-snap-align:start;}
.mas-app-release{padding:24px;border:1px solid #29292e;border-radius:21px;background:#101012!important;}
.mas-app-release-title{display:block;margin-bottom:9px;color:#ededf0!important;font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere;}
.mas-app-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.mas-app-policy-card{min-width:0;display:block!important;padding:21px;border:1px solid #29292e;border-radius:19px;background:#101012!important;color:#fff!important;transition:.18s;}
.mas-app-policy-card:hover{transform:translateY(-3px);border-color:#484850!important;background:#141416!important;}
.mas-app-policy-card strong{display:block;margin-bottom:6px;color:#ededf0!important;font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere;}
.mas-app-policy-card span{display:block;color:#7e7e87!important;font-size:12px!important;line-height:1.5!important;}

/* policy/support/data pages: dark frame + white readable document */
.mas-app-policy-page{padding:145px 0 180px!important;min-height:100vh!important;}
.mas-app-policy-shell{max-width:980px;margin:0 auto;}
.mas-app-policy-breadcrumb{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:22px;}
.mas-app-policy-back{display:inline-flex;align-items:center;gap:7px;color:#aaaab3!important;font-size:13px!important;font-weight:700!important;}
.mas-app-policy-back:hover{color:#fff!important;}
.mas-app-policy-dot{color:#4c4c53!important;}
.mas-app-policy-app{display:inline-flex;align-items:center;gap:8px;color:#86868f!important;font-size:12px!important;}
.mas-app-policy-app .mas-app-mark{width:30px;height:30px;border-radius:9px;font-size:11px;box-shadow:none;}
.mas-app-policy-hero{padding:38px 40px 34px;border:1px solid #2b2b30;border-radius:29px 29px 0 0;background:linear-gradient(135deg,#151517,#0d0d0f)!important;}
.mas-app-policy-hero .mas-app-eyebrow{margin-bottom:14px!important;}
.mas-app-policy-hero h1{margin:0 0 14px!important;color:#fff!important;font-size:clamp(38px,5vw,62px)!important;line-height:1.02!important;letter-spacing:-.047em!important;font-weight:650!important;overflow-wrap:anywhere;}
.mas-app-policy-meta{display:flex;gap:8px 18px;flex-wrap:wrap;color:#85858e!important;font-size:12px!important;line-height:1.5!important;}
.mas-app-policy-meta span{color:#85858e!important;}
.mas-app-policy-body{padding:40px 42px 48px;border:1px solid #dedee2;border-top:0;border-radius:0 0 29px 29px;background:#fff!important;color:#4d4d55!important;font-size:16px!important;line-height:1.84!important;overflow:hidden;overflow-wrap:anywhere;word-break:normal;box-shadow:0 28px 80px rgba(0,0,0,.24);}
html body.common-front .mas-app-policy-body > *:first-child{margin-top:0!important;}
html body.common-front .mas-app-policy-body > *:last-child{margin-bottom:0!important;}
html body.common-front .mas-app-policy-body h1,
html body.common-front .mas-app-policy-body h2,
html body.common-front .mas-app-policy-body h3,
html body.common-front .mas-app-policy-body h4{margin:34px 0 12px!important;color:#17171a!important;line-height:1.24!important;letter-spacing:-.02em!important;font-weight:700!important;}
html body.common-front .mas-app-policy-body h2{font-size:26px!important;}
html body.common-front .mas-app-policy-body h3{font-size:21px!important;}
html body.common-front .mas-app-policy-body h4{font-size:17px!important;}
html body.common-front .mas-app-policy-body p{margin:0 0 17px!important;color:#55555d!important;font-size:16px!important;line-height:1.84!important;}
html body.common-front .mas-app-policy-body ul,
html body.common-front .mas-app-policy-body ol{display:block!important;margin:0 0 22px!important;padding-left:24px!important;text-align:left!important;}
html body.common-front .mas-app-policy-body li{margin:7px 0!important;color:#55555d!important;font-size:16px!important;line-height:1.74!important;}
html body.common-front .mas-app-policy-body a{color:#5559ee!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:3px!important;overflow-wrap:anywhere;}
html body.common-front .mas-app-policy-body strong{color:#1d1d21!important;font-weight:700!important;}
html body.common-front .mas-app-policy-body blockquote{margin:22px 0!important;padding:18px 20px!important;border-left:3px solid var(--mas-app-accent)!important;border-radius:0 12px 12px 0;background:#f5f5fb!important;color:#55555d!important;}
html body.common-front .mas-app-policy-body code{padding:2px 6px;border-radius:6px;background:#f0f0f3;color:#333!important;font-size:.9em!important;overflow-wrap:anywhere;}
html body.common-front .mas-app-policy-body pre{max-width:100%;overflow:auto;padding:16px;border-radius:14px;background:#111114;color:#efeff2!important;white-space:pre-wrap;word-break:break-word;}
html body.common-front .mas-app-policy-body table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:20px 0;}
html body.common-front .mas-app-policy-body th,
html body.common-front .mas-app-policy-body td{min-width:130px;padding:11px 12px;border:1px solid #e4e4e7;color:#55555d!important;text-align:left!important;vertical-align:top;}
html body.common-front .mas-app-policy-body img{display:block;max-width:100%!important;height:auto!important;margin:20px auto;border-radius:14px;}
html body.common-front .mas-app-policy-body hr{border:0;border-top:1px solid #e4e4e7;margin:30px 0;}

/* Footer separation */
html body.common-front .mas-apps-public + .typed-section,
html body.common-front .footer-section{position:relative!important;z-index:2!important;clear:both!important;}

@media(max-width:1100px){
  .mas-app-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .mas-app-detail-hero{gap:34px;padding:38px!important;}
}
@media(max-width:900px){
  .mas-app-detail-hero{grid-template-columns:1fr;}
  .mas-app-visual{min-height:auto;}
  .mas-app-info-grid,.mas-app-policy-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:767px){
  .mas-apps-index,.mas-app-detail,.mas-app-policy-page{padding-top:110px!important;padding-bottom:145px!important;}
  .mas-apps-hero{margin-bottom:34px!important;text-align:left!important;}
  .mas-apps-hero .mas-app-eyebrow{justify-content:flex-start;}
  .mas-apps-hero h1{font-size:clamp(42px,12vw,60px)!important;}
  .mas-apps-hero p{font-size:15px!important;line-height:1.7!important;}
  .mas-app-grid{grid-template-columns:1fr;gap:14px;}
  .mas-app-card{min-height:0;padding:22px!important;border-radius:22px!important;}
  .mas-app-card .mas-app-mark{width:68px;height:68px;border-radius:20px;}
  .mas-app-detail-hero{padding:24px!important;border-radius:25px!important;gap:28px;}
  .mas-app-detail-hero h1{font-size:clamp(42px,13vw,62px)!important;}
  .mas-app-visual-card{min-height:345px;border-radius:25px;}
  .mas-app-visual-card-inner{min-height:295px;}
  .mas-app-section{padding-top:56px;}
  .mas-app-info-grid,.mas-app-policy-grid{grid-template-columns:1fr;}
  .mas-app-shot{height:390px!important;}
  .mas-app-policy-hero{padding:28px 23px 26px;border-radius:23px 23px 0 0;}
  .mas-app-policy-body{padding:29px 23px 34px;border-radius:0 0 23px 23px;font-size:15px!important;}
  html body.common-front .mas-app-policy-body p,
  html body.common-front .mas-app-policy-body li{font-size:15px!important;}
}
@media(max-width:430px){
  .mas-app-actions{display:grid;grid-template-columns:1fr;width:100%;}
  .mas-app-btn{width:100%;}
  .mas-app-brand{align-items:flex-start;}
  .mas-app-mark{width:64px;height:64px;border-radius:19px;}
  .mas-app-policy-breadcrumb{align-items:flex-start;}
}
