/* v40m1b download page — rose-gold instrument bay, Web + H5.
   Loaded only on /download so site.css (and critical CSS) stay unchanged. */
.download-shell{position:relative;display:grid;gap:28px;padding:28px 0 72px}
.download-stage{position:relative;isolation:isolate}
.download-stage::before{
  content:"";position:absolute;inset:-28px -12px 8px;z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(rgba(215,185,143,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(215,185,143,.055) 1px,transparent 1px),
    radial-gradient(ellipse 70% 46% at 50% -4%,rgba(164,53,81,.34),transparent 68%);
  background-size:28px 28px,28px 28px,100% 100%;
  -webkit-mask-image:linear-gradient(180deg,#000 0 62%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0 62%,transparent 100%);
}

.download-frame{
  position:relative;display:grid;justify-items:center;text-align:center;gap:14px;
  padding:44px 28px 40px;border:1px solid rgba(215,185,143,.26);
  background:
    linear-gradient(180deg,rgba(42,20,30,.55),rgba(16,10,13,.0) 36%),
    linear-gradient(180deg,#1a1015,#120c10);
  border-radius:2px;overflow:hidden;
}
.download-frame::after{
  content:"";position:absolute;left:18px;right:18px;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(215,185,143,.7),transparent);
  pointer-events:none;
}
.download-bracket{position:absolute;width:18px;height:18px;pointer-events:none;color:#d7b98f}
.download-bracket-tl{top:-1px;left:-1px;border-top:2px solid currentColor;border-left:2px solid currentColor}
.download-bracket-tr{top:-1px;right:-1px;border-top:2px solid currentColor;border-right:2px solid currentColor}
.download-bracket-bl{bottom:-1px;left:-1px;border-bottom:2px solid currentColor;border-left:2px solid currentColor}
.download-bracket-br{bottom:-1px;right:-1px;border-bottom:2px solid currentColor;border-right:2px solid currentColor}

.download-icon-orbit{position:relative;width:128px;height:128px;display:grid;place-items:center}
.download-icon-orbit::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 200deg,transparent 0 58%,rgba(215,185,143,.9) 72%,transparent 86% 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 1.6px),#000 calc(100% - 1px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 1.6px),#000 calc(100% - 1px));
  animation:download-orbit 16s linear infinite;
}
.download-icon-orbit::after{
  content:"";position:absolute;inset:22px;border-radius:50%;
  background:radial-gradient(circle,rgba(196,70,110,.5),transparent 72%);
  filter:blur(6px);z-index:-1;
}
@keyframes download-orbit{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .download-icon-orbit::before{animation:none;opacity:.8}
}
.download-shell .download-icon{
  position:relative;z-index:1;width:88px;height:88px;border-radius:22px;
  box-shadow:0 0 0 1px rgba(215,185,143,.5),0 14px 36px rgba(0,0,0,.5);
}

.download-kicker{
  margin:2px 0 0;font-size:11px;font-weight:600;letter-spacing:.28em;
  color:#d7b98f;text-indent:.28em;
}
.download-shell h1{
  font-size:clamp(28px,4.4vw,42px);font-weight:650;letter-spacing:.04em;
  line-height:1.2;color:#f7f0ed;
}
.download-lead{
  max-width:38em;color:#c4b5bd;font-size:15px;line-height:1.75;
}
.download-nowrap{white-space:nowrap}

.download-rails{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}
.download-shell .download-rail{
  position:relative;display:grid;align-content:start;gap:10px;
  padding:22px 22px 24px;border:1px solid #3d2c38;border-radius:2px;
  background:linear-gradient(180deg,#1c1419,#161013);
}
.download-shell .download-rail::before{
  content:"";position:absolute;top:0;left:18px;right:40%;height:2px;
  background:linear-gradient(90deg,#d7b98f,transparent);
}
.download-rail-kicker{
  margin:4px 0 0;font-size:11px;font-weight:600;letter-spacing:.22em;color:#d7b98f;
}
.download-shell h2{font-size:20px;font-weight:650;letter-spacing:.02em;margin:0;color:#f7f0ed}
.download-rail > p{color:#c4b5bd;font-size:14px;line-height:1.7;margin:0}
.download-shell .download-apk,
.download-shell .button.primary{
  justify-self:start;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:48px;padding:0 22px;margin-top:8px;
  border-radius:2px;border:1px solid rgba(239,178,193,.35);
  background:linear-gradient(180deg,#c2417a,#a43551);
  color:#fff7f9;font-weight:750;letter-spacing:.02em;
  box-shadow:0 8px 24px rgba(164,53,81,.28);
}
.download-shell .download-apk:hover,
.download-shell .button.primary:hover{background:linear-gradient(180deg,#d1558c,#b43d5e);color:#fff}
.download-apk-chip{
  font-size:10px;font-weight:800;letter-spacing:.14em;
  padding:3px 7px;border:1px solid rgba(255,255,255,.35);border-radius:2px;line-height:1;
}

.download-shell .download-steps{list-style:none;padding:0;margin:10px 0 0;display:grid;grid-template-columns:1fr;gap:10px}
.download-steps li{margin:0}
.download-shell .guide-card{
  margin:0;display:grid;grid-template-columns:72px 1fr;align-items:center;gap:12px;
  background:#140e12;border:1px solid #3d2c38;border-radius:2px;overflow:hidden;
}
.download-shell .guide-illus{
  min-height:72px;display:grid;place-items:center;
  background:
    linear-gradient(180deg,rgba(215,185,143,.08),transparent 60%),
    #1a1015;
  font-size:11px;font-weight:700;letter-spacing:.08em;color:#efb2c1;
}
.download-shell .guide-safari,
.download-shell .guide-share,
.download-shell .guide-add{
  padding:0;border:0;background:none;color:inherit;border-radius:0;
}
.download-glyph{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.download-shell .guide-card figcaption{
  padding:10px 12px 10px 0;color:#c4b5bd;font-size:13px;line-height:1.55;text-align:left;
}
.download-step-index{display:block;font-size:10px;font-weight:700;letter-spacing:.16em;color:#d7b98f;margin-bottom:2px}

.download-shell .fine-print{margin:4px 2px 0;color:#8f7e86;font-size:12px;line-height:1.7}

/* H5 / narrow: full-bleed stage, single column, larger tap targets */
@media (max-width:800px){
  .download-rails{grid-template-columns:1fr}
  .download-frame{padding:32px 18px 28px}
  .download-icon-orbit{width:112px;height:112px}
  .download-shell .download-icon{width:80px;height:80px;border-radius:20px}
}
@media (max-width:650px){
  /* Reserve space for the sticky .mobile-nav (58px + safe area) plus a little
     breathing room so the age footnote clears the bar when scrolled to the
     end of the download block. Desktop is unchanged (no sticky nav). */
  .download-shell{padding:16px 0 calc(96px + env(safe-area-inset-bottom, 0px));gap:20px}
  .download-shell .fine-print{scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
  .wrap.download-shell,
  .download-shell.page-content{width:min(calc(100% - 32px),var(--max))}
  .download-stage::before{inset:-16px -8px 0;background-size:22px 22px,22px 22px,100% 100%}
  .download-frame{padding:28px 16px 24px}
  .download-shell h1{font-size:28px;letter-spacing:.03em}
  .download-lead{font-size:14px}
  .download-shell .download-rail{padding:18px 16px 20px}
  .download-shell .download-apk,
  .download-shell .button.primary{width:100%;justify-self:stretch;min-height:52px;border-radius:2px}
  .download-shell .guide-card{grid-template-columns:64px 1fr}
  .download-shell .guide-illus{min-height:64px}
}
