/*
 * Shared CTA style for every marketing button (class "cta-glass").
 * Shape and weight follow hiibiza.com (the owner's design reference): solid
 * full pills in light frosted glass with black text, like the top bar (owner,
 * 2026-10-17, after trying purple, black and gold). Never blue.
 * Load after each page's own stylesheet; behaviour lives in js/cta-glass.js.
 *
 * 1. Size: at least 44px tall.
 * 2. Shape: a full pill.
 * 3. Type: Inter Bold (a real 700 face), never synthesised bold.
 * 4. Colour: frosted white glass with a very slow drifting shine.
 * 5. Brand: "PLAY IT" in the label is shown as the logo (js/cta-glass.js).
 * 6. Hover: the arrow turns over 350ms.
 * 7. Light: a glow follows the cursor (--x / --y from js/cta-glass.js).
 * 8. Magnet: the button leans toward the cursor (--tx / --ty / --rot).
 * 9. Press: scale(.97).
 * Touch devices keep only the press; reduced motion keeps only instant states.
 */

@font-face {
  font-family: "PLAYIT Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/NeueHaasGroteskDisplay-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Inter-700.woff2") format("woff2");
}

:root {
  --playit-purple: #7a5af8;
  --playit-purple-2: #9b82ff;
  --playit-purple-deep: #5b3fd6;
  --playit-lilac: #ece7ff;
  --cta-ink: #0b0b0c;
  --cta-ink-2: #2b2b2e;
  --gold-light: #f6d891;
  --gold: #e6b65e;
  --gold-deep: #c48a2c;
  --cream: #fbf4e4;
  --glass-fill: rgba(255, 255, 255, 0.56);
  --glass-line: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(18px) saturate(1.4);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(20, 20, 30, 0.06), 0 14px 32px -18px rgba(20, 20, 40, 0.4);
}

.cta-glass.cta-glass.cta-glass {
  --x: 50%;
  --y: 50%;
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.88) 45%, rgba(255, 255, 255, 0.5) 70%, rgba(255, 255, 255, 0.38))
    0 50% / 260% 100%;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  animation: cta-glass-wave 16s ease-in-out infinite alternate;
  color: var(--cta-ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  font-synthesis: none;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: var(--glass-shadow);
  transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot));
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 260ms ease,
    filter 260ms ease;
  -webkit-tap-highlight-color: transparent;
}
@keyframes cta-glass-wave {
  to {
    background-position: 100% 50%;
  }
}

/* Light variant for quieter actions. */
.cta-glass.cta-glass.cta-glass.cta-glass--soft {
  background: #fff;
  color: var(--cta-ink);
  animation: none;
  box-shadow: none;
}

/* Cursor-following light. */
.cta-glass.cta-glass.cta-glass::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--x) var(--y), rgba(255, 255, 255, 0.9), transparent 62%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.cta-glass.cta-glass.cta-glass::after {
  content: none;
}

/* "PLAY IT" rendered as the logo inside the label. */
.cta-glass .cta-glass__label {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  white-space: nowrap;
}
.cta-glass .cta-glass__logo {
  display: inline-block;
  width: auto;
  height: 1.05em;
  margin-block: -0.1em;
  vertical-align: middle;
  filter: brightness(0);
}
.cta-glass--soft .cta-glass__logo {
  filter: none;
}
.cta-glass .cta-glass__source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Words around the logo match its lettering: heavy display caps, slanted
   at the logo's angle (the logo's own typeface is not part of the project). */
.cta-glass .cta-glass__word {
  display: inline-block;
  font-family: "PLAYIT Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform: skewX(-11deg);
}

/* The arrow (marked by js/cta-glass.js). */
.cta-glass .cta-glass__arrow {
  display: inline-block;
  margin-left: 0.55em;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-glass .cta-glass__arrow[data-dir="right"] {
  transform: rotate(-45deg);
}

.cta-glass.cta-glass.cta-glass:hover,
.cta-glass.cta-glass.cta-glass:focus-visible {
  color: var(--cta-ink);
  filter: none;
  box-shadow: inset 0 1px 0 #fff, 0 18px 38px -18px rgba(20, 20, 40, 0.5);
  transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot));
}
.cta-glass.cta-glass.cta-glass.cta-glass--soft:hover {
  color: var(--cta-ink);
}
.cta-glass.cta-glass.cta-glass:focus-visible {
  outline: 2px solid var(--cta-ink);
  outline-offset: 3px;
}
.cta-glass.cta-glass.cta-glass:active {
  transform: translate3d(var(--tx), var(--ty), 0) rotate(var(--rot)) scale(0.97);
  transition-duration: 90ms;
}

@media (hover: hover) and (pointer: fine) {
  .cta-glass.cta-glass.cta-glass.is-hot::before {
    opacity: 1;
  }
  .cta-glass:hover .cta-glass__arrow,
  .cta-glass:focus-visible .cta-glass__arrow {
    transform: rotate(45deg);
  }
  .cta-glass:hover .cta-glass__arrow[data-dir="right"],
  .cta-glass:focus-visible .cta-glass__arrow[data-dir="right"] {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-glass.cta-glass.cta-glass,
  .cta-glass.cta-glass.cta-glass:hover,
  .cta-glass.cta-glass.cta-glass:active {
    animation: none;
    transform: none;
    transition: none;
  }
  .cta-glass.cta-glass.cta-glass::before {
    display: none;
  }
  .cta-glass .cta-glass__arrow,
  .cta-glass:hover .cta-glass__arrow {
    transition: none;
  }
}

/* Phones: long labels (German) must fit the screen. */
@media (max-width: 480px) {
  .cta-glass.cta-glass.cta-glass {
    max-width: 100%;
    padding-inline: 1.1rem;
    font-size: 0.9rem;
  }
}

/* On black (the bar past the hero, the black menu): a white button. */
body.nav-dark .site-header .cta-glass.cta-glass.cta-glass,
.menu-panel .cta-glass.cta-glass.cta-glass {
  background: #fff;
  color: var(--cta-ink);
  animation: none;
}
body.nav-dark .site-header .cta-glass .cta-glass__logo {
  filter: none;
}


/* Main "Try PLAY IT for free" buttons: a little bigger, with a soft pulse
   (owner, 2026-10-17: "more magnetic and make it pulse a bit"). */
.hero__cta--primary.cta-glass.cta-glass.cta-glass {
  min-height: 56px;
  padding: 0 1.9rem;
  font-size: 0.98rem;
  animation:
    cta-glass-wave 16s ease-in-out infinite alternate,
    cta-pulse 2.6s ease-out infinite;
  transition:
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 260ms ease,
    filter 260ms ease;
}
@keyframes cta-pulse {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 14px 32px -18px rgba(20, 20, 40, 0.4),
      0 0 0 0 rgba(20, 20, 20, 0.16);
  }
  70% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 14px 32px -18px rgba(20, 20, 40, 0.4),
      0 0 0 14px rgba(20, 20, 20, 0);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 14px 32px -18px rgba(20, 20, 40, 0.4),
      0 0 0 0 rgba(20, 20, 20, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cta--primary.cta-glass.cta-glass.cta-glass {
    animation: none;
  }
}

/* Bold, SoundCloud-style label on the main button (owner, 2026-10-17). */
.hero__cta--primary.cta-glass.cta-glass.cta-glass {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
