/* Homepage Yak Cards study demo — real session recording in the phone bezel. */

.yy-demo {
  --yy-demo-purple: #7c3aed;
  --yy-demo-ink: #21103d;
  background: #f7f4ff;
  color: var(--yy-demo-ink);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(44px, 6vw, 88px);
}

.yy-demo .yy-frame {
  display: grid;
  justify-items: center;
  gap: 28px;
  box-sizing: border-box;
}

.yy-demo__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
  max-width: 40rem;
  box-sizing: border-box;
  padding-inline: 8px;
}

.yy-demo h2 {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-family: "League Spartan", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 7.2vw, 44px);
  line-height: 1.08;
  color: var(--yy-demo-ink);
  max-width: 100%;
}

.yy-demo__line {
  display: block;
}

.yy-demo__pop {
  font-style: normal;
  font-weight: 800;
}

.yy-demo__pop--brand {
  color: var(--yy-demo-purple);
}

.yy-demo__pop--know {
  color: #12b981;
}

.yy-demo__pop--skip {
  color: #f43f5e;
}

.yy-demo__sub {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.4;
  color: #5c4d73;
}

.yy-home a.yy-demo__cta,
body.page-id-8582 .entry-content .yy-home a.yy-demo__cta {
  display: none;
}

.yy-demo__phone {
  width: min(320px, 72vw);
  aspect-ratio: 390 / 844;
  position: relative;
  overflow: visible;
  margin: 0;
}

.yy-hero .yy-demo__phone {
  width: min(300px, 70vw);
}

.yy-demo__device {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 32px;
  background: #111;
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(17, 8, 36, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.yy-demo__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #1a0b2e;
}

.yy-demo__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #1a0b2e;
}

.yy-demo__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: min(100%, 760px);
  margin: 0;
}

.yy-demo .yy-phone__bezel {
  position: static;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.yy-demo .yy-phone {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2)) drop-shadow(0 22px 36px rgba(0, 0, 0, 0.18));
}

.yy-demo .yy-phone img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 767px) {
  .yy-demo h2 {
    font-size: clamp(26px, 8vw, 34px);
  }
}

@media (min-width: 768px) {
  .yy-hero .yy-demo__phone {
    width: min(360px, 42vw);
  }
}

@media (min-width: 980px) {
  .yy-demo {
    padding-top: clamp(24px, 3.2vw, 40px);
    padding-bottom: clamp(24px, 3.2vw, 40px);
  }

  .yy-demo .yy-frame {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: 36px 48px;
    justify-items: stretch;
  }

  .yy-demo__media {
    order: 1;
    width: min(100%, 560px);
    justify-content: flex-start;
  }

  .yy-demo__copy {
    order: 2;
    align-items: flex-start;
    text-align: left;
    max-width: 36rem;
    padding-inline: 0;
    gap: 14px;
  }

  .yy-demo h2 {
    font-size: clamp(36px, 3.4vw, 52px);
    line-height: 1.06;
  }

  .yy-demo__sub {
    font-size: clamp(20px, 1.7vw, 24px);
  }

  .yy-demo .yy-phone--splash {
    width: 268px;
    margin-right: -48px;
  }

  .yy-demo .yy-phone--study {
    width: 268px;
    margin-left: -14px;
  }

  .yy-hero .yy-demo__phone {
    width: 360px;
  }
}

body.page-id-8582 .entry-content .yy-home .yy-demo__pop--brand {
  color: #7c3aed;
  -webkit-text-fill-color: #7c3aed;
}

body.page-id-8582 .entry-content .yy-home .yy-demo__pop--know {
  color: #12b981;
  -webkit-text-fill-color: #12b981;
}

body.page-id-8582 .entry-content .yy-home .yy-demo__pop--skip {
  color: #f43f5e;
  -webkit-text-fill-color: #f43f5e;
}

body.page-id-8582 .entry-content .yy-home .yy-demo__video {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

body.page-id-8582 .entry-content .yy-home .yy-demo .yy-phone img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}
