/* s-products.css — 개편 층. 제품 장(#products)만 여기서 고친다.
 *
 * ★제품 장은 탭 쇼케이스다 — 스위처(4) → 고른 제품 하나(기기 틀 + 약속 + 핵심 칩 + 화면 보기)
 *   → 접힌 «자세히» → 원장 띠. 옛 `.product`·`.shot`·`.surface` 규칙을 피하려고 이름을 새로 지었다
 *   (`pz-*`). 옛 공용 CSS(sections / apple-sections / shots / mockups)는 고치지 않고 여기서 덮는다.
 * ★`.pz.is-enhanced` = 스크립트가 탭으로 바꾼 상태. 그 밖의 규칙은 스크립트 없이도 성립해야 한다
 *   (네 패널이 위아래로 전부 보인다).
 * ★제품 색은 사이트 제목 그라데이션의 네 점에서 가져왔다(파랑 → 남보라 → 분홍 → 보라).
 *   상태색(안정·불안정·단절·경고)은 장식에 쓰지 않는다 — 창 모서리 점도 회색이다.
 */

@property --pz-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #2997ff;
}

[data-product="station"] { --pz-c: #2997ff; }
[data-product="driver"]  { --pz-c: #7d7aff; }
[data-product="owner"]   { --pz-c: #f064bd; }
[data-product="console"] { --pz-c: #bf5af2; }

/* ══ 장 바탕 — 격자 + 고른 제품 색의 발광(탭을 바꾸면 색이 흘러 바뀐다) ══ */
#products.pz {
  --pz-glow: #2997ff;
  position: relative;
  isolation: isolate;
  padding-block: clamp(96px, 10vw, 150px) clamp(84px, 9vw, 130px);
  background: #000;
  transition: --pz-glow 0.9s ease;
}
.pz[data-active="driver"]  { --pz-glow: #7d7aff; }
.pz[data-active="owner"]   { --pz-glow: #f064bd; }
.pz[data-active="console"] { --pz-glow: #bf5af2; }

.pz__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 34% at 64% 44%, color-mix(in srgb, var(--pz-glow) 20%, transparent), transparent 72%),
    radial-gradient(36% 22% at 18% 16%, rgba(125, 122, 255, 0.1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
}
.pz .shead { margin-bottom: clamp(40px, 5vw, 64px); }

/* ══ 스위처 ══ */
.pz-switch { position: relative; z-index: 6; max-width: 1080px; margin: 0 auto clamp(40px, 5vw, 64px); }
.pz-switch__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(22, 22, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pz-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 16px;
  color: #a1a1a6;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.pz-tab:hover { background: rgba(255, 255, 255, 0.05); }
.pz-tab__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--pz-c) 14%, #1c1c1e);
  color: var(--pz-c);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.pz-tab__icon .pzi { width: 21px; height: 21px; }
.pz-tab__text { display: grid; min-width: 0; line-height: 1.3; }
.pz-tab__text strong { color: #f5f5f7; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-tab__text span { color: #86868b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pz-c) 55%, transparent),
    0 12px 32px -12px color-mix(in srgb, var(--pz-c) 70%, transparent);
}
.pz-tab[aria-selected="true"] .pz-tab__icon {
  background: var(--pz-c);
  color: #fff;
  box-shadow: 0 0 22px color-mix(in srgb, var(--pz-c) 60%, transparent);
}
.pz-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--pz-c);
  box-shadow: 0 0 14px var(--pz-c);
}
.pz-tab:focus-visible { outline: 3px solid rgba(41, 151, 255, 0.72); outline-offset: 2px; }

/* ══ 패널 ══ */
/* ★html 의 scroll-padding-top(62px, 고정 내비)에 더해지는 값이다. */
.pz-panel { position: relative; scroll-margin-top: 12px; }
.pz-panel[hidden] { display: none; }
/* 스크립트가 없을 때 — 네 패널이 위아래로. 머리카락 선 하나로 나눈다. */
.pz-panel + .pz-panel { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pz.is-enhanced .pz-panel + .pz-panel { margin-top: 0; padding-top: 0; border-top: 0; }

/* ★말 칸 376px — 핵심 칩 2열에서 가장 긴 칩(«계량 요약 · 증명서 열기», «MES/ERP 사내망 연동», 약 120px)이
 *   한 줄에 들어가는 폭이다. 칩 문구는 Product.chips 정본이라 줄이지 않고 칸을 넓힌다. */
.pz-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 376px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

/* ── 말 ── */
.pz-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--pz-c); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pz-kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pz-c); box-shadow: 0 0 12px var(--pz-c); }
.pz-kicker__sep { color: #6e6e73; }
.pz-name {
  margin-top: 14px;
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #f5f5f7;
}
.pz-promise {
  margin-top: 14px;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #f5f5f7 20%, color-mix(in srgb, var(--pz-c) 70%, #f5f5f7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pz-platform { margin-top: 10px; color: #86868b; font-size: 13px; }
.pz-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.pz-feat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e5e5ea;
  font-size: 13.5px;
  line-height: 1.3;
}
.pz-feat__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--pz-c) 16%, transparent);
  color: var(--pz-c);
}
.pz-feat__icon .pzi { width: 17px; height: 17px; }

