/* AI 안내방송 히어로 — 3안 "현장의 한 장면"(2026-09-28) + 바로 아래 기기 구역.
   마크업: views/include/announce_hero.ejs · 아이폰 목업: include/announce_hero/iphone.ejs · 움직임: announce-hero.js
   움직임은 .bh[data-step](idle·press·send·air1·air2·rest) 과 아이폰 .hp[data-state] 로만 그린다.
   JS 가 없거나 '동작 줄이기'면 data-bh-js 가 붙지 않고 → 아래 기본값(방송 중 결과 장면)이 그대로 보인다.
   수정 시 preview_broadcast.ejs 의 ?v= 를 올릴 것(서비스워커 캐시). */

.bh {
  --bh-ink: #0e0f12;
  --bh-sub: #3a3b3f;
  --bh-muted: #5e5f63;
  --bh-brand: var(--w-blue-50, #4f37ff);
  --bh-k: 0.5; /* 히어로 아이폰 목업 배율(414×868 기준) */
  padding: 64px 0 64px;
  background: #fff;
  color: var(--fg-neutral, #171719);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.bh-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
/* 사이트 공통 small(colors_and_type.css: 캡션 글꼴 + 회색)을 끊는다 — 검은 배지 윗줄·보라 막대 글씨가 회색으로 묻혀
   큰 글씨만 보이던(= 글씨가 아래로 처져 보이던) 원인. 크기·굵기는 아래 개별 규칙이 정한다. */
.bh small, .bhd small { font: inherit; color: inherit; letter-spacing: inherit; }

/* ── 머리: 제목(왼쪽) · 설명·버튼·배지(오른쪽) ── */
.bh-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  column-gap: 64px;
  align-items: end;
}
.bh-head > * { min-width: 0; }
.bh-title { margin: 0; font: inherit; color: var(--bh-ink); }
.bh-quote {
  display: block;
  font: 700 22px/1.3 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--bh-brand);
}
.bh-headline {
  display: block;
  margin-top: 14px;
  font: 800 clamp(40px, 4.6vw, 66px)/1.1 var(--font-sans);
  letter-spacing: -0.05em;
  color: var(--bh-ink);
  text-wrap: balance;
}
.bh-lead {
  margin: 0;
  font: 500 17px/1.7 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--bh-sub);
  text-wrap: pretty;
}
.bh-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.bh-stores { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* 스토어 배지 — 공식 배지 모양(검정 바탕 · 회색 테두리 · 로고 + 두 줄) */
.bh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 11px;
  box-sizing: border-box;
  border: 1px solid #a6a6a6;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
a.bh-badge, a.bh-badge:hover, a.bh-badge:focus { color: #fff; text-decoration: none; }
.bh-badge:hover { background: #1b1c20; transform: translateY(-1px); }
.bh-badge:focus-visible { outline: 2px solid var(--bh-brand, #4f37ff); outline-offset: 3px; }
.bh-badge svg { flex: none; width: 21px; height: 21px; }
/* padding-top 1px: 윗줄 꼭대기~큰 글씨 기준선의 가운데를 로고 가운데와 맞춘다(헤드리스 측정으로 0.5px 내림) */
.bh-badge-tx { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1px; line-height: 1; text-align: left; }
.bh-badge-tx small { font: 500 9px/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap; }
.bh-badge-tx small.is-caps { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; }
.bh-badge-tx b { margin-top: 3px; font: 600 17px/1 var(--font-sans); letter-spacing: -0.02em; white-space: nowrap; }
.bh-badge.is-installed { border-color: var(--w-green-60, #00bf40); cursor: default; transform: none; }
.bh-badge.is-installed .bh-badge-tx { color: #8ef0b0; }

/* ── 사진 무대 ── */
.bh-stage { position: relative; margin-top: 40px; }
.bh-visual { position: relative; }
.bh-scene {
  position: relative;
  margin: 0;
  aspect-ratio: 1272 / 680;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1b1f;
  isolation: isolate;
}
.bh-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

/* 천장 스피커 파동 — 방송 중에만 */
.bh-rings {
  position: absolute;
  left: 57.55%;
  top: 6.8%;
  width: 7.1%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.bh-rings i {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  animation: bhRing 1.8s ease-out infinite;
}
.bh-rings i:nth-child(2) { animation-delay: .6s; }
.bh-rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes bhRing {
  0% { transform: scale(.6); opacity: .95; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* 번호 핀 — 주석 층은 브랜드 인디고(검정 금지), 목록 번호와 같은 순서 */
.bh-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--bh-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 15px/1 var(--font-sans);
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .3s ease;
}
.bh-pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s ease, transform .3s ease;
}

/* 자막 — 두 줄을 같은 칸에 겹쳐 두고 차례로 켠다. 넓은 화면은 읽히는 만큼 밝아진다(가라오케) */
.bh-subs {
  position: absolute;
  left: 55%;
  bottom: 4.5%;
  z-index: 2;
  display: grid;
  max-width: 88%;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(12, 13, 17, .8);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.bh-cap {
  grid-area: 1 / 1;
  justify-self: center;
  position: relative;
  margin: 0;
  font: 600 clamp(17px, 1.8vw, 23px)/34px var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.bh-cap-base { color: rgba(255, 255, 255, .42); }
.bh-cap-hi {
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  clip-path: inset(0 100% 0 0);
}
@keyframes bhWipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* 일시정지 버튼 — JS 가 돌 때만 보인다 */
.bh-pause {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(12, 13, 17, .55);
  color: #fff;
  display: none;
  place-items: center;
  cursor: pointer;
}
.bh[data-bh-js] .bh-pause { display: grid; }
.bh-pause svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.bh-pause .is-play { display: none; }
.bh.is-user-paused .bh-pause .is-play { display: block; }
.bh.is-user-paused .bh-pause .is-pause { display: none; }
.bh-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 아이폰 목업 — 사진 왼쪽 아래에 걸쳐 둔다(사진 안 260px, 나머지는 아래로) */
.bh-phone {
  position: absolute;
  z-index: 3;
  left: 48px;
  bottom: calc(260px - 868px * var(--bh-k));
  width: calc(414px * var(--bh-k));
  height: calc(868px * var(--bh-k));
  border-radius: calc(66px * var(--bh-k));
  box-shadow: 0 30px 70px rgba(15, 23, 42, .35), 0 4px 12px rgba(15, 23, 42, .18);
}
.bh-phone .hp { transform: scale(var(--bh-k)); transform-origin: 0 0; }

/* 태블릿·폰용 앱 막대(넓은 화면에선 숨김) */
.bh-mbar { display: none; position: relative; z-index: 3; width: min(420px, calc(100% - 32px)); height: 58px; margin: -29px auto 0; }
.bh-mbar > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  border-radius: 14px;
  color: #fff;
  transition: opacity .3s ease;
}
.bh-mbar-btn {
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 55%, #3B82F6 100%);
  box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
  font: 600 16px/1 var(--font-sans);
}
.bh-mbar-btn > svg { width: 19px; height: 19px; flex: none; }
.bh-mbar-l { display: grid; }
.bh-mbar-l > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity .2s ease; }
.bh-mbar-l .is-busy { opacity: 0; }
.bh-mbar-tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease, transform .2s ease;
}
.bh-mbar-live {
  gap: 12px;
  padding: 0 10px 0 18px;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  box-shadow: 0 12px 28px rgba(79, 70, 229, .4);
  opacity: 0;
}
.bh-mbar-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: bhPulse 1.1s ease-in-out infinite; }
.bh-mbar-tx { flex: 1; min-width: 0; }
.bh-mbar-tx b { display: block; font: 600 15px/1.3 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-mbar-tx small { display: block; font: 500 12px/1.3 var(--font-sans); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-mbar-stop { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; color: #4F46E5; font: 700 13px/1 var(--font-sans); }
.bh-mbar-stop svg { width: 14px; height: 14px; }
@keyframes bhPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 번호 설명 — 넓은 화면은 아이폰 목업 오른쪽에 세 칸 */
.bh-legend {
  list-style: none;
  margin: 36px 0 0 calc(104px + 414px * var(--bh-k));
  padding: 0;
  min-height: calc(868px * var(--bh-k) - 280px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
  align-content: start;
}
.bh-legend li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.bh-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bh-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 15px/1 var(--font-sans);
  transition: box-shadow .3s ease;
}
.bh-legend b { display: block; font: 700 18px/1.35 var(--font-sans); letter-spacing: -0.02em; color: var(--bh-ink); transition: color .3s ease; }
.bh-legend p { margin: 5px 0 0; font: 500 14.5px/1.55 var(--font-sans); color: var(--bh-muted); }

/* ── 단계별 장면 ── 기본값(= JS 없음·동작 줄이기) 은 방송 중 결과 장면 */
.bh:not([data-bh-js]) .bh-rings,
.bh[data-step="air1"] .bh-rings,
.bh[data-step="air2"] .bh-rings,
.bh:not([data-bh-js]) .bh-subs,
.bh[data-step="air1"] .bh-subs,
.bh[data-step="air2"] .bh-subs { opacity: 1; }

.bh:not([data-bh-js]) .bh-cap[data-l="1"],
.bh[data-step="air1"] .bh-cap[data-l="1"],
.bh[data-step="air2"] .bh-cap[data-l="2"] { opacity: 1; }
.bh:not([data-bh-js]) .bh-cap-hi { clip-path: none; }
.bh[data-step="air1"] .bh-cap[data-l="1"] .bh-cap-hi,
.bh[data-step="air2"] .bh-cap[data-l="2"] .bh-cap-hi { animation: bhWipe 2.7s linear forwards; }

.bh[data-step="press"] .bh-pin[data-pin="1"],
.bh[data-step="send"] .bh-pin[data-pin="2"],
.bh:not([data-bh-js]) .bh-pin[data-pin="3"],
.bh[data-step="air1"] .bh-pin[data-pin="3"],
.bh[data-step="air2"] .bh-pin[data-pin="3"] { transform: scale(1.15); }
.bh[data-step="press"] .bh-pin[data-pin="1"]::after,
.bh[data-step="send"] .bh-pin[data-pin="2"]::after,
.bh:not([data-bh-js]) .bh-pin[data-pin="3"]::after,
.bh[data-step="air1"] .bh-pin[data-pin="3"]::after,
.bh[data-step="air2"] .bh-pin[data-pin="3"]::after { opacity: 1; transform: none; }

.bh[data-step="press"] .bh-legend [data-n="1"] b,
.bh[data-step="send"] .bh-legend [data-n="2"] b,
.bh:not([data-bh-js]) .bh-legend [data-n="3"] b,
.bh[data-step="air1"] .bh-legend [data-n="3"] b,
.bh[data-step="air2"] .bh-legend [data-n="3"] b { color: var(--bh-brand); }
.bh[data-step="press"] .bh-legend [data-n="1"] .bh-num,
.bh[data-step="send"] .bh-legend [data-n="2"] .bh-num,
.bh:not([data-bh-js]) .bh-legend [data-n="3"] .bh-num,
.bh[data-step="air1"] .bh-legend [data-n="3"] .bh-num,
.bh[data-step="air2"] .bh-legend [data-n="3"] .bh-num { box-shadow: 0 0 0 5px rgba(79, 55, 255, .18); }

/* 폰 막대: 방송 중(기본값 포함)엔 라이브 막대, 그 밖엔 [송출기기로 방송] 버튼 */
.bh:not([data-bh-js]) .bh-mbar-live,
.bh[data-step="air1"] .bh-mbar-live,
.bh[data-step="air2"] .bh-mbar-live { opacity: 1; }
.bh:not([data-bh-js]) .bh-mbar-btn,
.bh[data-step="air1"] .bh-mbar-btn,
.bh[data-step="air2"] .bh-mbar-btn { opacity: 0; }
.bh[data-step="send"] .bh-mbar-l .is-idle { opacity: 0; }
.bh[data-step="send"] .bh-mbar-l .is-busy { opacity: 1; }
.bh.is-tap .bh-mbar-tap { opacity: 1; transform: none; }

/* 멈춤(화면 밖·탭 숨김·일시정지) — 반복 움직임도 그 자리에 세운다 */
.bh.is-paused .bh-rings i,
.bh.is-paused .bh-cap-hi,
.bh.is-paused .hp-dot,
.bh.is-paused .bh-mbar-dot { animation-play-state: paused; }

/* ══ 아이폰 앱 목업(.hp) — 논리 크기 390×844, 테두리 포함 414×868. 실제 iOS 앱 색·배치 ══ */
.hp {
  position: relative;
  width: 414px;
  height: 868px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 66px;
  background: #101114;
  box-shadow: inset 0 0 0 1.5px #3a3c42;
  color: #0F172A;
  font-family: var(--font-sans, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif);
  font-size: 16px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-align: left;
  word-break: keep-all;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp p { margin: 0; }
.hp img { display: block; }
.hp-scr { position: relative; width: 390px; height: 844px; border-radius: 54px; overflow: hidden; background: #EEF1F5; }
.hp-sb { position: absolute; z-index: 30; left: 0; top: 0; width: 390px; height: 54px; padding: 6px 30px 0 52px; display: flex; align-items: center; justify-content: space-between; color: #000; }
.hp-sb-t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hp-sb-r { display: flex; align-items: center; gap: 6px; }
.hp-sb-r .is-sig { width: 18px; height: 12px; }
.hp-sb-r .is-wifi { width: 16px; height: 12px; }
.hp-sb-r .is-bat { width: 27px; height: 13px; }
.hp-di { position: absolute; z-index: 40; left: 133px; top: 11px; width: 124px; height: 36px; border-radius: 18px; background: #000; }
.hp-nav { position: absolute; z-index: 5; left: 0; top: 54px; width: 390px; height: 52px; display: flex; align-items: center; justify-content: center; }
.hp-nav img { height: 15px; width: auto; }
.hp-body { position: absolute; left: 16px; top: 106px; width: 358px; }
.hp-greet { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 4px; }
.hp .hp-hi { font-size: 15px; color: #64748B; }
.hp-name { display: block; margin-top: 2px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.hp-role { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; height: 24px; padding: 0 9px; border-radius: 12px; background: #E0E7FF; color: #3730A3; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hp-role.is-output { background: #DCFCE7; color: #14532D; }
.hp-role i { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }
.hp-ill { width: 76px; height: 76px; }
.hp-hero { display: flex; flex-direction: column; height: 204px; margin-top: 14px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #4F46E5, #6366F1); color: #fff; }
.hp .hp-k { font-size: 13px; font-weight: 600; opacity: .92; }
.hp-c { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hp-t { margin-top: 4px; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp .hp-s { margin-top: 2px; font-size: 13px; opacity: .82; }
.hp-hb { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 12px; background: #fff; color: #4F46E5; font-size: 16px; font-weight: 700; white-space: nowrap; }
.hp-hb svg { width: 19px; height: 19px; }
.hp .hp-h { margin: 22px 2px 10px; font-size: 20px; font-weight: 700; }
.hp-qk { display: flex; gap: 10px; width: 440px; }
.hp-qc { flex: none; width: 132px; height: 124px; padding: 12px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.hp-qc img { width: 42px; height: 42px; }
.hp-qc b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hp-card { background: #fff; border-radius: 18px; overflow: hidden; }
.hp-sr { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; }
.hp-sr b { font-size: 17px; font-weight: 700; color: #3157FF; font-variant-numeric: tabular-nums; }
.hp-sr span { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-sr em { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: #FEF3C7; color: #78350F; font-size: 11.5px; font-weight: 700; font-style: normal; }

.hp-bar { position: absolute; z-index: 15; left: 16px; top: 686px; width: 358px; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 18px; border-radius: 14px; background: linear-gradient(135deg, #4F46E5, #6366F1); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35); opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease; }
.hp[data-state="remote"] .hp-bar { opacity: 1; transform: none; }
.hp-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: bhPulse 1.1s ease-in-out infinite; }
.hp-bar-tx { flex: 1; min-width: 0; }
.hp-bar-tx b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-bar-tx small { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-bar-stop { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; color: #4F46E5; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hp-bar-stop svg { width: 14px; height: 14px; }

.hp-tab { position: absolute; z-index: 14; left: 22px; top: 756px; width: 346px; height: 62px; border-radius: 31px; display: flex; align-items: center; padding: 0 5px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(15, 23, 42, .14), 0 1px 2px rgba(15, 23, 42, .08); }
.hp-tab > span { flex: 1; min-width: 0; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 26px; color: #1f2937; }
.hp-tab > span.is-on { color: #3157FF; background: rgba(15, 23, 42, .06); }
.hp-tab svg { width: 24px; height: 24px; }
.hp-tab b { max-width: 100%; font-size: 10px; font-weight: 600; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-home { position: absolute; z-index: 40; left: 126px; top: 831px; width: 138px; height: 5px; border-radius: 3px; background: #0b0b0f; }

/* 다음 자동 방송 시트(관리기기: [송출기기로 방송] + [이 기기에서 듣기]) */
.hp-sheet-wrap { position: absolute; z-index: 20; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.hp[data-state="sheet"] .hp-sheet-wrap,
.hp[data-state="sending"] .hp-sheet-wrap { opacity: 1; }
.hp-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hp-sheet { position: absolute; left: 0; top: 318px; width: 390px; height: 526px; background: #F2F3F7; border-radius: 38px 38px 0 0; transform: translateY(70px); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.hp[data-state="sheet"] .hp-sheet,
.hp[data-state="sending"] .hp-sheet { transform: none; }
.hp-sh-nav { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 16px 0; }
.hp-sh-nav b { font-size: 17px; font-weight: 600; white-space: nowrap; }
.hp-sh-close { justify-self: start; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); font-size: 16px; font-weight: 500; white-space: nowrap; }
.hp-sh-body { padding: 4px 20px 0; }
.hp-sh-t { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.hp .hp-sh-m { margin-top: 4px; font-size: 14px; color: #64748B; }
.hp .hp-sh-text { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 15px; line-height: 1.5; color: #1e293b; }
.hp .hp-sh-note { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #475569; }
.hp-sh-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.hp-sh-foot { position: absolute; left: 20px; bottom: 34px; width: 350px; display: flex; flex-direction: column; gap: 10px; }
.hp-send { position: relative; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 8px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 55%, #3B82F6 100%); color: #fff; font-size: 17px; font-weight: 600; }
.hp-send > svg { grid-column: 1; grid-row: 1; width: 20px; height: 20px; }
.hp-send-l { grid-column: 2; grid-row: 1; white-space: nowrap; transition: opacity .2s ease; }
.hp-send-l.is-busy { opacity: 0; }
.hp[data-state="sending"] .hp-send-l.is-idle { opacity: 0; }
.hp[data-state="sending"] .hp-send-l.is-busy { opacity: 1; }
.hp-tap { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s ease; }
.hp.is-tap .hp-tap { opacity: 1; transform: none; }
.hp-listen { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 12px; background: rgba(49, 87, 255, .09); color: #3157FF; font-size: 16px; font-weight: 600; white-space: nowrap; }
.hp-listen svg { width: 18px; height: 18px; }

/* ══ 기기 구역(.bhd) — 왼쪽 설명·역할 / 오른쪽 한 장면 / 아래 한 장짜리 "앱 설치" 판 ══ */
.bhd { padding: 104px 0 96px; background: var(--w-cool-98, #f7f7f8); color: var(--fg-neutral, #171719); word-break: keep-all; overflow-wrap: break-word; }
.bhd-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.bhd-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px; align-items: center; }
.bhd-copy { min-width: 0; max-width: 470px; }
.bhd-intro h2 { margin: 0; font: 800 40px/1.25 var(--font-sans); letter-spacing: -0.04em; color: #0e0f12; }
.bhd-lead { margin: 18px 0 0; font: 500 17px/1.7 var(--font-sans); letter-spacing: -0.01em; color: #3a3b3f; text-wrap: pretty; }

/* 역할 두 줄 — 관리(어디서나) / 송출(스피커에 연결한 기기 한 대). 앱의 기기 색(관리=인디고, 송출=초록)과 같다 */
.bhd-roles { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid #e3e4e8; }
.bhd-roles li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e3e4e8; }
.bhd-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 58px; height: 28px; padding: 0 12px; box-sizing: border-box; border-radius: 14px; font: 700 13px/1 var(--font-sans); white-space: nowrap; }
.bhd-roles .is-manage .bhd-chip { background: #eeebff; color: #4128f0; }
.bhd-roles .is-output .bhd-chip { background: #dcfce7; color: #14532d; }
.bhd-chip i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.bhd-rt { min-width: 0; padding-top: 3px; }
.bhd-rt b { display: block; font: 700 16.5px/1.4 var(--font-sans); letter-spacing: -0.02em; color: #0e0f12; }
.bhd-rt small { display: block; margin-top: 3px; font: 500 14px/1.5 var(--font-sans); color: #5e5f63; }

/* 한 장면 — 700×542 기준 좌표. 폭이 좁아지면 --st 로 통째로 줄인다 */
.bhd-stage { --st: 1; position: relative; width: calc(700px * var(--st)); height: calc(542px * var(--st)); }
.bhd-stage-in { position: absolute; left: 0; top: 0; width: 700px; height: 542px; transform: scale(var(--st)); transform-origin: 0 0; }
.bhd-win { position: absolute; left: 62px; top: 0; width: 576px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .08); }
.bhd-win-bar { display: flex; align-items: center; gap: 8px; height: 30px; padding-left: 12px; background: #eeeef0; border-bottom: 1px solid #e0e0e3; color: #333; }
.bhd-win-bar img { width: 14px; height: 14px; border-radius: 4px; display: block; }
.bhd-win-t { min-width: 0; font: 500 11.5px/1 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bhd-win-ctl { margin-left: auto; display: flex; }
.bhd-win-ctl svg { width: 40px; height: 30px; padding: 10px 15px; box-sizing: border-box; }
.bhd-win-shot { display: block; width: 576px; height: auto; }
.bhd-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; box-sizing: border-box; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px #e3e4e8, 0 6px 14px rgba(15, 23, 42, .08); font: 700 12px/1 var(--font-sans); color: #3a3b3f; white-space: nowrap; }
.bhd-tag i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.bhd-tag.is-pc { right: 62px; top: -40px; } /* 창 위(창 조절 버튼을 가리지 않게) */
.bhd-cable { position: absolute; left: 349px; top: 333px; width: 2px; height: 72px; background: #c9ccd3; }
.bhd-spk { position: absolute; left: 318px; top: 402px; width: 64px; height: 64px; }
.bhd-spk svg { display: block; width: 64px; height: 64px; }
.bhd-tag.is-spk { left: 350px; top: 478px; transform: translateX(-50%); }
.bhd-ios { position: absolute; left: 0; top: 172px; width: 176px; height: 370px; border-radius: 28px; box-shadow: 0 28px 56px rgba(15, 23, 42, .24), 0 4px 10px rgba(15, 23, 42, .1); }
.bhd-ios .hp { transform: scale(.4262); transform-origin: 0 0; }
.bhd-and { position: absolute; left: 523px; top: 172px; width: 177px; height: 370px; box-sizing: border-box; padding: 6px; border-radius: 30px; background: #111316; box-shadow: 0 28px 56px rgba(15, 23, 42, .24), 0 4px 10px rgba(15, 23, 42, .1), inset 0 0 0 1.5px #34363c; }
.bhd-and img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.bhd-cam { position: absolute; left: 50%; top: 14px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #0b0b0d; box-shadow: 0 0 0 1.5px #25272c; }

/* 앱 설치 — 한 장짜리 판: 머리줄 · 세 칸(가는 세로줄로 구분) · 오프라인 에디션 꼬리줄 */
.bhd-get { margin-top: 64px; border-radius: 20px; background: #fff; border: 1px solid #e7e7ea; overflow: hidden; }
.bhd-get-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 28px 0; }
.bhd-get-head b { font: 700 15px/1.4 var(--font-sans); color: #0e0f12; }
.bhd-get-head span { font: 500 13.5px/1.4 var(--font-sans); color: #6b6e74; }
.bhd-get-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 0 26px; }
.bhd-get-col { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 18px; align-items: center; min-width: 0; padding: 6px 28px; }
.bhd-get-col + .bhd-get-col { border-left: 1px solid #efeff2; }
.bhd-qr { display: block; width: 84px; height: 84px; }
.bhd-pc-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 16px; background: #f4f4f6; color: #2c2e33; }
.bhd-pc-ico svg { width: 36px; height: 36px; }
.bhd-get-tx { min-width: 0; }
.bhd-get-tx > b { display: block; font: 700 17px/1.3 var(--font-sans); letter-spacing: -0.02em; color: #0e0f12; }
.bhd-get-tx > span { display: block; margin-top: 3px; font: 500 13.5px/1.45 var(--font-sans); color: #5e5f63; }
.bhd-get-act { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bhd-get-act .bh-badge { height: 40px; }
.bhd-get-act .bh-badge svg { width: 19px; height: 19px; }
.bhd-get-act .bh-badge-tx b { font-size: 15px; }
.bhd-link, .bhd-link:hover, .bhd-link:focus { font: 700 14px/1.4 var(--font-sans); color: #0e0f12; text-decoration: underline; text-underline-offset: 4px; }
.bhd-offline { margin: 0; padding: 14px 28px; border-top: 1px solid #efeff2; background: #fafafb; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 500 14px/1.6 var(--font-sans); color: #5e5f63; }
.bhd-offline strong { color: #0e0f12; font-weight: 700; }
.bhd-offline a, .bhd-offline a:hover, .bhd-offline a:focus { font-weight: 700; color: #0e0f12; text-decoration: underline; text-underline-offset: 4px; }

/* ── 반응형 ── */
@media (max-width: 1199px) {
  .bh-head { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 40px; }
  .bhd-top { grid-template-columns: 1fr; row-gap: 48px; }
  .bhd-copy { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .bhd-roles { margin-top: 6px; }
  .bhd-stage { --st: .9; justify-self: center; }
  .bhd-get-col { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding: 6px 20px; }
  .bhd-qr, .bhd-pc-ico { width: 72px; height: 72px; }
}
@media (max-width: 1023px) {
  .bh { padding-top: 48px; }
  .bh-head { grid-template-columns: 1fr; row-gap: 20px; }
  .bh-phone { display: none; }
  .bh-mbar { display: block; }
  .bh-subs { left: 50%; }
  .bh-legend { margin: 28px 0 0; min-height: 0; }
  /* 앱 설치 판: 세 칸 → 세 줄(글 왼쪽 · 버튼 오른쪽), QR 은 폰에서 쓸 일이 없어 숨김 */
  .bhd-get-head span { display: none; }
  .bhd-get-row { grid-template-columns: 1fr; padding: 8px 0 10px; }
  .bhd-get-col { grid-template-columns: minmax(0, 1fr); padding: 14px 28px; }
  .bhd-get-col + .bhd-get-col { border-left: 0; border-top: 1px solid #efeff2; }
  .bhd-qr, .bhd-pc-ico { display: none; }
  .bhd-get-tx { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
  .bhd-get-tx > b { grid-column: 1; }
  .bhd-get-tx > span { grid-column: 1; }
  .bhd-get-act { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; }
}
@media (max-width: 860px) {
  .bhd { padding: 64px 0 64px; }
  .bhd-copy { display: block; }
  .bhd-roles { margin-top: 26px; }
  .bhd-stage { --st: .8; }
}
@media (max-width: 720px) {
  .bh { padding: 28px 0 48px; }
  .bh-wrap, .bhd-wrap { padding: 0 20px; }
  .bh-quote { font-size: 18px; }
  .bh-headline { margin-top: 10px; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.2; }
  .bh-lead { font-size: 16px; line-height: 1.65; }
  .bh-cta { flex-direction: column; }
  .bh-cta .btn { width: 100%; }
  .bh-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-stores .bh-badge { justify-content: center; height: 48px; }
  .bh-stores [data-desktop-install] { grid-column: 1 / -1; }
  .bh-stage { margin: 28px -20px 0; }
  .bh-scene { aspect-ratio: 390 / 440; border-radius: 0; }
  /* 사장님 얼굴이 오른쪽 끝에 붙지 않게 76% — 바꾸면 bhPins 의 mx 와 물결 left 를 다시 잰다 */
  .bh-photo { object-position: 76% 30%; }
  .bh-rings { left: 39%; top: 6.8%; width: 15.4%; }
  .bh-pin { left: var(--mx); top: var(--my); width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 14px; }
  .bh-subs { left: 16px; right: 16px; bottom: 50px; max-width: none; padding: 8px 14px; transform: none; }
  .bh-cap { white-space: normal; text-align: center; font-size: 16px; line-height: 1.5; }
  .bh-cap-base { color: #fff; }
  .bh-cap-hi { display: none; }
  .bh-pause { top: 12px; right: 12px; bottom: auto; width: 40px; height: 40px; }
  .bh-mbar { width: auto; margin: -29px 16px 0; }
  .bh-legend { margin: 26px 20px 0; grid-template-columns: 1fr; row-gap: 16px; }
  .bh-legend b { font-size: 16.5px; }
  .bh-legend p { font-size: 14px; }
  .bhd { padding: 56px 0 56px; }
  .bhd-intro h2 { font-size: 28px; }
  .bhd-lead { font-size: 15.5px; line-height: 1.65; }
  .bhd-rt b { font-size: 15.5px; }
  .bhd-rt small { font-size: 13.5px; }
  .bhd-top { row-gap: 36px; }
  .bhd-get { margin-top: 40px; border-radius: 16px; }
  .bhd-get-head { padding: 16px 20px 0; }
  .bhd-get-col { padding: 14px 20px; }
  .bhd-offline { padding: 14px 20px; }
}
@media (max-width: 600px) {
  .bhd-stage { --st: .6; }
  .bhd-tag { display: none; } /* 줄인 장면에서 딱지 글씨가 6px 대로 작아져 읽히지 않는다 */
  /* 앱 설치 판: 버튼을 글 아래로, 폭 가득 */
  .bhd-get-tx { display: block; }
  .bhd-get-act { margin-top: 12px; flex-direction: column; align-items: stretch; }
  .bhd-get-act .bh-badge { justify-content: center; height: 48px; }
  .bhd-link { text-align: center; }
}
@media (max-width: 480px) {
  .bhd-stage { --st: .457; }
}
@media (max-width: 360px) {
  .bhd-stage { --st: .4; }
}

@media (prefers-reduced-motion: reduce) {
  .bh *, .bh *::after, .bhd * { animation: none !important; transition: none !important; }
}
