/* =============================================================
   PLAYBOOK LANDING — aligned with referral-program + Deezer case study
   Typography: Sohne (body/display), Tomato Grotesk (hero),
               Nord (labels), Sohne (misc)
   ============================================================= */

.pb-page {
  --pb-brand: var(--accent);
  --pb-brand-rgb: 216, 252, 20;
  --pb-bg-base: #08090a;
  --pb-bg-raised: #0c0d0f;
  --pb-bg-elevated: #101114;
  --pb-border: rgba(255, 255, 255, 0.06);
  --pb-border-strong: rgba(255, 255, 255, 0.12);
  --pb-gradient: linear-gradient(270deg, #02d1ad 7.4%, #00e950 33.85%, #1292fe 69.74%, #e08af4 101.85%);
}

/* Shared layout shell */
.pb-shell {
  max-width: var(--size-container);
  margin: 0 auto;
  padding: 0 2.25rem;
}

/* Gradient text utility */
.pb-gradient-text {
  background: var(--pb-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* =============================================================
   HERO — two-column (left copy + right form) — referral pattern
   ============================================================= */
.pb-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(42% 34% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 72%),
    var(--pb-bg-base);
}

.pb-hero__grid {
  position: relative;
  z-index: 10;
  max-width: var(--size-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 12rem 2.25rem 6rem;
}

/* Decorative elements */
.pb-hero__deco {
  position: absolute;
  pointer-events: none;
}
.pb-hero__deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-hero__deco--coin {
  left: 3rem;
  top: 18rem;
  width: 6rem;
  height: 6rem;
  z-index: 11;
  opacity: 0.82;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.28));
  animation: pb-float 6s ease-in-out infinite;
}
.pb-hero__deco--crystal {
  right: -3rem;
  top: 6rem;
  width: 10rem;
  height: 10rem;
  z-index: 5;
  opacity: 0.28;
  mix-blend-mode: lighten;
  animation: pb-float 8s ease-in-out infinite reverse;
}
@keyframes pb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
}

/* Hero left */
.pb-hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.pb-hero__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  line-height: 1.02;
  color: var(--accent);
}

.pb-hero__heading {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 5.75rem;
  line-height: 0.92;
  letter-spacing: -0.17rem;
  color: var(--fg);
  margin-top: 1rem;
  max-width: 100%;
  text-wrap: balance;
}
.pb-hero__heading > span { display: block; }

.pb-hero__subtitle {
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray);
  margin-top: 1.5rem;
  max-width: 30rem;
}

/* Feature checklist */
.pb-hero__features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0;
  list-style: none;
}
.pb-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--gray-light);
}
.pb-hero__feature-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: rgba(216, 252, 20, 0.12);
  color: var(--accent);
}

.pb-hero__badge {
  margin-top: 2.25rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid rgba(216, 252, 20, 0.2);
  border-radius: 100px;
  background: rgba(216, 252, 20, 0.05);
  font-family: 'Nord', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pb-hero__badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem rgba(216, 252, 20, 0.6);
  animation: pb-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes pb-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* Hero form card */
.pb-hero__form-wrap {
  min-width: 0;
  padding: 2.25rem 2.25rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid #1b1c1d;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #111213 0%, #0a0b0c 100%);
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Hero responsive */
@media (max-width: 991px) {
  .pb-hero__deco { display: none; }
  .pb-hero__grid {
    grid-template-columns: 1fr;
    padding: 10rem 1.5rem 4rem;
    gap: 3rem;
  }
  .pb-hero__heading { font-size: 4.5rem; letter-spacing: -0.135rem; }
}
@media (max-width: 767px) {
  .pb-hero__grid { padding: 8rem 1.25rem 3rem; gap: 2.5rem; }
  .pb-hero__eyebrow { font-size: 0.75rem; letter-spacing: 0.06rem; }
  .pb-hero__heading { font-size: clamp(2.75rem, 11vw, 3.5rem); letter-spacing: -0.06rem; }
  .pb-hero__subtitle { font-size: 1rem; line-height: 1.6; }
  .pb-hero__badge { font-size: 0.6875rem; padding: 0.5rem 1rem; }
  .pb-hero__form-wrap { padding: 1.75rem 1.5rem 1.5rem; }
}

/* =============================================================
   FORM
   ============================================================= */
.pb-form__form {
  position: relative;
}

.pb-form__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.pb-form__step { display: none; }
.pb-form__step.is-active {
  display: block;
  animation: pb-fade-in 320ms ease;
}
@keyframes pb-fade-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

.pb-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pb-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pb-form__label {
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
}

.pb-form__required {
  color: var(--accent);
}

.pb-form__input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #1b1c1d;
  border-radius: 0.375rem;
  background: #0e0f10;
  color: var(--fg);
  font-family: 'Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.pb-form__input::placeholder {
  color: #434345;
}
.pb-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(216, 252, 20, 0.08);
}
.pb-form__input.is-invalid {
  border-color: #f8280d;
  box-shadow: 0 0 0 3px rgba(248, 40, 13, 0.08);
}

