/* Playery's home page, with motion (7 Nov 2026). Built on style.css: the same
 * tokens and elements, laid out with more scale, a lit stage for the film,
 * a running ticker of places, a bento of rooms, and things that rise into
 * place as they are scrolled to. Everything is in place at rest; motion only
 * where the browser can tie it to the scroll, and none for reduced motion. */

body.fx {
  --glow: rgba(255, 210, 63, 0.3);
  --glow-2: rgba(255, 69, 58, 0.18);
  --hair: rgba(255, 255, 255, 0.07);
  overflow-x: clip;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) body.fx {
    --glow: rgba(214, 168, 0, 0.2);
    --glow-2: rgba(224, 53, 43, 0.1);
    --hair: rgba(0, 0, 0, 0.06);
  }
}

:root[data-theme='light'] body.fx {
  --glow: rgba(214, 168, 0, 0.2);
  --glow-2: rgba(224, 53, 43, 0.1);
  --hair: rgba(0, 0, 0, 0.06);
}

/* ---------- Hero ---------- */

.fx .hero {
  position: relative;
  padding-block: 96px 40px;
  text-align: center;
  isolation: isolate;
}

.hero-light {
  position: absolute;
  inset: -10% -20% auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 50% 30%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 72% 55%, var(--glow-2), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-light.low {
  inset: auto -20% -20%;
  height: 600px;
}

/* A faint grid on the floor of the stage, like a room's rigging plan. */
.fx .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 35%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 35%, #000, transparent 75%);
  pointer-events: none;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--air) 14%, transparent);
  color: var(--air);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.live i::after,
.tally.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
}

.fx .hero h1 {
  max-width: none;
  margin: 26px auto 0;
  font-size: clamp(46px, 8.4vw, 112px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.fx .hero h1 span {
  display: inline-block;
}

.fx .hero h1 span:last-child {
  background: linear-gradient(92deg, var(--text) 0%, var(--text) 30%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx .hero .lede {
  max-width: 40ch;
  margin-top: 26px;
}

.key.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.key.primary {
  box-shadow: 0 8px 30px -8px var(--glow);
}

.stage {
  position: relative;
  margin-top: 64px;
  perspective: 1600px;
}

/* The film, blurred and large behind itself: the room lit by its own screen. */
.stage .glow {
  position: absolute;
  inset: 8% 6% -4%;
  width: 88%;
  height: 96%;
  object-fit: cover;
  filter: blur(60px) saturate(1.4);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.window {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  background: #232325;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chrome i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a3a3d;
}

.chrome i:nth-child(1) { background: #ff5f57; }
.chrome i:nth-child(2) { background: #febc2e; }
.chrome i:nth-child(3) { background: #28c840; }

.chrome span {
  margin: 0 auto;
  padding-right: 52px;
  color: #a9a9ad;
  font: 500 12px/1 var(--sans);
}

.window video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Ticker ---------- */

.ticker {
  margin-top: 72px;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.track {
  display: flex;
  width: max-content;
  gap: 56px;
}

.track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.track span::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Bento of rooms ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
  margin-top: 52px;
}

.bento figure {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.bento .b-big {
  grid-column: span 2;
  grid-row: span 2;
}

.bento .b-wide {
  grid-column: span 2;
}

.bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s;
}

.bento figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.2);
}

.bento figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 60px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  color: #f2f2f3;
}

.bento strong {
  font-size: 18px;
  font-weight: 600;
}

.bento .b-big strong {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.bento figcaption span {
  color: rgba(242, 242, 243, 0.72);
  font-size: 14px;
}

/* ---------- Features ---------- */

.fx .story .feature {
  gap: 88px;
}

.fx .story h2 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.media {
  position: relative;
  min-width: 0;
}

.media::before {
  content: '';
  position: absolute;
  inset: 10% 6% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(40px);
  opacity: 0.6;
}

.media .picture {
  border-radius: 14px;
}

.tally.pulse {
  position: relative;
}

.tally.pulse::after {
  inset: auto;
  left: -4px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
}

.phone-stage {
  display: grid;
  place-items: center;
}

/* Prepare: what goes in, a line running across, what comes out. */
.convert {
  display: grid;
  gap: 12px;
}

.convert div {
  display: grid;
  grid-template-columns: 1fr minmax(60px, 1.2fr) 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.convert strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.convert span {
  justify-self: end;
  color: var(--accent);
  font: 500 15px/1.2 var(--mono);
}

.convert i {
  position: relative;
  height: 2px;
  border-radius: 1px;
  background: var(--line-2);
  overflow: hidden;
}

.convert i::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent));
}

/* ---------- Spotlight cards ---------- */

.spot > div,
.fx .plan {
  position: relative;
  isolation: isolate;
}

.spot > div::before,
.fx .plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, -300px) var(--my, -300px), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.spot > div:hover::before,
.fx .plan:hover::before {
  opacity: 1;
}

.spot > div {
  transition: transform 0.3s, border-color 0.3s;
}

.spot > div:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* The plan you buy: a light running round its edge. */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.fx .plan.ring {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--angle), color-mix(in srgb, var(--accent) 25%, transparent), var(--accent), color-mix(in srgb, var(--accent) 25%, transparent) 40%) border-box;
}

/* ---------- Download ---------- */

.fx .download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.fx .download .hero-light {
  z-index: -1;
}

.mark {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px var(--glow));
}

