/* ============================================================
   화면 1 · 저장 — T03 모바일 목업 쇼케이스
   무대 구도 / 기기가 바닥에 선다 / 앞 폰 화면이 초점
   3겹 · 기기 아래 y16 blur40 18% + 접지 y2 blur6 24%
   기울기 0~12도, 2D 기울기만 (3D 회전 금지)
   ============================================================ */

.copy{
  font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.18; max-width: 19ch;
  margin: var(--s3) 0 0;
}
.copy em{ font-style: normal; color: var(--accent); }

/* ---------- 스크롤이 입력이 된다 (생동 kinetic) ----------
   기기 자체는 움직이지 않는다. 바뀌는 것은 기기 화면 안 내용뿐이다.
   스크롤을 가로채지 않는다 — 트랙을 길게 두고 무대를 sticky 로 붙일 뿐이다. */
.k-track{ position: relative; }
@media (min-width: 901px){
  .k-track{ height: 300vh; }
  .k-track > .stage{
    position: sticky; top: 0;
    min-height: 100vh; align-content: center;
    padding: var(--space-7) 0;
  }
}
@media (prefers-reduced-motion: reduce){
  .k-track{ height: auto !important; }
  .k-track > .stage{ position: static !important; min-height: 0 !important; }
}
.k-rail{ grid-column: 1 / -1; justify-self: center; margin-top: var(--space-6); }
@media (max-width: 900px){ .k-rail{ display: none; } }

/* 화면이 낮으면 기기를 줄인다 — sticky 무대가 잘리지 않게 */
@media (min-width: 901px) and (max-height: 880px){
  .stage{ --ph-w: 274px; --ph-h: 594px; --pb-h: 546px; --pb-w: 252px; }
}

/* ---------- 무대 ---------- */
.stage{
  --ph-w: 322px;                       /* 앞 폰 — 9 : 19.5 */
  --ph-h: 698px;
  --pb-h: 642px;                       /* 뒤 폰 — 앞 기기 높이의 92% (높이차 8%) */
  --pb-w: 296px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s6);
  padding: var(--s7) 0 var(--s8);
  min-height: calc(var(--ph-h) + var(--s8));
}

/* 기기 좌우로 화면 폭의 12% 이상 — 오른쪽 여백을 비워 둔다 */
.phones{
  position: relative;
  justify-self: end;
  margin-right: clamp(0px, 12vw, 128px);
  width: calc(var(--ph-w) + 222px);   /* 뒤 기기가 왼쪽으로 나오는 만큼 자리를 미리 잡는다 */
  height: var(--ph-h);
}

/* ---------- 폰 ---------- */
.phone{
  position: absolute; bottom: 0;
  border-radius: 46px;
  background: #0A0B0D;                 /* 베젤 */
  padding: 12px;
  box-shadow: var(--e3);               /* 띄움 그림자 + 접지 그림자 */
}
.phone-front{ right: 0; width: var(--ph-w); height: var(--ph-h); z-index: 2; }

/* 뒤 기기는 blur 3px, 앞 기기에 25% 이내로 가려진다 (296 × 0.25 = 74px) */
.phone-back{
  right: calc(var(--ph-w) - 74px);
  width: var(--pb-w); height: var(--pb-h);
  z-index: 1;
  filter: blur(3px);
  transform: rotate(3deg);
  transform-origin: 50% 100%;
  box-shadow: var(--e2);
}
[data-motion="tilt"]{ transform: rotate(8deg) translateY(40px); opacity: 0;
  transition: transform var(--d3) var(--ease), opacity var(--d3) var(--ease); }
[data-motion="tilt"].in{ transform: rotate(3deg) translateY(0); opacity: 1; }

.screen{
  width: 100%; height: 100%;
  background: var(--surface);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}

/* 상태바 — 주소창은 두지 않는다 */
.statusbar{
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 4px; font-size: 11px; font-weight: 700; color: var(--ink);
}
.statusbar .sigs{ display: flex; align-items: center; gap: 4px; }
.bar-i{ width: 3px; border-radius: 1px; background: var(--ink); }
.batt{ width: 20px; height: 10px; border: 1.3px solid var(--ink); border-radius: 3px; padding: 2px; }
.batt i{ display: block; height: 100%; width: 68%; background: var(--ink); border-radius: 1px; }

