/* 홈 화면 추가(PWA) 안내 — 2026-11-09 Figma «02.index»(MWS_QA 536:12119)
   · 메인 배너 «홈화면 추가 배너» pc 1656:94806(1280×400) · pad 1656:95279(같은 판 0.756배) · mo 1656:95534(360×420)
   · 안내 화면 «홈화면추가하는법» pc 1656:98589 · pad 1656:98731 · mo 1656:98873 → 앱 `/home-screen`
   · 휴대폰 그림 11장은 Figma 합성 그림을 2배로 내보낸 이미지(`images/pwa-guide/*.webp`) — 글자·번호·제목은 HTML.
   · 태블릿(768~1279)은 PC 판을 폭에 맞춰 줄인다(Figma pad 판이 그렇다) — 컨테이너 폭 기준 단위(cqw).
   접두 `pwg-`. 글꼴 = Figma 와 같은 Pretendard(«Pretendard Variable» — 2026-11-09 «버튼 글꼴이 다르다» 제보로 불러옴). */
@import url("/assets/vendor/pretendard/pretendardvariable-dynamic-subset.css");

/* ── 메인 배너 — 통 이미지 + 전체 링크(2026-11-09 요청) ─────────────
   PC·태블릿 = Figma pc 판(1280×400) 2배 내보내기 · 모바일(≤767) = mo 판(360×420) 3배 — 폭에 맞춰 비율대로.
   좌우 여백 = 메인 다른 섹션(트렌드 매거진 등)과 같은 토큰 — 폭마다 20 · 28 · 32, 넓은 화면은 최대 1280 가운데. */
.pwg-banner-section {
  padding: 24px var(--spacing-2xl) 64px;
}

.pwg-banner {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.pwg-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .pwg-banner-section {
    padding: 16px var(--spacing-2xl) 32px;
  }

  .pwg-banner {
    border-radius: 10px;
  }
}

/* ── 안내 화면 /home-screen ───────────────────────────────── */
.pwg-page {
  color: #000;
  font-family: "Pretendard Variable", var(--font-family-base, "Noto Sans KR", sans-serif);
}

.pwg-body {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.pwg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  text-align: center;
}

.pwg-hero h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
}

.pwg-hero h2 strong {
  display: block;
  font-weight: 700;
}

.pwg-hero h2 span {
  color: #4eb8ae;
}

.pwg-hero p {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.pwg-cards {
  display: flex;
  flex-direction: column;
  gap: 48px;
  container-type: inline-size;
}

.pwg-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0;
  background: #fff7f2;
}

.pwg-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 40px;
}

.pwg-card--ios .pwg-card__head {
  gap: 12px;
}

.pwg-card__label {
  margin: 0;
  padding: 4px 8px;
  background: #444;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.pwg-card__desc {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.pwg-card__desc b,
.pwg-step__text b {
  font-weight: 500;
}

/* 아이폰 — 한 줄에 3장 */
.pwg-steps {
  display: flex;
  justify-content: center;
  gap: min(45px, calc(45 / 1280 * 100cqw));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 안드로이드 — 2열 */
.pwg-steps--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  padding: 0 min(144px, calc(144 / 1280 * 100cqw));
}

.pwg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.pwg-steps:not(.pwg-steps--grid) .pwg-step {
  width: 310px;
  flex: 0 1 310px;
}

.pwg-step img {
  display: block;
  /* PC 크기(--w) · 태블릿은 카드 폭에 맞춰 같은 비율로 줄인다(Figma pad 판 — 1280 기준) */
  width: min(var(--w), calc(var(--n) / 1280 * 100cqw));
  max-width: 100%;
  height: auto;
}

.pwg-step__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.pwg-step__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  padding: 2px;
  border-radius: 50px;
  background: #4eb8ae;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.pwg-step__text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.pwg-steps:not(.pwg-steps--grid) .pwg-step__text {
  font-size: 20px;
}

.pwg-step__text img {
  width: 22px;
  height: 22px;
}

.pwg-step__text > span {
  display: block;
  width: 100%;
}

/* 마지막 카드 아래 125px — 카드 색이 흐려지는 띠(Figma Rectangle 107 1656:98719: 위 #fff7f1 → 아래 30%) */
.pwg-spacer {
  height: 125px;
  background: linear-gradient(to top, rgba(255, 247, 241, 0.3), #fff7f1);
}

/* 마무리 배너(2026-11-09 «Figma 와 정확히» 요청) — Figma pc 1656:98721(1440×420) · pad 1656:98863(1024×336).
   · 높이 = 글자 묶음(위 여백 + 로고 + 제목 + 사이 + 설명 + 아래 여백) — 그림은 그 상자를 «가운데 기준 cover» 로 채운다(Figma 와 같다 — 휴대폰 위가 상자 끝에 닿는다).
   · 1024 ~ 1440 은 pad 값 → pc 값으로 폭에 따라 이어지게(clamp) · 768 ~ 1023 은 pad 값 · 1440 초과는 그림 1440 그대로 가운데 + 좌우 그림 가장자리 색.
   · 배너 위 간격: pc 64 · pad 42(사이는 이어짐) · 모바일 0. */
.pwg-closing {
  position: relative;
  container-type: inline-size;
  margin-top: clamp(42px, calc(42px + 22 * (100vw - 1024px) / 416), 64px);
  overflow: hidden;
  background: #f7f2ec;
}

.pwg-closing__bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 1440px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
}

.pwg-closing__phone-mo,
.pwg-closing__fade {
  display: none;
}