/* ── 무대 ── */
.pz-stage { position: relative; min-width: 0; }
.pz-stage::before {
  content: "";
  position: absolute;
  inset: 4% 8% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pz-c) 30%, transparent), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.pz-device { position: relative; }
.pz-floor {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -22px;
  height: 44px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

/* ── 기기 틀: 계근대 PC 모니터 ── */
.pz-monitor { position: relative; max-width: 900px; margin-inline: auto; }
.pz-monitor__bezel {
  position: relative;
  padding: 11px 11px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2b2b2e, #151517 55%, #0d0d0f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 50px 90px -40px rgba(0, 0, 0, 0.95);
}
.pz-monitor__bezel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}
.pz-monitor__neck {
  width: 15%;
  height: 58px;
  margin: -1px auto 0;
  background: linear-gradient(90deg, #161618, #3b3b3f 42%, #2c2c30 58%, #121214);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.pz-monitor__foot {
  width: 34%;
  height: 11px;
  margin: 0 auto;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #45454a, #1c1c1f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 26px rgba(0, 0, 0, 0.7);
}
.pz-device--monitor .pz-floor { bottom: -16px; left: 26%; right: 26%; }

/* ── 기기 틀: 브라우저 창(관제 웹) ── */
.pz-window {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #1c1d20;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 50px 100px -36px rgba(0, 0, 0, 0.95),
    0 0 90px -30px color-mix(in srgb, var(--pz-c) 55%, transparent);
}
.pz-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, #2b2c30, #222327);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}
.pz-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #48494e; }
.pz-window__url {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44%;
  height: 21px;
  margin: 0 auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #6e6e73;
}
.pz-window__url .pzi { width: 12px; height: 12px; }

/* ── 화면(그림) ── */
.pz-screen {
  --pz-ar: 1680 / 1000;
  --pz-focus: 50% 0%;
  --pz-zoom: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: var(--pz-ar);
  overflow: hidden;
  border-radius: 5px;
  background: #060911;
}
.pz-window .pz-screen { border-radius: 0; }
.pz-screen__chrome { display: none; flex: none; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #202124; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pz-screen__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #47484c; }
.pz-screen__chrome span { width: 40%; height: 13px; margin: 0 auto; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.pz-screen[data-chrome="browser"] .pz-screen__chrome { display: flex; }
.pz-screen__view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pz-screen__view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pz-focus);
  transform: scale(var(--pz-zoom));
  transform-origin: var(--pz-focus);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, filter 0.35s ease;
}
/* ★통째로 넣는 보기(타임라인 1680×430) — 그림을 제 비율로 가운데에 두고, 위아래 남는 자리는 .pz-screen
 *   바탕(#060911 = 그 앱의 바탕색)이 채운다. 그림 아래 끝은 패널 테두리가 끊긴 자리라 살짝 흐리게 닫는다
 *   (막대 줄은 그림 높이 80% 위에 있어 흐려지지 않는다). */
.pz-screen[data-fit="contain"] .pz-screen__view { display: flex; align-items: center; }
.pz-screen[data-fit="contain"] .pz-screen__view img {
  height: auto;
  transform: none;
  -webkit-mask-image: linear-gradient(#000 86%, transparent);
  mask-image: linear-gradient(#000 86%, transparent);
}
.pz-screen.is-swapping .pz-screen__view img { opacity: 0.2; filter: blur(6px); }
.pz-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 26%, transparent 42%);
}

/* ── 무대 곁: 약속 카드 · 출처 · 화면 보기 ── */
.pz-side { margin-top: 26px; }
.pz-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; color: #a1a1a6; font-size: 13px; line-height: 1.5; text-align: center; }
.pz-src {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d1d1d6;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pz-note { color: #86868b; font-size: 11.5px; }
.pz-note:empty { display: none; }

/* ★썸네일은 칸이 좁으면 함께 줄어든다(flex-shrink). 1000~1110px 의 오른쪽 칸(약 565px)에 124px × 5 를
 *   고정 폭으로 두면 양쪽으로 넘쳐 마지막 썸네일이 화면 밖에서 잘렸다. `safe` 는 그래도 넘칠 때
 *   왼쪽 끝이 잘리지 않게 하는 안전판이다. */
.pz-views { display: flex; justify-content: center; justify-content: safe center; gap: 10px; margin-top: 16px; }
.pz-views:not(:has(.pz-thumb:not([hidden]))) { display: none; }
.pz-thumb {
  display: grid;
  gap: 7px;
  justify-items: center;
  flex: 0 1 124px;
  min-width: 0;
  padding: 6px 6px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #a1a1a6;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pz-thumb[hidden] { display: none; }
.pz-thumb__art {
  display: block;
  width: 100%;
  max-width: 112px;
  aspect-ratio: 168 / 100;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pz-thumb__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pz-thumb__label { font-size: 12px; line-height: 1.3; text-align: center; }
.pz-thumb:hover { background: rgba(255, 255, 255, 0.05); color: #f5f5f7; }
.pz-thumb:hover .pz-thumb__art { transform: translateY(-2px); }
.pz-thumb[aria-pressed="true"],
.pz-thumb[aria-current="true"] { color: #f5f5f7; }
.pz-thumb[aria-pressed="true"] .pz-thumb__art,
.pz-thumb[aria-current="true"] .pz-thumb__art {
  box-shadow: 0 0 0 2px var(--pz-c), 0 8px 24px -6px color-mix(in srgb, var(--pz-c) 70%, transparent);
}
.pz-thumb:focus-visible { outline: 3px solid rgba(41, 151, 255, 0.72); outline-offset: 2px; }

/* ══ 폰(앱 화면 재현) ══
 * ★앱 화면 안의 색은 mockups.css 가 앱 소스에서 옮긴 값 그대로다. 여기서는 기기(테·유리·버튼)와
 *   재현 조각에 새로 들어온 줄(상태줄 · 아래 탭 · 요약 창)만 그린다. */
.pz-device--phone { display: grid; justify-items: center; }
.pz .mock { margin: 0; }
.pz .phone {
  position: relative;
  width: 312px;
  max-width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 46px;
  background: #050506;
  box-shadow:
    0 0 0 2px #3a3a3e,
    0 0 0 3.5px #17171a,
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 70px 90px -40px rgba(0, 0, 0, 0.95),
    0 30px 80px -30px color-mix(in srgb, var(--pz-c) 45%, transparent);
}
/* ★틀은 한 기종을 흉내 내지 않는다. 안의 화면이 Android Compose 소스(Material 3 NavigationBar)를
 *   옮긴 것이라, 다이내믹 아일랜드 달린 틀에 넣으면 아는 사람 눈에는 «섞인 기기» 로 보인다.
 *   그래서 가운데 펀치홀 카메라 + 오른쪽 옆 버튼(음량 · 전원)으로 둔다. iOS 앱도 탭 이름은 같다. */
.pz .phone::before,
.pz .phone::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2e, #4a4a4f);
}
.pz .phone::before { top: 132px; height: 92px; }
.pz .phone::after { top: 248px; height: 52px; }
.pz .phone__notch {
  top: 21px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #1d2a3a 0 22%, #05070a 46%);
  box-shadow: 0 0 0 1.5px #000;
  z-index: 9;
}
.pz .phone__screen {
  position: relative;
  padding: 0 14px;
  border-radius: 37px;
  min-height: 0;
  overflow: hidden;
}
/* 유리 반사 — 화면 위에 얇게 */
.pz .phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 46%);
}
.pz .app-owner { padding-inline: 0; }
.pz .app-owner > * { margin-inline: 14px; }
.pz .app-owner > .app-status,
.pz .app-owner > .app-owner__bar,
.pz .app-owner > .app-nav { margin-inline: 0; }

/* 상태줄 · 아래 탭 · 요약 창 — 재현 조각에 새로 들어온 줄 */
.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  margin: -46px -14px -6px;
  padding: 2px 26px 0 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.app-status__icons { display: flex; align-items: center; gap: 5px; }
.app-status svg { display: block; }
.pz .app-status { position: sticky; top: 0; z-index: 5; margin: 0 -14px; background: #071014; }
.pz .app-owner > .app-status { margin: 0; }

.app-nav {
  position: relative;
  display: flex;
  justify-content: space-around;
  margin: 2px -14px -18px;
  padding: 10px 6px 24px;
  background: #0F1B1F;
  color: #A8B8BC;
  font-size: 11.5px;
}
.app-nav > span { display: grid; justify-items: center; gap: 3px; min-width: 64px; }
.app-nav i { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; }
.app-nav svg { display: block; }
.app-nav .is-on { color: #E8F0F2; }
.app-nav .is-on i { background: #4A350B; color: #FFE2A7; }
.app-nav--owner .is-on { color: #62D7E8; }
.app-nav--owner .is-on i { background: #62D7E8; color: #071014; }
/* 기기의 홈 막대 */
.app-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 108px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}
.pz .app-nav { position: sticky; bottom: 0; z-index: 5; margin: auto -14px 0; }
.pz .app-owner > .app-nav { margin: auto 0 0; }

/* 계량 요약 창 — AlertDialog(0xFFF7F5EF) · 본문 Surface(0xFFFFFEFA) */
.odialog__card {
  display: grid;
  gap: 12px;
  padding: 20px 18px 14px;
  border-radius: 26px;
  background: #F7F5EF;
  color: #172126;
}
.odialog__title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.odialog .receipt { gap: 7px; padding: 14px 16px; border-radius: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.odialog .receipt__rows > div { font-size: 11px; }
.odialog__actions { display: flex; align-items: center; gap: 8px; }
.obtn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #61757A;
  color: #62D7E8;
  font-size: 12px;
  font-weight: 600;
}
.obtn--text { border-color: transparent; padding-inline: 8px; }
.odialog__close { justify-self: end; padding: 4px 8px; color: #62D7E8; font-size: 12.5px; font-weight: 600; }

/* ── 스크립트가 켠 폰: 실제 기기 비율 · 화면 굴리기 · 요약 창은 위에 뜬다 ── */
.pz.is-enhanced .phone__screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 9 / 19.5;
}
.pz.is-enhanced .phone__screen > * { flex: none; }
.pz.is-enhanced .odialog {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 14px;
  background: rgba(2, 6, 8, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.pz.is-enhanced .odialog__card { transform: translateY(14px) scale(0.96); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pz.is-enhanced [data-view="proof"] .odialog { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.pz.is-enhanced [data-view="proof"] .odialog__card { transform: none; }
.pz:not(.is-enhanced) .odialog { margin-top: 4px; }

/* 폰 보기 썸네일 — 지금 화면의 복제를 줄여 그린다(products-tabs.js) */
.pz-thumb--mock { flex: none; width: 96px; }
.pz-thumb--mock .pz-thumb__art {
  position: relative;
  width: 76px;
  aspect-ratio: 9 / 19.5;
  border-radius: 13px;
  background: #071014;
}
.pz-thumb--mock .pz-thumb__art > .phone__screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 294px;
  transform: scale(0.2585);
  transform-origin: 0 0;
  border-radius: 37px;
  pointer-events: none;
}

/* 폰 무대 — 폰 옆 여백은 이 제품의 약속 카드와 화면 보기가 채운다 */
.pz-panel--phone .pz-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.pz-panel--phone .pz-side { margin-top: 0; }
.pz-panel--phone .pz-cap,
.pz-panel--phone .pz-views { justify-content: flex-start; text-align: left; }
.pz-proofs { display: grid; gap: 10px; margin-bottom: 22px; }
.pz-proof {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--pz-c) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pz-proof strong { color: #f5f5f7; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.pz-proof span { color: #a1a1a6; font-size: 13px; line-height: 1.5; }

/* ══ 자세히 ══ */
.pz-more { margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid rgba(255, 255, 255, 0.09); }
.pz-more summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 2px;
  list-style: none;
  color: #f5f5f7;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pz-more summary::-webkit-details-marker { display: none; }
.pz-more__title { flex: none; }
.pz-more__count { min-width: 0; overflow: hidden; color: #86868b; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pz-more__mark {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pz-c) 18%, #1c1c1e);
  transition: transform 0.3s ease;
}
.pz-more__mark::before,
.pz-more__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--pz-c);
  transform: translate(-50%, -50%);
}
.pz-more__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.pz-more[open] .pz-more__mark { transform: rotate(45deg); }
.pz-more summary:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.pz-more summary:focus-visible { outline: 3px solid rgba(41, 151, 255, 0.72); outline-offset: 2px; border-radius: 8px; }
.pz-more__body { padding: 8px 0 12px; }
.pz-more[open] > .pz-more__body { animation: rise 0.45s var(--ease, ease) both; }
.pz-more__summary { max-width: 52em; color: #c7c7cc; font-size: 16px; line-height: 1.65; }
.pz-more__hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.pz-more__hl li { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.pz-more__hl strong { color: #f5f5f7; font-size: 14.5px; }
.pz-more__hl span { color: #a1a1a6; font-size: 13px; line-height: 1.5; }
.pz-groups { columns: 3 260px; column-gap: 36px; margin-top: 28px; }
.pz-group { break-inside: avoid; margin-bottom: 26px; }
.pz-group h4 { margin-bottom: 10px; color: var(--pz-c); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.pz-group li { position: relative; margin-bottom: 7px; padding-left: 14px; color: #c7c7cc; font-size: 14px; line-height: 1.55; }
.pz-group li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--pz-c) 70%, #6e6e73); }

/* ══ 원장 띠 — 네 자리, 원장 하나 ══ */
.pz-ledger { margin-top: clamp(64px, 7vw, 96px); }
.pz-ledger__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pz-ledger__cell { position: relative; padding-bottom: 38px; }
.pz-ledger__cell a {
  display: grid;
  align-content: start;
  gap: 3px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--pz-c) 70%, transparent);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pz-ledger__cell a:hover { background: #18181a; transform: translateY(-2px); }
.pz-ledger__where { color: var(--pz-c); font-size: 12px; font-weight: 600; }
.pz-ledger__cell strong { color: #f5f5f7; font-size: 16px; letter-spacing: -0.02em; }
.pz-ledger__role { color: #a1a1a6; font-size: 13px; line-height: 1.45; }
.pz-ledger__cell a { position: relative; }
/* 쓰는 선의 이름표 — 넓은 화면에서는 실선 오른쪽 옆에 붙는다. */
.pz-ledger__write {
  position: absolute;
  top: calc(100% + 10px);
  left: calc(50% + 10px);
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pz-c) 22%, #0b0b0d);
  border: 1px solid color-mix(in srgb, var(--pz-c) 60%, transparent);
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
/* 칸에서 원장으로 내려가는 선 — 스테이션만 실선(쓰는 선), 나머지는 점선(보는 선) */
.pz-ledger__cell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 38px;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.42);
}
.pz-ledger__cell.is-source::after { border-left: 2px solid var(--pz-c); box-shadow: 0 0 10px var(--pz-c); }
.pz-ledger__cell.is-source::before {
  content: "";
  position: absolute;
  left: calc(50% - 3.5px);
  bottom: 30px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--pz-c), 0 0 18px var(--pz-c);
  opacity: 0;
}
.pz-ledger__bus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.12), rgba(125, 122, 255, 0.1) 50%, rgba(240, 100, 189, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pz-ledger__core { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-size: 16px; }
.pz-ledger__core .pzi { color: #2997ff; }
.pz-ledger__note { color: #a1a1a6; font-size: 14px; }

/* ══ 움직임 — 장마다 하나: 고른 제품이 떠오르고, 원장 선으로 값이 흐른다 ══ */
@keyframes pz-rise { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pz-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* ★점은 스테이션 칸의 아래 모서리에서 출발해 원장 띠에 닿는다(쓰는 선 = 실선 하나뿐). */
@keyframes pz-flow {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(30px); }
}
.pz.is-enhanced .pz-panel:not([hidden]) .pz-device { animation: pz-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pz.is-enhanced .pz-panel:not([hidden]) .pz-copy { animation: pz-fade 0.55s ease both; }
.pz-ledger__cell.is-source::before { animation: pz-flow 2.4s ease-in-out infinite; }

/* ══ 데스크톱 — 스위처가 장 안에서 따라붙는다 ══
 * ★따라붙으면(is-stuck) 안쪽 막대만 얇아진다. 바깥 틀 높이는 고정 — 아래 내용이 덜컹이지 않게. */
.pz-switch__sentinel { height: 1px; margin-bottom: -1px; }
@media (min-width: 1000px) {
  .pz-switch { position: sticky; top: 60px; height: 78px; }
  .pz-switch__track { transition: padding 0.3s ease, max-width 0.3s ease, background 0.3s ease; margin-inline: auto; max-width: 1080px; }
  .pz-switch.is-stuck .pz-switch__track { max-width: 920px; padding: 4px; background: rgba(18, 18, 20, 0.86); }
  .pz-switch.is-stuck .pz-tab { padding: 6px 12px; }
  .pz-switch.is-stuck .pz-tab__icon { width: 30px; height: 30px; border-radius: 9px; }
  .pz-switch.is-stuck .pz-tab__icon .pzi { width: 17px; height: 17px; }
  .pz-switch.is-stuck .pz-tab__text span { display: none; }
  .pz-switch.is-stuck .pz-tab[aria-selected="true"]::after { bottom: -5px; }
  /* 따라붙은 스위처(60 + 78px) 바로 아래에 패널 머리가 오게 — 62px 는 html 이 이미 준다. */
  .pz-panel { scroll-margin-top: 88px; }
  /* ★기기 폭을 뷰포트 높이에 묶는다 — 기기 + 출처 + 썸네일(≈170px)이 따라붙은 스위처(아래 끝 ≈112px)
   *   밑 한 화면에 들어가야, 썸네일을 누른 순간 바뀐 화면의 머리가 스위처 밑에 가리지 않는다.
   *   모니터 높이 ≈ 폭 × 1000/1680 + 108px(베젤 · 목 · 받침), 창 높이 ≈ 폭 × 1150/1600 + 36px(주소창).
   *   더 낮은 화면은 products-tabs.js 의 reveal() 이 기기를 스위처 아래로 올려 보인다. */
  .pz-monitor { max-width: clamp(560px, calc((100vh - 400px) * 1.68), 900px); }
  .pz-window { max-width: clamp(540px, calc((100vh - 330px) * 1.39), 880px); }
  @supports (height: 100svh) {
    .pz-monitor { max-width: clamp(560px, calc((100svh - 400px) * 1.68), 900px); }
    .pz-window { max-width: clamp(540px, calc((100svh - 330px) * 1.39), 880px); }
  }
}

/* ══ 태블릿 ══ */
@media (max-width: 999px) {
  /* ★4칸 한 줄이면 640~999px 에서 플랫폼 줄이 «Windows · mac…» 로 잘린다. 2×2 로 둔다. */
  .pz-switch__track { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .pz-tab[aria-selected="true"]::after { display: none; }
  .pz-panel__grid { grid-template-columns: 1fr; }
  .pz-copy { max-width: 640px; }
  .pz-more__hl { grid-template-columns: 1fr 1fr; }
}

/* ══ 휴대폰 ══ */
@media (max-width: 640px) {
  .pz-tab { gap: 9px; padding: 9px 10px; }
  .pz-tab__icon { width: 34px; height: 34px; border-radius: 10px; }
  .pz-tab__icon .pzi { width: 18px; height: 18px; }
  .pz-tab__text strong { font-size: 13.5px; }
  .pz-tab__text span { font-size: 11px; white-space: normal; }
  .pz-feats { gap: 6px; }
  .pz-feat { gap: 8px; padding: 8px 9px; font-size: 12.5px; }
  .pz-feat__icon { width: 26px; height: 26px; }
  .pz-monitor__bezel { padding: 6px 6px 16px; border-radius: 11px; }
  .pz-monitor__bezel::after { bottom: 6px; width: 4px; height: 4px; }
  .pz-monitor__neck { height: 30px; }
  .pz-monitor__foot { height: 8px; }
  .pz-window { border-radius: 10px; }
  .pz-window__bar { height: 26px; gap: 5px; padding: 0 10px; }
  .pz-window__bar i { width: 8px; height: 8px; }
  .pz-window__url { height: 15px; }
  /* ★옆으로 굴리는 띠로 두면 넷째·다섯째 보기가 화면 밖에 숨는다. 3 + 2 로 접어 전부 보이게 한다. */
  .pz-views { flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
  .pz-thumb { flex: none; width: 104px; }
  .pz-thumb__art { width: 94px; }
  .pz-panel--phone .pz-stage { grid-template-columns: 1fr; }
  /* 좁은 화면에서는 화면 보기(출처 · 썸네일)를 폰 바로 밑에, 약속 카드는 그 뒤에 */
  .pz-panel--phone .pz-side { display: flex; flex-direction: column; }
  .pz-panel--phone .pz-proofs { order: 3; margin: 22px 0 0; }
  .pz .phone { width: 292px; }
  .pz-ledger { margin-top: 48px; }
  .pz-more__hl { grid-template-columns: 1fr; }
  .pz-groups { columns: 1; }
  /* ★두 줄로 접히면 윗줄의 선이 아랫줄 칸에 꽂혀 «칸 → 칸» 으로 읽힌다. 선을 빼고, 쓰는 자리
     (스테이션)는 칸 테두리로만 구분한다. */
  .pz-ledger__row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .pz-ledger__cell { padding-bottom: 0; }
  .pz-ledger__cell::after,
  .pz-ledger__cell.is-source::before { display: none; }
  .pz-ledger__cell.is-source a { border-color: color-mix(in srgb, var(--pz-c) 60%, transparent); }
  .pz-ledger__write { position: static; justify-self: start; margin-top: 6px; }
  .pz-ledger__cell a { padding: 13px 14px; }
}

/* ══ 움직임 줄이기 — 떠오름 · 흐름 · 색 흐름을 끈다 ══ */
@media (prefers-reduced-motion: reduce) {
  #products.pz { transition: none; }
  .pz.is-enhanced .pz-panel:not([hidden]) .pz-device,
  .pz.is-enhanced .pz-panel:not([hidden]) .pz-copy,
  .pz-ledger__cell.is-source::before,
  .pz-more[open] > .pz-more__body { animation: none; }
  .pz-ledger__cell.is-source::before { opacity: 1; bottom: 12px; }
  .pz-screen__view img,
  .pz.is-enhanced .odialog,
  .pz.is-enhanced .odialog__card,
  .pz-thumb__art,
  .pz-ledger__cell a { transition: none; }
}
