/* Hero buttons adapted from Uiverse.io by yaasiinaxmed.
   Shared by the homepage, its Design Component source and the mockup.
   Neither button fills with the other's colour and the text never changes, so the
   two cannot turn into each other. Both text colours stay readable on their fills. */
.hero .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  gap: 12px;
}
.hero .button-row > .button {
  --hero-button-fill: color-mix(in srgb, var(--text) 12%, transparent);
  --hero-fill-x: 100%;
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 9px;
  /* Frosted plate: the field behind the hero shows through, with a light edge on top. */
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--raise) 72%, transparent),
      color-mix(in srgb, var(--surface) 34%, transparent) 46%,
      color-mix(in srgb, var(--bg) 18%, transparent));
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .5),
    inset 0 -12px 16px -14px rgb(255 255 255 / .35);
  color: var(--text);
  font: 500 14px/1.6 var(--sans);
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  opacity: 1;
  cursor: pointer;
}
/* See the features arrives from the left. The trial button still arrives from the right. */
.hero .button-row > .button[href*="features"] { --hero-fill-x: -150%; }
.hero .button-row > .button--primary {
  --hero-button-fill: var(--signal);
  background: var(--btn-bg);
  background-clip: padding-box;
  color: var(--btn-text);
}
.hero .button-row > .button::before {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--hero-fill-x);
  z-index: -1;
  width: 150%;
  min-height: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hero-button-fill);
  pointer-events: none;
  transition: top .3s ease, left .3s ease, transform .3s ease;
}
.hero .button-row > .button:focus-visible::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* A touch screen keeps :hover after a tap, so it gets the press state in mobile.css instead. */
@media (hover: hover) {
  .hero .button-row > .button:hover::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
/* Touch and pen: js/homepage-v2.js sets data-press and --press-x / --press-y, and the
   same fill blooms out from under the finger. It holds while the next page loads;
   a scroll or a lift without a tap lets it go back to the corner, as a mouse-out does.
   It replaces the press dim in mobile.css. The button itself does not move (base.css). */
.hero .button-row > .button:active,
.hero .button-row > .button[data-press] { opacity: 1; }
.hero .button-row > .button:not(.button--primary)[data-press] { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.hero .button-row > .button[data-press]::before {
  top: var(--press-y, 50%);
  left: var(--press-x, 50%);
  transform: translate(-50%, -50%) scale(1.5);
  transition: none;
  animation: hero-press-bloom .34s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes hero-press-bloom {
  from { transform: translate(-50%, -50%) scale(0); }
}
html.xomea-motion-paused .hero .button-row > .button[data-press]::before { animation: none; }
.hero .button-row > .button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .hero .button-row { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