.pwg-closing__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Figma 상자 높이(pad 336.3 · pc 420.4) — 글자 묶음보다 조금 크다(남는 만큼 아래가 빈다) */
  min-height: clamp(336.344px, calc(336.344px + 84.087 * (100cqw - 1024px) / 416), 420.431px);
  gap: clamp(56px, calc(56px + 51.323 * (100cqw - 1024px) / 416), 107.323px);
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(39.385px, calc(39.385px + 9.846 * (100cqw - 1024px) / 416), 49.231px) 0 clamp(49.625px, calc(49.625px + 12.406 * (100cqw - 1024px) / 416), 62.031px) clamp(63.015px, calc(63.015px + 15.754 * (100cqw - 1024px) / 416), 78.769px);
}

.pwg-closing__top {
  display: flex;
  flex-direction: column;
  gap: clamp(25.206px, calc(25.206px + 6.302 * (100cqw - 1024px) / 416), 31.508px);
}

.pwg-closing .pwg-logo {
  width: clamp(126.031px, calc(126.031px + 31.508 * (100cqw - 1024px) / 416), 157.539px);
  /* Figma 로고 칸 높이(pad 15.75 · pc 19.69) — 글자 높이 8 · 10 의 위아래 빈 곳 */
  margin: clamp(3.877px, calc(3.877px + 0.968 * (100cqw - 1024px) / 416), 4.845px) 0;
}

.pwg-closing__title {
  margin: 0;
  color: #191919;
  font-size: clamp(48px, calc(48px + 3.988 * (100cqw - 1024px) / 416), 51.988px);
  font-weight: 500;
  line-height: 1.22;
  white-space: nowrap;
}

.pwg-closing__title strong {
  display: block;
  font-weight: 600;
}

.pwg-closing__desc {
  margin: 0;
  color: #191919;
  font-size: clamp(17.723px, calc(18px - 0.277 * (100cqw - 1024px) / 416), 18px);
  line-height: 1.4;
}

.pwg-closing__desc b {
  font-weight: 500;
}

@media (max-width: 1023px) {
  .pwg-hero h2 {
    font-size: 52px;
  }

}

@media (max-width: 767px) {
  .pwg-body {
    padding: 0;
  }

  .pwg-hero {
    gap: 20px;
    padding: 40px 0;
  }

  .pwg-hero h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  .pwg-hero h2 strong {
    font-weight: 800;
  }

  .pwg-hero p {
    font-size: 12px;
  }

  .pwg-cards {
    gap: 42px;
  }

  .pwg-card {
    gap: 28px;
    padding: 24px 0;
  }

  .pwg-card--ios {
    gap: 8px;
  }

  .pwg-card__head,
  .pwg-card--ios .pwg-card__head {
    gap: 14px;
    padding: 0 20px;
  }

  .pwg-card--ios .pwg-card__head {
    gap: 8px;
  }

  .pwg-card__label {
    padding: 3.5px 7px;
    font-size: 16px;
  }

  .pwg-card__desc {
    font-size: 14px;
  }

  .pwg-steps,
  .pwg-steps--grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 39px;
    padding: 0;
  }

  .pwg-steps--grid {
    gap: 8.7px;
  }

  .pwg-steps:not(.pwg-steps--grid) .pwg-step {
    width: auto;
    flex: none;
  }

  .pwg-step {
    gap: 24px;
  }

  /* 그림은 PC 판을 그대로 줄인다(아이폰 310 → 250 · 안드로이드 350 → 250) */
  .pwg-steps:not(.pwg-steps--grid) .pwg-step img {
    width: calc(var(--w) * 250 / 310);
  }

  .pwg-steps--grid .pwg-step img {
    width: calc(var(--w) * 250 / 350);
  }

  .pwg-step__cap {
    gap: 7px;
  }

  .pwg-step__no {
    width: 25px;
    padding: 1.7px;
    font-size: 14px;
  }

  .pwg-step__text,
  .pwg-steps:not(.pwg-steps--grid) .pwg-step__text {
    gap: 0 4px;
    font-size: 14px;
  }

  .pwg-step__text img {
    width: 16px;
    height: 16px;
  }

  .pwg-closing {
    margin-top: 0;
    background: #fff;
  }

  .pwg-closing__bg {
    display: none;
  }

  .pwg-closing__phone-mo {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(372 / 360 * 100cqw);
    object-fit: cover;
    object-position: center bottom;
  }

  .pwg-closing__fade {
    position: absolute;
    top: calc(207 / 360 * 100cqw);
    left: 0;
    display: block;
    width: 100%;
    height: calc(173 / 360 * 100cqw);
    background: linear-gradient(180deg, rgba(246, 242, 235, 0) 33%, rgba(247, 241, 235, 0.5) 48%, #f7f1ec 70%);
  }

  .pwg-closing__inner {
    width: 100%;
    min-height: calc(380 / 360 * 100cqw); /* Figma mo 상자 360×380 */
    align-items: stretch;
    gap: calc(227 / 360 * 100cqw);
    padding: calc(28 / 360 * 100cqw) 0;
    text-align: center;
  }

  .pwg-closing__top {
    align-items: center;
    gap: 12px;
  }

  .pwg-closing .pwg-logo {
    width: calc(90.4 / 360 * 100cqw);
    /* Figma mo 로고 칸 11.3 · 글자 5.74 */
    margin: calc(2.78 / 360 * 100cqw) 0;
  }

  .pwg-closing__title {
    font-size: calc(20 / 360 * 100cqw);
    line-height: 1.3;
  }

  .pwg-closing__desc {
    color: #000;
    font-size: calc(12 / 360 * 100cqw);
    line-height: 1.6;
  }
}