.fx .download h2 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.045em;
}

/* ---------- Layout at smaller widths ---------- */

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .fx .story .feature {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento .b-big,
  .bento .b-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .bento .b-big {
    grid-row: span 2;
  }

  .stage {
    margin-top: 44px;
  }

  .chrome {
    height: 26px;
  }

  .chrome i {
    width: 9px;
    height: 9px;
  }

  .convert div {
    grid-template-columns: 1fr 40px 1fr;
    padding: 18px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .track {
    animation: ticker 38s linear infinite;
  }

  @keyframes ticker {
    to {
      transform: translateX(calc(-50% - 28px));
    }
  }

  .live i::after,
  .tally.pulse::after {
    animation: pulse 1.8s ease-out infinite;
  }

  @keyframes pulse {
    0% { opacity: 0.8; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2); }
  }

  .fx .hero h1 span {
    animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .fx .hero h1 span:last-child {
    animation-delay: 0.12s;
  }

  .fx .hero .lede,
  .fx .hero .keys,
  .fx .hero .fine {
    animation: rise-in 0.9s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes rise-in {
    from { transform: translateY(24px); opacity: 0.001; }
  }

  .convert i::after {
    animation: run 2.2s cubic-bezier(0.5, 0, 0.3, 1) infinite;
  }

  .convert div:nth-child(2) i::after { animation-delay: 0.4s; }
  .convert div:nth-child(3) i::after { animation-delay: 0.8s; }

  @keyframes run {
    from { transform: translateX(-100%); }
    to { transform: translateX(260%); }
  }

  .float {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    50% { transform: translateY(-14px) rotate(-1.2deg); }
  }

  .fx .plan.ring {
    animation: spin 6s linear infinite;
  }

  @keyframes spin {
    to { --angle: 360deg; }
  }

  .mark .m1,
  .mark .m2,
  .mark .m3 {
    animation: bar 3.2s cubic-bezier(0.6, 0, 0.2, 1) infinite;
    transform-box: fill-box;
  }

  .mark .m2 { animation-delay: 0.15s; }
  .mark .m3 { animation-delay: 0.3s; }

  @keyframes bar {
    0%, 60%, 100% { transform: translateX(0); }
    75% { transform: translateX(26px); }
  }

  /* Tied to the scroll where the browser can: the window lies back and stands up, things rise into place. */
  @supports (animation-timeline: view()) {
    .window {
      animation: stand linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    @keyframes stand {
      from { transform: rotateX(22deg) scale(0.92); }
      to { transform: none; }
    }

    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }

    @keyframes reveal {
      from { transform: translateY(48px); opacity: 0.001; }
    }

    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    @keyframes rise {
      from { transform: translateY(80px) scale(0.94); opacity: 0.3; }
    }

    .tilt .picture {
      animation: tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }

    @keyframes tilt {
      from { transform: perspective(1400px) rotateY(-14deg); }
      to { transform: none; }
    }
  }
}

/* ---------- Pricing, the width of the page ---------- */

.fx .plans {
  max-width: none;
  gap: 16px;
}

.fx .plan {
  padding: 40px 40px 36px;
  border-radius: 20px;
}

.fx .plan h3 {
  font-size: 20px;
}

.fx .plan .price {
  margin-top: 18px;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.fx .plan ul {
  gap: 14px;
  margin: 32px 0 36px;
  font-size: 16px;
}

.fx .plan .key {
  height: 50px;
  font-size: 17px;
}

.fx .note {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .fx .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fx .plan {
    padding: 28px 24px;
  }
}

/* ---------- Buy, thanks and the key: one column, the hero's light ---------- */

.fx .hero.shop {
  padding-block: 96px 120px;
}

.narrow {
  max-width: 640px;
}

.fx .hero.shop h1 {
  margin-top: 22px;
  font-size: clamp(44px, 7vw, 80px);
}

.buy-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 36px var(--glow));
}

.codebox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 12px 12px 12px 24px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 20px 60px -20px var(--glow);
}

.codebox code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: start;
  font: 500 clamp(18px, 2.6vw, 24px) / 1.3 var(--mono);
  letter-spacing: 0.04em;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: start;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font: 600 14px/1 var(--mono);
}

.steps b {
  font-weight: 600;
}

.steps span {
  color: var(--muted);
  font-size: 15px;
}

.findform {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  text-align: start;
}

.findform label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.findform input {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text);
  font: 400 16px/1 var(--sans);
}

.findform input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.findform .key {
  margin-top: 16px;
  height: 50px;
}

.refused {
  margin: 8px 0 0;
  color: var(--air);
  font-size: 15px;
}

.fx .hero.shop .fine a {
  color: var(--text);
}