.pb-form__status {
  margin: 1rem 0 0;
  font-family: 'Sohne', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gray);
  min-height: 1.25rem;
}
.pb-form__status[data-tone="error"] { color: #ff7c6c; }

.pb-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.pb-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.25rem;
  background: var(--accent);
  color: #000;
  font-family: 'Sohne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03rem;
  line-height: 1.02;
  border: none;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}
.pb-form__btn:hover,
.pb-form__btn:focus-visible {
  background: #e5ff4d;
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.75rem rgba(216, 252, 20, 0.22);
  outline: none;
}
.pb-form__btn:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

.pb-form__note {
  margin-top: 1rem;
  font-family: 'Sohne', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gray);
  text-align: center;
}

/* Success */
.pb-form__step--success.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  animation: pb-fade-in 400ms ease;
}
.pb-form__success-icon { margin-bottom: 1.25rem; }
.pb-form__success-title {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 0.9;
  letter-spacing: -0.065rem;
  color: var(--fg);
}
.pb-form__success-desc {
  margin-top: 1rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 24rem;
}
.pb-form__success-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--pb-border-strong);
  color: var(--fg);
  font-family: 'Sohne', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 220ms ease, transform 220ms ease;
}
.pb-form__success-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .pb-form__input { padding: 0.875rem 1rem; }
  .pb-form__btn { width: 100%; }
}

/* =============================================================
   LOGOS STRIP
   ============================================================= */
.pb-logos {
  padding: 5rem 0 6rem;
  background: var(--pb-bg-base);
  border-top: 1px solid var(--pb-border);
}
.pb-logos__label {
  text-align: center;
  font-family: 'Nord', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin-bottom: 2.75rem;
}
.pb-logos__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.pb-logos__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: pb-marquee 58s linear infinite;
}
.pb-logos__track img {
  flex-shrink: 0;
  height: 1.625rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.38;
}
.pb-logos__track img:is(
  [src*="miniclip.svg"],
  [src*="vsco.svg"],
  [src*="dazn.svg"],
  [src*="rsg-group.svg"]
) {
  height: 1.95rem;
}
.pb-logos__track img[src*="rsg-group.svg"] {
  height: 2.45rem;
}
@media (max-width: 767px) {
  .pb-logos__track {
    animation-duration: 76s;
  }
}
@keyframes pb-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================================
   METRICS STRIP (Deezer-style)
   ============================================================= */
.pb-metrics {
  padding: 5rem 0;
  background: var(--pb-bg-raised);
  border-top: 1px solid var(--pb-border);
  border-bottom: 1px solid var(--pb-border);
}
.pb-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pb-metric {
  position: relative;
  padding-left: 2rem;
}
.pb-metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--pb-brand);
  border-radius: 2px;
  opacity: 0.4;
}
.pb-metric--hi::before { opacity: 0.9; }
.pb-metric--gradient::before {
  background: var(--pb-gradient);
  opacity: 0.9;
}
.pb-metric__value {
  font-family: 'Tomato Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.08rem;
  color: var(--fg);
}
.pb-metric--hi .pb-metric__value { color: var(--accent); }
.pb-metric--gradient .pb-metric__value {
  background: var(--pb-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pb-metric__label {
  margin-top: 0.875rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--gray);
  max-width: 18rem;
}

@media (max-width: 991px) {
  .pb-metrics { padding: 3.5rem 0; }
  .pb-metrics__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =============================================================
   INSIDE — two-column narrative (Deezer three-column pattern)
   ============================================================= */
.pb-inside {
  padding: 6rem 0;
  background: var(--pb-bg-base);
}
.pb-inside__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}

.pb-inside__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--accent);
}
.pb-inside__title {
  margin-top: 1rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 3vw, 3.125rem);
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  text-wrap: balance;
}
.pb-inside__title > span { display: block; }
.pb-inside__copy {
  margin-top: 1.25rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-light);
  max-width: 26rem;
}

