/* Shared black-glass action (28 Oct 2026, "Edge-lit"): a slab of smoked black glass lit from inside by a thin, soft
   lilac light along its bottom edge (the lilac of the P in Pocket Pixel), a bevelled top edge, an uppercase Barlow
   label and a lilac chevron on a small clear glass key. On hover the light runs the full width and glows brighter. */
.pp-outline,
.hb .hb-btn.hb-btn--edge.pp-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 18px;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  /* the key sits 7px in so its corners follow the slab's (6 + 7 + 1 = 14) */
  padding: 0 7px 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  background-color: rgba(17, 17, 21, .8);
  /* the lilac light, its glow inside the glass, and the smoked shading; kept in a property so the pressed state can
     restore it over home-cta-edge.css's hero `background` shorthands */
  --pp-glass:
    linear-gradient(90deg, rgba(196, 177, 242, 0), #cdbbf6 50%, rgba(196, 177, 242, 0)),
    radial-gradient(58% 95% at 50% 120%, rgba(176, 148, 236, .3), rgba(176, 148, 236, .07) 55%, rgba(176, 148, 236, 0) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .24));
  background-image: var(--pp-glass);
  background-size: 64% 1px, 100% 100%, 100% 100%;
  background-position: 50% 100%, 0 6px, 0 0;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 0 1px rgba(255, 255, 255, .085),
    0 1px 1px rgba(0, 0, 0, .5),
    0 18px 30px -20px rgba(160, 128, 232, .55),
    0 12px 28px -12px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  color: #f4f1fb;
  font: 600 .9375rem/1.2 'Barlow', 'PP Footer Text', Arial, sans-serif;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: none;
  transition-property: background-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
}
/* a button without a key (e.g. "Back to contact") centres its label */
.pp-outline:where(:not(:has(.pp-outline__arrow))) { padding-inline: 24px; }
.pp-outline > span:first-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pp-outline__arrow {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 6px;
  /* clear glass: mostly the slab shows through, with a lit edge and a faint sheen at the top */
  background-color: rgba(255, 255, 255, .015);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #c9b6f4;
  transition: background-color 200ms ease-out;
}
.pp-outline svg,
.hb .hb-btn.hb-btn--edge.pp-outline svg {
  display: block;
  flex: none;
  /* the chevron is drawn in a 24-unit box: 2.6 units is about 2.2px, matching the semibold label */
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
  transition: none;
}
/* style.css colours every hovered link violet; a tapped button keeps its own colour */
.pp-outline:hover,
.hb .hb-btn.hb-btn--edge.pp-outline:hover { color: #f4f1fb; text-decoration: none; }
.pp-outline:focus-visible,
.hb .hb-btn.hb-btn--edge.pp-outline:focus-visible,
.pp-sec a.pp-outline:focus-visible {
  outline: 3px solid #f4f1fb;
  outline-offset: 4px;
  border-radius: 14px;
}
@media (hover: hover) {
  .pp-outline:hover,
  .hb .hb-btn.hb-btn--edge.pp-outline:hover {
    background-color: rgba(24, 24, 29, .84);
    background-size: 100% 1px, 100% 100%, 100% 100%;
    background-position: 50% 100%, 0 0, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .24),
      inset 0 0 0 1px rgba(255, 255, 255, .11),
      0 1px 1px rgba(0, 0, 0, .5),
      0 20px 34px -18px rgba(160, 128, 232, .8),
      0 14px 30px -12px rgba(0, 0, 0, .85);
    color: #fff;
  }
  .pp-outline:hover .pp-outline__arrow { background-color: rgba(255, 255, 255, .045); }
}
/* pressed comes after hover, so it still shows under a mouse pointer */
.pp-outline:active,
.hb .hb-btn.hb-btn--edge.pp-outline:active {
  background-color: rgba(10, 10, 13, .86);
  background-image: var(--pp-glass);
  background-repeat: no-repeat;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 1px 1px rgba(0, 0, 0, .5),
    0 16px 28px -16px rgba(160, 128, 232, .85),
    0 8px 18px -12px rgba(0, 0, 0, .8);
  color: #f4f1fb;
  transform: none;
}
.pp-outline:active .pp-outline__arrow { background-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline {
    transition-property: transform, background-color, background-size, background-position, box-shadow;
    transition-duration: 150ms, 200ms, 450ms, 450ms, 250ms;
    transition-timing-function: ease-out, ease-out, cubic-bezier(.2, 0, 0, 1), cubic-bezier(.2, 0, 0, 1), ease-out;
  }
  .pp-outline:active,
  .hb .hb-btn.hb-btn--edge.pp-outline:active { transform: scale(.96); }
  .pp-outline svg,
  .hb .hb-btn.hb-btn--edge.pp-outline svg { transition: transform 200ms cubic-bezier(.2, 0, 0, 1); }
  @media (hover: hover) {
    .pp-outline:hover svg,
    .hb .hb-btn.hb-btn--edge.pp-outline:hover svg { transform: translateX(2px); }
  }
}


/* ---------- phones ---------- */
@media (max-width: 600px) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline { min-height: 52px; padding: 0 6px 0 20px; gap: 14px; border-radius: 13px; font-size: .875rem; }
  /* 6 + 6 + 1 = 13 */
  .pp-outline__arrow { inline-size: 38px; block-size: 38px; }
  .pp-outline:where(:not(:has(.pp-outline__arrow))) { padding-inline: 20px; }
}
@media (max-width: 359px) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline { padding-inline-start: 16px; gap: 10px; font-size: 13px; letter-spacing: .05em; }
}

/* ---------- fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline { background-color: rgba(20, 20, 24, .95); }
}
@media (prefers-reduced-transparency: reduce) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline { background-color: #151519; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline { background: #000; border-color: #fff; box-shadow: none; }
  .pp-outline__arrow { background: none; box-shadow: none; }
}
@media (forced-colors: active) {
  .pp-outline,
  .hb .hb-btn.hb-btn--edge.pp-outline {
    background: ButtonFace;
    color: LinkText;
    border-color: ButtonText;
    box-shadow: none;
  }
  .pp-outline__arrow { background: none; box-shadow: none; color: LinkText; }
  .pp-outline:focus-visible,
  .hb .hb-btn.hb-btn--edge.pp-outline:focus-visible { outline-color: Highlight; }
}
