/* ==========================================================================
   Waterbounce – styles
   ========================================================================== */

:root {
  /* Pure black so the video edges blend invisibly into the page */
  --black: #000000;
  --dim: #8C8A99;
  --text: #FFFFFF;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Stage: the whole screen is the checkout link ---------- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: calc(clamp(1rem, 6vh, 3.75rem) + var(--safe-bottom));
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  background: var(--black) url("../img/hero-poster.jpg") center / contain no-repeat;
  -webkit-tap-highlight-color: transparent;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Portrait: the visuals sit in the middle and the sides are black, so scale
   the video wider than the screen instead of letting it shrink to a strip. */
@media (orientation: portrait) {
  .stage { background-size: min(180vw, 177.78vh) auto; }
  .stage-video {
    left: 50%;
    width: min(180vw, 177.78vh);
    transform: translateX(-50%);
  }
}

/* ---------- Buy button: transparent, with a light sweeping round the edge ---------- */
@property --cta-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.stage-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.7rem, 2.5vw, 1rem);
  padding: clamp(0.55rem, 1.2vh, 0.7rem) clamp(1.15rem, 4vw, 1.6rem);
  border-radius: 999px;
  line-height: 1.2;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

/* Border: hairline plus a bright highlight travelling around it */
.stage-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--cta-angle),
    rgb(255 255 255 / 0.35) 0deg,
    rgb(255 255 255 / 0.35) 250deg,
    #fff 300deg,
    rgb(255 255 255 / 0.35) 350deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.cta-label {
  font-weight: 700;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
  letter-spacing: 0.01em;
}

.cta-price {
  padding-left: clamp(0.7rem, 2.5vw, 1rem);
  border-left: 1px solid rgb(255 255 255 / 0.3);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
}

/* ---------- Launch price note below the button ---------- */
.stage-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.5rem;
  margin-top: 0.7rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.8);
}

/* Phones: stack the note lines and leave room for the centred legal links */
@media (max-width: 600px) {
  .stage { padding-bottom: calc(3.25rem + var(--safe-bottom)); }
  .stage-note { flex-direction: column; align-items: center; }
  .note-sep { display: none; }
}

/* The whole screen is clickable, so the button reacts to hover anywhere. */
.stage:hover .stage-cta {
  background: rgb(255 255 255 / 0.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 0 32px rgb(255 255 255 / 0.18);
}
.stage:active .stage-cta { transform: scale(0.97); }

/* Focus ring on the button instead of the screen edge */
.stage:focus-visible { outline: none; }
.stage:focus-visible .stage-cta {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .stage-cta, .stage-note { animation: cta-in 0.8s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .stage-cta::before { animation: cta-shine 4s linear infinite; }
}
@keyframes cta-in {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes cta-shine {
  to { --cta-angle: 360deg; }
}

/* ---------- Legal links: subtle but visible ---------- */
.legal-links {
  position: fixed;
  right: 1rem;
  bottom: calc(0.75rem + var(--safe-bottom));
  z-index: 10;
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
}
.legal-links a {
  color: var(--dim);
  text-decoration: none;
  padding: 0.25rem 0;
}
.legal-links a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 600px) {
  .legal-links { right: 50%; transform: translateX(50%); }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem calc(4rem + var(--safe-bottom));
}
.legal .legal-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--dim);
  font-size: 0.9rem;
  text-decoration: none;
}
.legal .legal-back:hover { color: var(--text); }
.legal h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}
.legal p, .legal address { margin: 0 0 1rem; }
.legal address { font-style: normal; }
.legal a { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
