/* ==========================================================================
   Fan app campaign: home section, slim banner (store + other pages),
   sticky mobile bar. Uses the site tokens from style.css.
   Hidden everywhere inside the installed app (display-mode: standalone).
   ========================================================================== */
.app-promo{position:relative;z-index:1;padding:clamp(56px,8vw,104px) 0}
.app-promo-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:clamp(28px,5vw,72px);align-items:center;
  padding:clamp(28px,4.5vw,60px);border-radius:28px;overflow:hidden;
  background:radial-gradient(90% 120% at 100% 0%,rgba(140,110,255,.28) 0%,rgba(20,16,48,.0) 55%),
             radial-gradient(70% 90% at 0% 100%,rgba(110,170,255,.18) 0%,rgba(8,10,24,0) 60%),
             linear-gradient(160deg,rgba(18,16,44,.86),rgba(6,7,18,.92))}
.app-promo-kicker{display:inline-flex;align-items:center;gap:10px;margin:0 0 18px;padding:7px 14px;border-radius:999px;
  border:1px solid rgba(201,182,255,.45);background:rgba(201,182,255,.1);color:#e6dcff;font-size:10px;font-weight:600;letter-spacing:.24em;text-transform:uppercase}
.app-promo-kicker b{color:#0a0d18;background:var(--cta);padding:2px 8px;border-radius:999px;letter-spacing:.18em;font-weight:700}
.app-promo-title{font-family:var(--f-display);font-weight:500;font-size:clamp(30px,4.4vw,56px);line-height:1.06;letter-spacing:.02em;margin:0 0 14px;text-transform:uppercase}
.app-promo-title em{display:block;font-family:var(--f-display);font-style:normal;font-weight:500;text-transform:uppercase;font-size:1.05em;line-height:1.15;letter-spacing:.1em;word-spacing:.18em;
  background:var(--chrome);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 18px rgba(160,200,255,.28))}
.app-promo-lead{color:#d6dbec;font-size:clamp(15px,1.4vw,17px);margin:0 0 22px;max-width:56ch}
.app-promo-list{display:grid;gap:12px;margin:0 0 30px}
.app-promo-list li{display:grid;grid-template-columns:34px 1fr;gap:14px;align-items:start;color:#eef1fb;font-size:15px;line-height:1.5}
.app-promo-list li i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:14px;color:#d8c8ff;background:rgba(201,182,255,.14);border:1px solid rgba(201,182,255,.28)}
.app-promo-list li span small{display:block;color:#aeb5cc;font-size:12.5px}
.app-promo-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.app-promo-actions .btn{min-height:56px;font-size:11px}
.app-promo-cta{padding-inline:34px !important;font-size:12px !important;box-shadow:0 0 0 1px rgba(255,255,255,.55),0 0 34px rgba(190,170,255,.45)}
.app-promo-hint{margin:16px 0 0;color:#b6bcd2;font-size:13px}
.app-promo-hint .on-ios{display:none}
html.is-ios .app-promo-hint .on-ios{display:inline}
html.is-ios .app-promo-hint .off-ios{display:none}
.app-promo-visual{position:relative;display:grid;place-items:center;min-height:320px}
.app-promo-phone{position:relative;width:min(240px,70%);aspect-ratio:9/18.5;border-radius:36px;padding:14px;
  background:linear-gradient(160deg,#1b1840,#07081a);border:1px solid rgba(201,182,255,.4);
  box-shadow:0 0 0 6px rgba(255,255,255,.03),0 40px 90px rgba(0,0,0,.6),0 0 70px rgba(150,120,255,.35)}
.app-promo-screen{height:100%;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:18px 12px;
  background:radial-gradient(120% 70% at 50% 0%,#2a2060 0%,#0b0820 60%,#04050a 100%)}
.app-promo-screen img{width:86px;height:86px;border-radius:22px;box-shadow:0 0 34px rgba(156,124,242,.6)}
.app-promo-screen b{font-family:var(--f-display);font-weight:500;letter-spacing:.08em;font-size:15px}
.app-promo-screen span{font-size:10px;letter-spacing:.2em;color:#c9b6ff;text-transform:uppercase}
.app-promo-screen ul{display:grid;gap:6px;width:100%;margin-top:8px}
.app-promo-screen li{font-size:11px;padding:7px 8px;border-radius:9px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#dfe3f2}
.app-promo-halo{position:absolute;inset:8% 4%;border-radius:50%;background:radial-gradient(closest-side,rgba(150,120,255,.35),rgba(150,120,255,0));filter:blur(10px);pointer-events:none}
@media (max-width:899px){
  .app-promo-card{grid-template-columns:1fr}
  .app-promo-visual{order:-1;min-height:0}
  .app-promo-phone{width:150px;border-radius:28px;padding:10px}
}
@media (max-width:599px){
  .app-promo-visual{display:none}
  .app-promo-kicker{margin-bottom:14px}
  .app-promo-screen ul{display:none}
  .app-promo-actions .btn{width:100%}
}

/* slim banner */
.app-strip-wrap{position:relative;z-index:1;padding:18px 0}
.app-strip{display:flex;align-items:center;gap:16px;padding:12px 14px 12px 14px;border-radius:18px;
  background:linear-gradient(110deg,rgba(40,30,96,.75),rgba(10,10,30,.85) 55%,rgba(30,40,90,.7));border:1px solid rgba(201,182,255,.35);
  box-shadow:0 12px 40px rgba(0,0,0,.35)}
.app-strip img{width:44px;height:44px;border-radius:12px;flex:0 0 auto;box-shadow:0 0 18px rgba(156,124,242,.5)}
.app-strip-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.35}
.app-strip-copy b{font-family:var(--f-display);font-weight:500;letter-spacing:.06em;font-size:15px;text-transform:uppercase}
.app-strip-copy span{color:#c3c8dc;font-size:13px}
.app-strip .btn{flex:0 0 auto;min-height:44px}
@media (max-width:640px){
  .app-strip{flex-wrap:wrap;gap:10px 12px;padding:12px}
  .app-strip-copy span{font-size:12.5px}
  .app-strip .btn{width:100%;min-height:42px}
}

/* sticky mobile bar */
.app-sticky{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:55;display:flex;align-items:center;gap:10px;
  padding:8px 6px 8px 10px;border-radius:16px;background:rgba(14,10,36,.94);border:1px solid rgba(201,182,255,.45);
  box-shadow:0 16px 44px rgba(0,0,0,.6);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;font-family:var(--f-body)}
.app-sticky[hidden]{display:none}
.app-sticky img{width:38px;height:38px;border-radius:10px;flex:0 0 auto}
.app-sticky p{margin:0;flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.app-sticky p b{font-size:14px;font-weight:600}
.app-sticky p span{font-size:11.5px;color:#c3c8dc}
.app-sticky-cta{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;background:var(--cta);color:#0a0d18;font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.app-sticky-close{width:40px;height:40px;flex:0 0 auto;border:0;background:transparent;color:#d9dcec;font-size:22px;line-height:1;cursor:pointer;border-radius:10px}
.app-sticky-close:focus-visible,.app-sticky-cta:focus-visible{outline:2px solid #b9d9ff;outline-offset:3px}
body.has-app-sticky{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
@media (min-width:900px){.app-sticky{display:none !important}body.has-app-sticky{padding-bottom:0}}

/* never advertise the app inside the installed app */
@media (display-mode: standalone){.app-promo,.app-strip-wrap,.app-sticky{display:none !important}}
html.is-standalone :is(.app-promo,.app-strip-wrap,.app-sticky){display:none !important}
@media (prefers-reduced-motion:reduce){.app-promo-cta{animation:none}}

/* v6 QA fix: bar slides away while an app section, the teaser or the mobile menu is on screen */
.app-sticky{transition:transform .3s ease,opacity .3s ease}
.app-sticky.is-tucked{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.app-sticky{transition:none}}
