/* A reserved button slot keeps the label and its neighbours stable on hover. */
.apple-download {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; vertical-align: middle;
}
.apple-download::before {
  content: ""; display: inline-block; width: 1em; height: 1.12em; flex: none;
  background-color: currentColor; -webkit-mask: url("/assets/apple.svg") center / contain no-repeat;
  mask: url("/assets/apple.svg") center / contain no-repeat;
  opacity: 0; transform: translateY(4px) scale(.78);
  transition: transform .18s cubic-bezier(.22,.8,.32,1), opacity .15s;
}
@media (hover:hover) {
  .apple-download:hover::before { opacity: 1; transform: none; }
}
.apple-download:focus-visible::before,.apple-download:active::before { opacity: 1; transform: none; }
@media (hover:none) { .apple-download::before { opacity: .88; transform: none; } }
.pull-refresh {
  --pull-opacity: 0; --pull-offset: -56px; z-index: 300; position: fixed;
  top: max(8px,env(safe-area-inset-top)); left: 50%; width: 39px; height: 39px;
  border-radius: 50%; pointer-events: none; display: grid; place-items: center;
  background: #201e25; border: 1px solid #ffffff22; box-shadow: 0 5px 20px #0004;
  opacity: var(--pull-opacity); transform: translate3d(-50%,var(--pull-offset),0);
}
.pull-refresh[data-state="rest"] { transition: transform .22s ease-in, opacity .16s; }
.pull-wheel { display: block; position: relative; width: 20px; height: 20px; transform: rotate(var(--turn,0deg)); }
.pull-wheel i {
  position: absolute; top: 0; left: calc(50% - 1.3px); height: 5.8px; width: 2.6px; border-radius: 3px;
  background: #e3dce8; opacity: calc(.22 + var(--spoke)*.10);
  transform-origin: 50% 10px; transform: rotate(calc(var(--spoke)*45deg));
}
.pull-refresh[data-armed] .pull-wheel i { background: #CD95EB; }
.pull-refresh[data-state="refresh"] .pull-wheel { animation: refresh-turn .64s steps(8) infinite; }
@keyframes refresh-turn { to { transform: rotate(calc(var(--turn,0deg) + 360deg)); } }
@media(prefers-reduced-motion:reduce) {
  .apple-download::before, .pull-refresh, .pull-wheel { transition:none!important;animation:none!important; }
}
@media(pointer:coarse) {
  .studio-product .studio-masthead #language button,.header #language button { min-height: 34px; min-width: 36px; }
  .landing-app .demo-controls button { min-width: 44px; height: 40px; touch-action: manipulation; }
}
.checkout-phone-note { display:none; }
@media (max-width:700px),(max-width:900px) and (pointer:coarse) { .checkout-phone-note { display:block; } }
.help-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px;margin:24px 0; }
.help-grid article { padding:22px;border:1px solid #ffffff20;border-radius:18px;background:#141417; }
[data-header-dissolve]:not(:focus-within) { opacity:var(--header-dissolve); }
[data-header-dissolve="hidden"]:not(:focus-within) { pointer-events:none; }
html:not(.studio-product) body:not(.story-home) > .header { position:sticky;top:0;background:#0b0b0d;z-index:20; }

/* The label sets the button size; the icon occupies the same centered cell. */
:is(.wallet-face, .apple-face), .header .get-link > .wallet-face {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}
.wallet-face { --action-icon: url(/assets/wallet.svg); }
.apple-face { --action-icon: url(/assets/apple.svg); }
:is(.wallet-face, .apple-face)::before {
  content: "";
  grid-area: 1 / 1;
  width: 1.28em;
  height: 1.28em;
  background: currentColor;
  -webkit-mask: var(--action-icon) center / contain no-repeat;
  mask: var(--action-icon) center / contain no-repeat;
  opacity: var(--action-icon-opacity, 0);
  transform: scale(var(--action-icon-scale, .8));
  transition: opacity .17s ease, transform .22s cubic-bezier(.2,.75,.25,1);
}
:is(.wallet-label, .apple-label) {
  grid-area: 1 / 1;
  opacity: var(--action-label-opacity, 1);
  transition: opacity .15s ease;
}
:is(a,button):focus-visible {
  --action-icon-opacity: 1;
  --action-icon-scale: 1;
  --action-label-opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  :is(a,button):hover {
    --action-icon-opacity: 1;
    --action-icon-scale: 1;
    --action-label-opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.wallet-face, .apple-face)::before, :is(.wallet-label, .apple-label) { transition: none; }
}
