/* Opt-in homepage CTA reflection. Geometry and keyboard outline stay in hp-button. */
.hp-main .hp-button-reflect { position:relative; isolation:isolate; }
/* Hero-only interior layer: existing border pseudos (including the glass experiment)
   retain ownership of the edge. Negative stacking stays inside the isolated button,
   above its background and below its text. No extra pointer tracker or hit surface. */
.hp-main { --cta-diffusion-intensity:.065; }
#editor[data-cta-diffusion="off"] { --cta-diffusion-intensity:0; }
#editor[data-cta-diffusion="soft"] { --cta-diffusion-intensity:.04; }
#editor[data-cta-diffusion="defined"] { --cta-diffusion-intensity:.09; }
.hp-main .hp-button-reflect > .hp-cta-diffusion {
  position:absolute;inset:-1px;z-index:-1;pointer-events:none;
  border:1px solid transparent;border-radius:inherit;background-clip:padding-box;
  background-image:radial-gradient(ellipse 120px 76px at var(--cta-pointer-x,50%) var(--cta-pointer-y,50%),rgba(239,245,252,.8),rgba(216,230,244,.24) 42%,transparent 82%);
  opacity:0;transition:opacity 120ms ease-out;
}
.hp-main .hp-button-reflect[data-cta-reflecting="true"] > .hp-cta-diffusion {
  opacity:calc(var(--cta-fill-strength,0) * var(--cta-diffusion-intensity) * (.65 + var(--cta-reflection-opacity,0) * .35));
}
.hp-main .hp-button-reflect:is(:disabled,[aria-disabled="true"]) > .hp-cta-diffusion { opacity:0; }
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce) {
  .hp-main .hp-button-reflect > .hp-cta-diffusion { display:none;transition:none; }
}
@supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
  .hp-main .hp-button-reflect::before {
    content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
    pointer-events:none;
    background:radial-gradient(44px circle at var(--cta-pointer-x,50%) var(--cta-pointer-y,50%),#f1f6fc 0%,rgba(220,232,245,.6) 30%,transparent 75%);
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor; mask-composite:exclude;
    opacity:var(--cta-reflection-opacity,0); transition:opacity 120ms ease-out;
  }
}
@media(hover:hover) and (pointer:fine) {
  .hp-main .hp-button-reflect:hover { background:#202d39; border-color:var(--hp-control-edge); }
  .hp-main .hp-button-reflect.hp-button-secondary:hover { border-color:#596471; }
}
.hp-main .hp-button-reflect:active:not(:disabled) { background:#1b2a36; }
.hp-main .hp-button-reflect:is(:disabled,[aria-disabled=true])::before { opacity:0; }
@media(hover:none),(pointer:coarse) {
  .hp-main .hp-button-reflect:hover { background:var(--hp-control-bg); border-color:var(--hp-control-edge); }
  .hp-main .hp-button-reflect.hp-button-secondary:hover { background:#111820; border-color:#596471; }
  .hp-main .hp-button-reflect:active:not(:disabled) { background:#1b2a36; }
  .hp-main .hp-button-reflect::before { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  .hp-main .hp-button-reflect::before { display:none; transition:none; }
  .hp-main .hp-button-reflect:hover { border-color:#95a4b4; }
}
@supports not ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
  .hp-main .hp-button-reflect > .hp-cta-diffusion { display:none; }
  .hp-main .hp-button-reflect:hover { border-color:#95a4b4; }
}

/* Pencil hover can coexist with the iPad's primary coarse touch pointer. */
@media(prefers-reduced-motion:no-preference) and (forced-colors:none) {
 .hp-main .hp-button-reflect[data-cta-pen-hover]::before,
 .hp-main .hp-button-reflect[data-cta-pen-hover] > .hp-cta-diffusion {display:block;}
}

/* Pencil hover does not depend on the primary touch pointer. */
.hp-main .hp-button-reflect[data-plm-pen-hover] { background:#202d39; border-color:var(--hp-control-edge); }
.hp-main .hp-button-reflect.hp-button-secondary[data-plm-pen-hover] { border-color:#596471; }