/* Chapters list */
.pb-inside__chapters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pb-chapter {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem;
  border: 1px solid var(--pb-border);
  border-radius: 0.625rem;
  background: var(--pb-bg-raised);
  transition: border-color 260ms ease, transform 260ms ease, background-color 260ms ease;
}
.pb-chapter:hover {
  transform: translateY(-2px);
  border-color: var(--pb-border-strong);
  background: var(--pb-bg-elevated);
}
.pb-chapter__num {
  font-family: 'Nord', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 0.25rem;
  min-width: 2.25rem;
}
.pb-chapter__body {
  min-width: 0;
}
.pb-chapter__title {
  font-family: 'Sohne', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.375rem;
}
.pb-chapter__desc {
  font-family: 'Sohne', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gray);
}

.pb-chapter--bonus {
  background:
    linear-gradient(160deg, rgba(216, 252, 20, 0.08), rgba(216, 252, 20, 0)),
    var(--pb-bg-raised);
  border-color: rgba(216, 252, 20, 0.28);
}
.pb-chapter--bonus:hover {
  border-color: rgba(216, 252, 20, 0.5);
}

@media (max-width: 991px) {
  .pb-inside { padding: 4.5rem 0; }
  .pb-inside__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 767px) {
  .pb-inside__chapters { grid-template-columns: 1fr; }
  .pb-chapter { padding: 1.25rem; }
}

/* =============================================================
   INSIGHT + AUDIENCE — Linear-style editorial layout
   ============================================================= */
.pb-insight {
  position: relative;
  padding: 8rem 0 7rem;
  background: var(--pb-bg-base);
  border-top: 1px solid var(--pb-border);
  border-bottom: 1px solid var(--pb-border);
}
.pb-insight__shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* Two-tone left-aligned headline */
.pb-insight__headline {
  max-width: 82rem;
  margin: 0 0 6rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.pb-insight__headline-lead {
  color: var(--fg);
}
.pb-insight__headline-muted {
  color: var(--gray);
}
.pb-insight__headline-lead::after {
  content: ' ';
}
.pb-insight__headline-break {
  display: block;
}

/* 3-column grid with FIG captions + SVG art */
.pb-insight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  border-top: 1px solid var(--pb-border);
  padding-top: 2rem;
}
.pb-insight__item {
  display: flex;
  flex-direction: column;
}
.pb-insight__fig {
  font-family: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin: 0 0 2.5rem;
}
.pb-insight__art {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 2.75rem;
  color: #ea9a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-insight__art svg {
  width: 60%;
  height: 100%;
  max-height: 8rem;
}
.pb-insight__art svg [stroke] { stroke: currentColor; }
.pb-insight__art svg g { opacity: 1; }
.pb-insight__item-title {
  font-family: 'Sohne', sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 0.75rem;
}
.pb-insight__item-desc {
  font-family: 'Sohne', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 991px) {
  .pb-insight { padding: 5rem 0 4.5rem; }
  .pb-insight__headline { margin-bottom: 4rem; }
  .pb-insight__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .pb-insight__art { aspect-ratio: auto; height: 7rem; margin-bottom: 2rem; }
  .pb-insight__fig { margin-bottom: 2rem; }
}
@media (max-width: 767px) {
  .pb-insight { padding: 4rem 0; }
}

/* =============================================================
   CTA BANNER (referral style)
   ============================================================= */
.pb-cta {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--pb-border);
}
.pb-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 0;
  background:
    radial-gradient(60% 100% at 80% 50%, rgba(216, 252, 20, 0.05) 0%, rgba(216, 252, 20, 0) 72%),
    var(--pb-bg-base);
}
.pb-cta__eyebrow {
  font-family: 'Nord', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.065rem;
  color: var(--gray);
}
.pb-cta__title {
  margin-top: 0.75rem;
  font-family: 'Sohne', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.97;
  letter-spacing: -0.065rem;
  color: var(--fg);
  max-width: 28rem;
  text-wrap: balance;
}
.pb-cta__title > span { display: block; }
.pb-cta__subtitle {
  margin-top: 0.875rem;
  font-family: 'Sohne', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 30rem;
}
.pb-cta__btn {
  flex: 0 0 auto;
  min-width: 13rem;
  height: 3rem;
}

@media (max-width: 991px) {
  .pb-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 0;
    gap: 2rem;
  }
}
@media (max-width: 767px) {
  .pb-cta__btn { width: 100%; }
}