.app-head{ flex: none; padding: var(--s3) 16px var(--s2); }
.app-head .t{ font-size: var(--fs-md); font-weight: 800; letter-spacing: -.02em; }
.app-head .s{ font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

.app-body{ flex: 1 1 auto; overflow-y: auto; padding: var(--s2) 16px var(--s5); }
.app-foot{ flex: none; padding: var(--s3) 16px calc(var(--s3) + 8px); background: var(--surface); }
.app-foot .hint{ font-size: 10.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.home-ind{ width: 104px; height: 4px; border-radius: 2px; background: var(--line2); margin: 8px auto 0; }

.pbtn{
  -webkit-appearance: none; appearance: none; width: 100%;
  border: 1.4px solid var(--accent); background: var(--accent); color: #fff;
  padding: 12px; border-radius: var(--r3); font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer; transition: opacity var(--d1) var(--ease);
}
.pbtn:hover{ opacity: .9; }
.pbtn[data-variant="ghost"]{ background: transparent; color: var(--accent); }
.pbtn[data-variant="quiet"]{ background: transparent; color: var(--muted); border-color: var(--line2); }
.pbtn:disabled{ opacity: .5; cursor: not-allowed; }
.pbtn + .pbtn{ margin-top: var(--s2); }

/* ---------- 가상 캡처 카드 ---------- */
.shots{ display: grid; gap: var(--s3); }
.shot{
  -webkit-appearance: none; appearance: none; text-align: left;
  border: 1.4px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r3); padding: 0; overflow: hidden; cursor: pointer; width: 100%;
  transition: border-color var(--d1) var(--ease);
}
.shot:hover{ border-color: var(--line2); }
.shot[aria-pressed="true"]{ border-color: var(--accent); border-width: 2px; }
.shot-top{ display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.shot-top .av{ width: 20px; height: 20px; border-radius: 50%; flex: none; }
.shot-top .hd{ font-size: 11px; font-weight: 700; }
.shot-top .tag{ margin-left: auto; font-size: 10px; font-weight: 700; color: var(--muted); }
.shot-img{ width: 100%; aspect-ratio: 4 / 5; display: block; }
.shot-cap{ display: block; padding: 8px 12px 12px; font-size: 11.5px; line-height: 1.45; }
.shot-cap b{ font-weight: 700; }
.shot-note{ display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ---------- 분석 ---------- */
.steps{ display: grid; gap: 8px; margin-top: var(--s4); }
.step{ display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.step .dot{ width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--line2); flex: none; }
.step.on{ color: var(--ink); font-weight: 600; }
.step.on .dot{ border-color: var(--accent); background: var(--accent); }
.prog{ height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: var(--s4); }
.prog i{ display: block; height: 100%; background: var(--accent); width: 0; transition: width 1.5s linear; }

/* ---------- 후보 ---------- */
.verdict{
  border: 1.6px solid var(--line2); border-radius: var(--r3);
  padding: var(--s3); margin-bottom: var(--s3);
}
.verdict[data-level="high"]{ border-color: var(--accent); }
.verdict[data-level="mid"]{ border-color: var(--accent2); }
.verdict[data-level="low"]{ border-color: var(--accent2); border-style: dashed; }
.verdict .k{ font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.verdict .v{ font-size: var(--fs-md); font-weight: 800; letter-spacing: -.02em; margin-top: 4px; line-height: 1.3; }
.verdict .d{ font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.verdict[data-level="low"] .v, .verdict[data-level="mid"] .v{ color: var(--warn-ink); }

.cands{ display: grid; gap: var(--s2); }
.cand{
  -webkit-appearance: none; appearance: none; text-align: left; width: 100%;
  border: 1.4px solid var(--line); background: transparent; color: var(--ink);
  border-radius: var(--r3); padding: 12px; cursor: pointer;
  transition: border-color var(--d1) var(--ease);
}
.cand:hover{ border-color: var(--accent); }
.cand .r1{ display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.cand .nm, .cand .kd{ white-space: nowrap; }
.cand .nm{ font-size: var(--fs-sm); font-weight: 700; letter-spacing: -.01em; }
.cand .kd{ font-size: 10.5px; color: var(--muted); }
.cand .pc{ margin-left: auto; font-size: var(--fs-md); font-weight: 800; letter-spacing: -.03em; }
.cand .pc u{ text-decoration: none; font-size: 10px; font-weight: 700; margin-left: 1px; }
.cmeter{ display: block; height: 3px; border-radius: 2px; background: var(--line); margin: 8px 0 8px; overflow: hidden; }
.cmeter i{ display: block; height: 100%; background: var(--accent); }
.cand[data-rank="2"] .cmeter i, .cand[data-rank="3"] .cmeter i{ background: var(--line2); }
.why{ display: flex; flex-wrap: wrap; gap: 4px; }
.why span{
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--r1);
  border: 1px solid var(--line2); color: var(--muted);
}
.why span[data-w="sign"]{ color: var(--accent); border-color: currentColor; }
.why span[data-w="caption"]{ color: var(--ink); }
.why span[data-w="weak"]{ border-style: dashed; }

/* ---------- 직접 고르기 ---------- */
.pick-in{
  width: 100%; border: 1.4px solid var(--line2); border-radius: var(--r3);
  padding: 12px 12px; font-size: var(--fs-sm); background: var(--surface);
  margin-bottom: var(--s3);
}
.plist{ display: grid; gap: 8px; }
.prow{
  -webkit-appearance: none; appearance: none; text-align: left; width: 100%;
  border: 1.4px solid var(--line); border-radius: var(--r2); background: transparent;
  color: var(--ink); padding: 12px 12px; cursor: pointer; display: flex; align-items: baseline; gap: 8px;
  transition: border-color var(--d1) var(--ease);
}
.prow:hover{ border-color: var(--accent); }
.prow .nm{ font-size: var(--fs-sm); font-weight: 700; }
.prow .ds{ margin-left: auto; font-size: 10.5px; color: var(--muted); }

/* ---------- 확정 장소 카드 ---------- */
.place-h{ font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.place-k{ font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.facts{ display: grid; gap: var(--s3); margin-top: var(--s4); }
.fact{ display: grid; gap: 4px; }
.fact .k{ font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.fact .v{ font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.fact .m{ display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fact .upd{ font-size: 10px; color: var(--muted); }
.conf-chip{
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.4px solid var(--accent); border-radius: var(--rp);
  padding: 4px 8px; font-size: 10.5px; font-weight: 700; color: var(--accent);
  margin-top: var(--s2);
}

/* ---------- 확대 콜아웃 1개 ---------- */
.callout{
  align-self: center; justify-self: end;
  max-width: 300px; position: relative;
  padding-right: var(--s6);
}
.callout .pin{
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font-size: 13px; font-weight: 800;
}
.callout .ct{
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.5;
  letter-spacing: -.015em; margin-top: var(--s3);
}
.callout .cd{ font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; margin-top: var(--s2); }
.callout .line{
  position: absolute; left: 100%; top: 50%; width: clamp(24px, 7vw, 90px);
  height: 2px; background: var(--accent); transform: translateX(calc(-1 * var(--s6)));
}
.callout .line::after{
  content: ""; position: absolute; right: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- 뒤 폰 미리보기 ---------- */
.mini{ padding: var(--s4) 16px; display: grid; gap: 12px; }
.mini .mt{ font-size: var(--fs-md); font-weight: 800; letter-spacing: -.02em; }
.mini .row{ border: 1.4px solid var(--line); border-radius: var(--r2); padding: 8px 12px; }
.mini .row .a{ font-size: 12px; font-weight: 700; }
.mini .row .b{ font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 390px ---------- */
@media (max-width: 900px){
  .stage{ grid-template-columns: minmax(0,1fr); gap: var(--s5); padding: var(--s6) 0 var(--s7); min-height: 0; }
  .phones{ justify-self: center; margin-right: 0; width: var(--ph-w); }
  .phone-back{ display: none; }          /* 두 대가 다 안 들어가면 앞 기기만 남긴다 */
  .callout{ justify-self: stretch; max-width: none; padding-right: 0; order: 2; }
  .callout .line{ display: none; }
  .copy{ font-size: var(--fs-xl); max-width: 22ch; }
}
@media (max-width: 420px){
  .stage{ --ph-w: min(322px, calc(100vw - 32px)); --ph-h: calc(min(322px, 100vw - 32px) * 2.167); }
  .phone{ padding: 8px; border-radius: 40px; }
  .screen{ border-radius: 32px; }
}
