/* Hero phone — 6-channel screen rotator */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phone-device {
  width: 300px;
  border-radius: 56px;
  padding: 11px;
  background: linear-gradient(155deg, #46464b, #191919 42%, #33333a);
  box-shadow: 0 52px 92px rgba(0, 0, 0, 0.68);
  position: relative;
  z-index: 2;
}

.hero-phone-inner {
  border-radius: 46px;
  overflow: hidden;
  background: #fff;
  position: relative;
  font-family: -apple-system, "SF Pro Text", Pretendard, sans-serif;
}

.hero-phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 94px;
  height: 29px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
}

.hero-phone-viewport {
  position: relative;
  height: 572px;
  overflow: hidden;
}

.hero-phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 0;
}

/* 7 slides × 1.5s = 10.5s — CSS fallback only (JS mode uses is-active) */
@media (prefers-reduced-motion: no-preference) {
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(1) { animation: hp7Cycle1 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(2) { animation: hp7Cycle2 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(3) { animation: hp7Cycle3 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(4) { animation: hp7Cycle4 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(5) { animation: hp7Cycle5 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(6) { animation: hp7Cycle6 10.5s infinite; }
  .hero-phone-viewport:not(.hero-phone-viewport--js) .hero-phone-slide:nth-child(7) { animation: hp7Cycle7 10.5s infinite; }
}

/* JS-driven — 폰 화면·배지 동시 전환 */
.hero-phone-viewport--js .hero-phone-slide {
  animation: none !important;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.hero-phone-viewport--js .hero-phone-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
}

.hero-phone-viewport--js:not(:has(.is-active)) .hero-phone-slide:first-child {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-slide:first-child {
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 1;
  }
}

@keyframes hp7Cycle1 {
  0%, 14.285% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  14.286%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle2 {
  0%, 14.285% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  14.286%, 28.571% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  28.572%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle3 {
  0%, 28.571% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  28.572%, 42.857% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  42.858%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle4 {
  0%, 42.857% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  42.858%, 57.142% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  57.143%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle5 {
  0%, 57.142% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  57.143%, 71.428% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  71.429%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle6 {
  0%, 71.428% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  71.429%, 85.714% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  85.715%, 100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

@keyframes hp7Cycle7 {
  0%, 85.714% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
  85.715%, 99.999% { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
  100% { opacity: 0; visibility: hidden; transform: translateY(6px); z-index: 0; }
}

/* ── Status bar (shared) ── */
.hp-status {
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 7px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.hp-status__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.hp-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.hp-signal span {
  width: 3px;
  background: #0a0a0a;
  border-radius: 1px;
}

.hp-signal span:nth-child(1) { height: 5px; }
.hp-signal span:nth-child(2) { height: 7px; }
.hp-signal span:nth-child(3) { height: 9px; }
.hp-signal span:nth-child(4) { height: 11px; }

.hp-battery {
  width: 23px;
  height: 11.5px;
  border: 1.4px solid rgba(0, 0, 0, 0.35);
  border-radius: 3.5px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5px;
}

.hp-battery::after {
  content: "";
  position: absolute;
  right: -3.4px;
  top: 3.2px;
  width: 2px;
  height: 5px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 2px 2px 0;
}

.hp-battery__fill {
  width: 72%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 1.5px;
}

/* ── Kakao ── */
.hp-slide--kakao .hp-status,
.hp-slide--kakao .hp-kakao-head { background: #b2c7d9; }

.hp-kakao-head {
  padding: 3px 14px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.hp-kakao-head .back { color: #26323d; font-size: 24px; font-weight: 300; line-height: 1; }
.hp-kakao-head .name { font-weight: 600; color: #1c1c1c; }
.hp-kakao-head .sub { font-size: 12px; color: #5c6b78; }
.hp-kakao-head .actions { margin-left: auto; color: #26323d; font-size: 15px; display: flex; gap: 15px; }

.hp-kakao-body {
  background: #b2c7d9;
  padding: 14px 13px 8px;
  min-height: 418px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-kakao-date {
  align-self: center;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
  padding: 3px 12px;
  border-radius: 100px;
}

.hp-kakao-msg { display: flex; gap: 7px; align-items: flex-start; }

.hp-kakao-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  object-fit: contain;
  flex: none;
  padding: 3px;
  background: #fff;
}

.hp-kakao-bubble {
  background: #fff;
  border-radius: 4px 15px 15px 15px;
  padding: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: 198px;
}

.hp-kakao-bubble img {
  width: 184px;
  height: 110px;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  background: #f0f0f0;
}

.hp-kakao-bubble p {
  padding: 8px 3px 3px;
  font-size: 11px;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0;
}

.hp-kakao-foot,
.hp-ios-foot {
  background: #fff;
  padding: 8px 12px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 0.5px solid #ededed;
}

.hp-kakao-input {
  flex: 1;
  height: 30px;
  background: #f2f3f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 12px;
  color: #a0a4ab;
}

.hp-home-bar {
  height: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-home-bar span {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: #0a0a0a;
}

/* ── Naver search ── */
.hp-slide--naver { background: #fff; }

.hp-naver-search {
  padding: 8px 12px 10px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.hp-naver-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f6f7;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #222;
}

.hp-naver-bar .logo {
  width: 18px;
  height: 18px;
  background: #03c75a;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-naver-body { padding: 12px; min-height: 468px; }

.hp-naver-ad {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.hp-naver-ad__tag {
  display: inline-block;
  font-size: 10px;
  color: #03c75a;
  border: 1px solid #03c75a;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.hp-naver-ad__title {
  font-size: 14px;
  font-weight: 700;
  color: #0068c3;
  margin: 0 0 4px;
}

.hp-naver-ad__desc {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 8px;
}

.hp-naver-ad img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.hp-naver-ad__inner { padding: 10px 12px; }

.hp-naver-organic {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hp-naver-organic__t {
  font-size: 13px;
  color: #0068c3;
  font-weight: 600;
  margin-bottom: 3px;
}

.hp-naver-organic__d {
  font-size: 11px;
  color: #888;
}

/* ── Meta / Instagram ── */
.hp-slide--meta { background: #fafafa; }

.hp-ig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #efefef;
  background: #fff;
}

.hp-ig-head span { font-size: 18px; font-weight: 700; }

.hp-ig-post {
  background: #fff;
  margin: 8px 0;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}

.hp-ig-post__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.hp-ig-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
}

.hp-ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.hp-ig-post__name { font-size: 12px; font-weight: 700; color: #262626; }
.hp-ig-post__sub { font-size: 10px; color: #8e8e8e; }

.hp-ig-sponsored {
  font-size: 10px;
  color: #8e8e8e;
  margin-left: auto;
}

.hp-ig-post img.hp-ig-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.hp-ig-actions {
  padding: 10px 12px;
  display: flex;
  gap: 14px;
  font-size: 18px;
}

.hp-ig-caption {
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.55;
  color: #262626;
}

.hp-ig-caption b { font-weight: 700; }

/* ── Google ── */
.hp-slide--google { background: #fff; color: #202124; }

.hp-google-search {
  padding: 8px 14px 12px;
  background: #fff;
}

.hp-google-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f3f4;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13px;
  color: #5f6368;
}

.hp-google-g {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #4285f4 0%, #ea4335 45%, #fbbc04 75%, #34a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.hp-google-body { padding: 0 14px 14px; }

.hp-google-ad {
  padding: 10px 0 14px;
  border-bottom: 1px solid #ebebeb;
}

.hp-google-ad__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 4px;
}

.hp-google-ad__title {
  font-size: 16px;
  font-weight: 500;
  color: #1a0dab;
  margin: 0 0 4px;
  line-height: 1.35;
}

.hp-google-ad__url {
  font-size: 12px;
  color: #006621;
  margin: 0 0 6px;
}

.hp-google-ad__desc {
  font-size: 12px;
  color: #4d5156;
  margin: 0;
  line-height: 1.5;
}

.hp-google-gdn {
  position: relative;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
}

.hp-google-gdn img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.hp-google-gdn__label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ── YouTube ── */
.hp-slide--youtube { background: #0f0f0f; color: #fff; }

.hp-yt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #0f0f0f;
}

.hp-yt-logo {
  width: 28px;
  height: 20px;
  background: #ff0000;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.hp-yt-search {
  flex: 1;
  background: #222;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  color: #aaa;
}

.hp-yt-player {
  position: relative;
  height: 210px;
  background: #1a1a1a;
}

.hp-yt-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hp-yt-ad-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.hp-yt-skip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f0f0f;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
}

.hp-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-yt-play span {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 4px;
}

.hp-yt-info { padding: 12px; }

.hp-yt-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}

.hp-yt-meta { font-size: 11px; color: #aaa; }

/* ── Daangn ── */
.hp-slide--daangn { background: #fff; }

.hp-dg-head {
  background: #ff6f0f;
  color: #fff;
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-dg-head .logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hp-dg-loc {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

.hp-dg-body { padding: 12px; min-height: 468px; }

.hp-dg-ad {
  border: 2px solid #ff6f0f;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hp-dg-ad__tag {
  background: #ff6f0f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  display: inline-block;
}

.hp-dg-ad img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.hp-dg-ad__body { padding: 10px 12px; }

.hp-dg-ad__title {
  font-size: 14px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 4px;
}

.hp-dg-ad__loc {
  font-size: 11px;
  color: #868686;
  margin-bottom: 6px;
}

.hp-dg-ad__price {
  font-size: 15px;
  font-weight: 800;
  color: #ff6f0f;
}

/* ── LMS / Messages ── */
.hp-slide--lms { background: #fff; }

.hp-sms-head {
  text-align: center;
  padding: 10px 14px 8px;
  border-bottom: 1px solid #e5e5ea;
  background: #f9f9f9;
}

.hp-sms-head .num {
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

.hp-sms-head .sub { font-size: 10px; color: #8e8e8e; }

.hp-sms-body {
  padding: 16px 12px;
  min-height: 448px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-sms-date {
  text-align: center;
  font-size: 10px;
  color: #8e8e8e;
  margin-bottom: 4px;
}

.hp-sms-bubble {
  align-self: flex-start;
  max-width: 88%;
  background: #e9e9eb;
  border-radius: 18px;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.55;
  color: #000;
}

.hp-sms-bubble--ad {
  background: #e9e9eb;
  border-left: 3px solid #ffd400;
}

.hp-sms-bubble b { display: block; margin-bottom: 4px; font-size: 12px; }

.hp-sms-foot {
  padding: 8px 12px;
  border-top: 1px solid #e5e5ea;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f9f9f9;
}

.hp-sms-input {
  flex: 1;
  border: 1px solid #c7c7cc;
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 12px;
  color: #8e8e8e;
}

/* Channel badge sync */
.phone-badge--channel {
  position: absolute;
  top: 18%;
  left: -6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(220px, 46vw);
  padding: 10px 14px;
  border-radius: 12px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: floatY 5s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

.phone-badge--channel.is-fading {
  opacity: 0.35;
}

.phone-badge__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 4px;
  flex: none;
}

.phone-badge__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.phone-badge__channel {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.phone-badge__ad {
  font-size: 12px;
  line-height: 1.4;
  color: #e9e9ea;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .hero-phone-device {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .hero-phone-viewport {
    height: 572px;
  }

  .hero-phone-wrap--channels .hero-phone-device {
    width: min(100%, 300px);
  }

  .channels-showcase__phone {
    padding: 8px 0 4px;
  }
}
