/* 기존 다운로드 페이지의 설치 안내 그림과 동작. */
.installation-guide {
 --app-frame: #0f0f0f; --app-chrome: #181818; --app-work: #191919; --app-side: #0c0c0c;
 --app-line: #262626; --app-text: #e6e6e6; --app-muted: #b4b4b4; --app-dim: #8f8f8f;
 --r-win: 12px; --deep: #1446d1; --navy: #0b0d12;
 --shadow-win: 0 0 0 1px #414c54, 0 18px 36px -14px #0008;
 --ease-std: cubic-bezier(.4,0,0,1); --ease-spring: cubic-bezier(.34,1.3,.64,1); --dur-spring: 480ms;
}
.win {
  position: relative;
  container-type: inline-size;
  background: var(--app-frame);
  border-radius: var(--r-win);
  box-shadow: var(--shadow-win);
  color: var(--app-text);
  font-size: 13px; line-height: 1.55; letter-spacing: -0.005em;
  isolation: isolate;
}
.win__bar {
  position: relative;
  height: 40px; display: flex; align-items: center; padding: 0 16px;
  background: var(--app-chrome);
  border-bottom: 1px solid var(--app-line);
  border-radius: var(--r-win) var(--r-win) 0 0;
}
.win__dots { display: flex; gap: 7px; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.win__title {
  position: absolute; inset: 0 90px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 500; color: var(--app-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win--sm .win__bar { height: 32px; padding: 0 12px; }
.win--sm .win__dots { gap: 6px; }
.win--sm .win__dots i { width: 9px; height: 9px; }
.win--sm .win__title { font-size: 11.5px; }
.win--sm { font-size: 12px; }
/* data-demo 안의 [data-at] 조각: 순서대로 .is-on 이 붙어요 */
.js [data-demo] [data-at] {
  opacity: 0; transform: translateY(4px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js [data-demo] [data-at].is-on { opacity: 1; transform: none; }
.js [data-demo] [data-at][data-fx="spring"] {
  transform: translateY(24px) scale(0.97);
  transition-duration: var(--dur-spring); transition-timing-function: var(--ease-spring);
}
.js [data-demo] [data-at][data-fx="spring"].is-on { transform: none; }
.js [data-demo] [data-at][data-fx="grow"] {
  opacity: 1; transform: scaleX(0); transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.js [data-demo] [data-at][data-fx="grow"].is-on { transform: none; }
.js [data-demo] [data-at][data-fx="pop"] {
  transform: translateY(10px) scale(0.94);
  transition-duration: 360ms; transition-timing-function: var(--ease-spring);
}
.js [data-demo] [data-at][data-fx="pop"].is-on { transform: none; }

/* 단계 한 칸: 왼쪽 글, 오른쪽 그림 */
.inst { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.inst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inst__step {
  display: grid; place-items: start center;
  padding-block: clamp(40px, 5vw, 64px);
}
.inst__step[hidden] { display: none; }
.inst__step .eyebrow + .h3 { margin-top: 14px; }
.inst__step .h3 { font-size: clamp(20px, 0.6vw + 17px, 24px); }
.inst__art .win { transition: translate 0.5s var(--ease-out); }
.inst__step:hover .inst__art .win { translate: 0 -4px; }
.inst__step .h3 + .text { margin-top: 10px; max-width: 30em; }
.inst__step .link-arrow { margin-top: 18px; font-size: var(--fs-small); }
.inst__art { position: relative; width: 100%; max-width: 420px; }
.inst__art .win__title { inset: 0 70px; }
/* 테두리가 그림 바깥으로 나가서, 안의 창은 다른 단계와 같은 크기와 높이에 놓여요 */
.inst__frame { margin: -54px -20px -20px; padding: 28px 20px 20px; width: calc(100% + 40px); min-width: 0; border: 1px solid var(--line-strong); border-radius: 18px; display: grid; place-items: center; }
.inst__frame legend { padding: 0 10px; margin-inline: auto; font-size: var(--fs-small); font-weight: 700; color: var(--text); }
.cursor { position: absolute; z-index: 3; width: 18px; height: 22px; pointer-events: none; }

/* 윈도우 창: 제목은 왼쪽, 최소화·최대화·닫기는 오른쪽 */

/* 01 다운로드 폴더의 DMG */
.fd__body {
  position: relative; height: 210px; display: grid; place-items: center;
  background: var(--app-work); border-radius: 0 0 var(--r-win) var(--r-win);
}
.fd__file { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 168px; }
.fd__icon { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; }
.disk {
  position: relative; width: 52px; height: 40px; border-radius: 6px;
  background: #d9dde2;
  box-shadow: inset 0 -12px 0 #b9bfc6, 0 6px 12px -6px rgba(0, 0, 0, 0.8);
}
.disk::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: #8e959d; }
.fd__name { position: relative; isolation: isolate; padding: 1px 6px; border-radius: 4px; font-size: 11.5px; line-height: 1.45; text-align: center; color: var(--app-text); overflow-wrap: anywhere; }
.fd__sel-icon { position: absolute; inset: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.fd__sel-name { position: absolute; inset: 0; z-index: -1; border-radius: 4px; background: var(--deep); }
.fd__name span { position: relative; }
.fd .cursor { left: calc(50% + 10px); top: 34px; }
.ring { position: absolute; left: 50%; top: 32px; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); pointer-events: none; }
.js [data-demo] .ring[data-at] { opacity: 0; transform: none; filter: none; transition: none; }
.js [data-demo] .ring[data-at].is-on { animation: ring 900ms var(--ease-out) both; }
@keyframes ring {
  0% { opacity: 0.9; transform: scale(0.4); }
  40% { opacity: 0; transform: scale(1.4); }
  41% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* 02 설치 창: macOS 가 여는 DMG 창. 바탕은 실제 설치 창처럼 밝아요 */
.dmg__body {
  display: grid; place-items: center;
  height: 236px; padding: 0 20px;
  overflow: hidden;
  background: #f5f5f7;
  border-radius: 0 0 var(--r-win) var(--r-win);
}
.dmg__stage {
  --slot: 112px;
  position: relative;
  width: min(100%, 340px);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.dmg__slot { width: var(--slot); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dmg__label { font-size: 12.5px; font-weight: 500; color: #1d1d1f; white-space: nowrap; }
.dmg__icon { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 16px -8px rgba(0, 0, 0, 0.45); }
.dmg__icon img { width: 100%; height: 100%; }
.dmg__arrow {
  position: absolute; left: var(--slot); right: var(--slot); top: 30px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dmg__arrow i { width: 6px; height: 4px; background: #b8bcc2; }
.dmg__arrow i:last-child { width: 0; height: 0; background: none; border-left: 8px solid #b8bcc2; border-block: 6px solid transparent; }
/* 맥 폴더 모양 */
.dmg__folder { position: relative; width: 80px; height: 76px; }
.dmg__folder::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 32px; height: 12px;
  border-radius: 5px 5px 0 0; background: #3f8fc4;
}
.dmg__folder::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 18px; bottom: 6px;
  border-radius: 6px; background: var(--accent);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 8px 16px -8px rgba(0, 0, 0, 0.45);
}
/* 끌고 가는 복사본: 무대 폭만큼 넓고, 아이콘은 왼쪽 칸에 있어요 */
.dmg__drag { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; pointer-events: none; transform-origin: calc(var(--slot) / 2) 38px; }
.dmg__drag .dmg__slot { position: relative; }
.dmg__drag .cursor { left: calc(var(--slot) / 2 + 22px); top: 50px; }
.js [data-demo] .dmg__drag[data-at] { opacity: 0; transform: none; filter: none; transition: none; }
.js [data-demo] .dmg__drag[data-at].is-on { animation: dmg-drag 1500ms var(--ease-std) both; }
@keyframes dmg-drag {
  0% { opacity: 0; transform: none; }
  12% { opacity: 0.92; transform: translateY(-4px) scale(1.04); }
  72% { opacity: 0.92; transform: translateX(calc(100% - var(--slot))) translateY(-4px) scale(1.04); }
  86% { opacity: 0.8; transform: translateX(calc(100% - var(--slot))) scale(0.7); }
  100% { opacity: 0; transform: translateX(calc(100% - var(--slot))) scale(0.4); }
}
.js [data-demo] .dmg__folder[data-at] { opacity: 1; transform: none; filter: none; transition: none; }
.js [data-demo] .dmg__folder[data-at].is-on { animation: folder-take 460ms var(--ease-spring); }
@keyframes folder-take {
  0% { transform: none; }
  40% { transform: scale(1.08); filter: brightness(1.08); }
  100% { transform: none; }
}
.inst__art .perch { right: 28px; }

/* 03 처음 열 때 macOS 가 묻는 창 */
.ask__body {
  position: relative; height: 236px; display: grid; place-items: center;
  background: var(--app-work); border-radius: 0 0 var(--r-win) var(--r-win);
}
.ask {
  position: relative; width: 232px; padding: 20px 16px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 12px; background: #2a2a2c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 36px -12px rgba(0, 0, 0, 0.8);
}
.ask__icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; }
.ask__icon img { width: 100%; height: 100%; }
.ask__title { margin-top: 10px; font-size: 12.5px; font-weight: 650; color: var(--app-text); }
.ask__lines { width: 100%; margin-top: 8px; display: grid; justify-items: center; gap: 6px; }
.ask__lines i { width: 88%; height: 6px; border-radius: 3px; background: #48484c; }
.ask__lines i:last-child { width: 60%; }
.ask__btns { width: 100%; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask__btn { position: relative; height: 26px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--app-text); background: #4a4a4e; }
.ask__btn--go { background: #2f7fd6; color: #fff; }
.ask__press { position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.22); }
.ask .cursor { left: calc(75% + 4px); top: calc(100% - 22px); }

/* 04 라이선스 창: 앱의 실제 설정 → 라이선스 화면 */
.lic__body {
  height: 236px; padding: 22px 22px 0;
  background: var(--app-work); border-radius: 0 0 var(--r-win) var(--r-win);
}
.lic__h { font-size: 15px; font-weight: 650; color: var(--app-text); }
.lic__status { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--app-muted); }
.lic__status::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.lic__sub { margin-top: 20px; font-weight: 600; color: var(--app-text); }
.lic__form { margin-top: 8px; display: flex; gap: 8px; }
.lic__input {
  flex: 1; min-width: 0; height: 32px; padding: 0 10px; display: flex; align-items: center;
  border-radius: 7px; background: var(--app-side); box-shadow: inset 0 0 0 1px var(--app-line);
  font-family: var(--mono); font-size: 10.5px; color: var(--app-dim); white-space: nowrap; overflow: hidden;
}
.lic__btn { flex: none; height: 32px; padding: 0 14px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: var(--navy); font-weight: 600; }
.lic__buy { margin-top: 14px; color: var(--app-dim); font-size: 11.5px; }

@media (max-width: 900px) {
  .inst { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .inst__step { padding-block: 36px; }
  .inst__frame { margin: 0 -12px; padding: 24px 12px 12px; width: calc(100% + 24px); }
  .dmg__body { height: 200px; padding: 0 12px; }
  .ask__body, .lic__body { height: 210px; }
  .lic__body { padding: 18px 16px 0; }
  .dmg__stage { --slot: 96px; }
  .dmg__icon { width: 64px; height: 64px; border-radius: 15px; }
  .dmg__folder { width: 68px; height: 64px; }
  .dmg__arrow { top: 25px; }
  .dmg__drag { transform-origin: calc(var(--slot) / 2) 32px; }
  .dmg__drag .cursor { top: 42px; left: calc(var(--slot) / 2 + 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .dmg__drag, .ring { display: none; }
}

.inst__step { min-width: 0; gap: 24px; align-content: start; }
.inst__caption { width: 100%; max-width: 420px; }
.inst__caption h3 { font-size: 20px; margin-bottom: 8px; }
.inst__caption p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.inst__frame { margin: 0; width: 100%; padding: 16px; }
.inst__art .win { width: 100%; }
@media (prefers-reduced-motion: reduce) {
 .inst__step *, .inst__step *::before, .inst__step *::after { animation: none !important; transition: none !important; }
 .js .inst [data-demo] [data-at] { opacity: 1; transform: none; }
 .inst .dmg__drag, .inst .cursor, .inst .ring, .inst .ask__press { display: none; }
}

.download-head { padding-right: var(--cell-pad); }
.download-head .h1 { font-family: var(--font); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }

/* Download gate: one centered column, the key field and its button on one row. */
.download-head { display: grid; justify-items: center; text-align: center; }
.dl-gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: 540px; margin-top: 32px; }
.dl-gate.is-ready { grid-template-columns: minmax(0, 1fr) auto; }
.dl-gate[aria-busy="true"] .beta-form__input { cursor: progress; opacity: .7; }
.dl-get { animation: dl-get-in 180ms ease-out both; }
@keyframes dl-get-in { from { opacity: 0; transform: translateX(-4px); } }
.dl-gate .beta-form__input { padding: 12px 14px; text-align: center; font-variant-numeric: tabular-nums; }
.dl-gate .beta-form__status { grid-column: 1 / -1; color: #ff8a80; font-size: 14px; }
.dl-gate .beta-form__status:empty { display: none; }
.dl-links { display: flex; gap: 10px; justify-content: center; align-items: baseline; margin-top: 20px; }
.installation-guide > .cell--open { text-align: center; }
@media (max-width: 520px) {
  .dl-gate, .dl-gate.is-ready { grid-template-columns: 1fr; }
}
/* Invite sign-up: email, consent and one button under the key. */
.dl-signup { display: grid; gap: 10px; }
.dl-signup[hidden] { display: none; }
.dl-signup .beta-form__consent { text-align: left; color: var(--muted); }
.dl-signup .btn { width: 100%; }
/* Three install steps: one row on wide screens. */
@media (min-width: 1000px) {
  .inst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .dl-get { animation: none; } }
