:root {
  --ink: #2d2d2d;
  --muted: #5a5a5a;
  --mint: #55e1e1;
  --soft: #f5f6f7;
  --dark: #1b1e2b;
}

* {
  box-sizing: border-box;
}

/* Noto Sans KR 메트릭(ascent 1160/descent 288, em 1000)에 맞춘 시스템 폰트 폴백.
   폰트 로딩 전·미로딩 시에도 행높이가 동일해 레이아웃이 흔들리지 않음 */
@font-face {
  font-family: "Noto Sans KR Fallback";
  src: local("Apple SD Gothic Neo"), local("Malgun Gothic");
  ascent-override: 116%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans KR", "Noto Sans KR Fallback", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 한국어만 어절(단어) 단위 줄바꿈 — 어절 중간에서 끊겨 한두 글자만 내려가는 것 방지.
   일/중 페이지는 띄어쓰기가 없어 keep-all을 걸면 오버플로우가 나므로 제외 */
body:lang(ko) {
  word-break: keep-all;
}

/* 제목은 줄 길이 균형(balance), 본문은 외톨이 낱말 방지(pretty) — 미지원 브라우저는 무시 */
h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
}


.page h1,
.page h2,
.page h3,
.page p {
  margin: 0;
  letter-spacing: 0;
}

.page {
  width: min(100%, 90rem);
  max-width: 90rem;
  margin: 0 auto;
  overflow-x: hidden;
}

.wrap {
  width: min(calc(100% - 2rem), 75rem);
  margin: 0 auto;
}

.hero {
  margin-top: 4.875rem;
  position: relative;
  height: 43.75rem;
  
  background:
    
    var(--hero-bg-image, url("./assets/common/hero_bg.png")) ;
}

.nav > div {
  display: flex;
  padding: 0 7.5rem;
  align-items: center;
  width: 90rem;
  height: 4.875rem;
  justify-content: space-between;
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  width: 100%;
  height: 4.875rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: var(--Background-Background-white-70, rgba(255, 255, 255, 0.70));
box-shadow: 0 0.1875rem 0.5rem 0 rgba(0, 0, 0, 0.05);
backdrop-filter: blur(0.625rem);
  
  
}

nav{
  
}

.logo {
  width: 3.8125rem;
  height: 1.5rem;
  object-fit: fill;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.333vw, 3rem);
  font-size: 1rem;
  line-height: 1.125rem;
  font-weight: 400;
}

.download-chip {
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  line-height: 0.875rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 62.4375rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.lang-switcher a {
  padding: 0.25rem 0.5rem;
  border-radius: 62.4375rem;
}

.lang-switcher a.is-active {
  background: var(--ink);
  color: #fff;
}

.hero-inner {
  width: min(calc(100% - 2rem), 75rem);
  height: 38.6875rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 15.833vw, 14.25rem);
}

.hero-copy {
  position: absolute;
  left:14.37rem;
  color: var(--Text-Text-primary, #2D2D2D);

font-size: 3.125rem;
font-style: normal;
font-weight: 700;
line-height: 130%; /* 4.0625rem */
}

.page h1 {
  font-size: 3.125rem;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 2.6875rem;
}

.page h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: 800;
}

.section-copy,
.copy-block p,
.result-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}
section {
  margin-top: 6.25rem;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 1.0625rem;
}

.store-buttons img {
  width: 10.6875rem;
  height: 3.5625rem;
  cursor: pointer;
}

.store-buttons.center {
  justify-content: center;
}

.hero-device{
  position: absolute;
  
  width: 30.4375rem;
  height: 40.125rem;
  
  bottom: 0;
  right:12rem;
}

/* 바닥 레이어: 폰 목업 */
.phone-hero{
  position: relative;
  z-index: 1;
  width: 30.4375rem;
height: 40.125rem;
}
.phone-hero img{
  display: block;
  width: 30.4375rem;
height: 40.125rem;
  object-fit: contain;
}

/* 폰 위에 겹쳐 뜨는 스티커 공통 */
.sticker-edit{
  position: absolute;
  z-index: 2;                    /* 폰(1)보다 위 */
}
.sticker-art{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sticker-edit.wing-edit{
  width: 12.8125rem;
  height: 15.125rem;
  
  aspect-ratio: 72/85;
  /* TODO: 폰 위 원하는 위치로 조정 (예: 왼쪽 위) */
  top: 8rem;
  right: -2rem;
}
.sticker-edit.star-edit{
  width: 11.25rem;
  height: 12.84169rem;
  
  /* TODO: 폰 위 원하는 위치로 조정 (예: 오른쪽 아래) */
  left: 0rem;
  bottom: 2rem;
}

.templates{
  /* 캐러셀 튜닝 값 (여기만 바꾸면 카드 폭/간격 조정됨) */
  --card-w: min(75rem, calc(100% - 2rem));
  --card-gap: 2.5rem;

  padding: 1.25rem 0 3rem;
  overflow: hidden; /* 트랙이 넘치는 부분(옆 카드/클론)을 잘라냄 */
}

.templates .wrap{

}



.wrap h2{
  color: var(--Text-Text-primary, #2D2D2D);

font-size: 2.5rem;
font-style: normal;
font-weight: 700;
line-height: 130%; /* 3.25rem */
}

.templates .wrap p{
  margin-top: 1.25rem;
  color: var(--Text-Text-secondary, #5A5A5A);
font-family: "Noto Sans KR";
font-size: 1rem;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 1.4rem */
}

/* ── 템플릿 캐러셀 ───────────────────────────────── */

.template-track{
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  margin-top: 2.5rem;
  /* 첫 카드 왼쪽을 본문(.wrap)과 맞추고, 오른쪽으로 다음 카드가 살짝 엿보이게 */
  padding-inline: max(1rem, calc((100% - var(--card-w)) / 2));

  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;   /* 세로 스크롤은 허용, 가로 제스처는 스와이프로 */
  cursor: grab;
}

/* 드래그 중 + 무한 루프 리셋 순간: 애니메이션 꺼서 손가락을 즉시 따라오게 */
.template-track.is-dragging{
  transition: none;
  cursor: grabbing;
}

.template-card{
  flex: 0 0 auto;
  width: var(--card-w);
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* 모바일/데스크톱 소스 분기용 picture 래퍼 — 레이아웃에서는 투명하게 */
.template-card picture{
  display: contents;
}

.template-card img{
  width: 100%;
  height: auto;
  pointer-events: none;   /* 이미지 드래그 고스트 방지 (스와이프와 충돌 X) */
  -webkit-user-drag: none;
}

.dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.dots button{
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 62.4375rem;
  background: #d4d6da;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.dots button.is-active{
  width: 1.5rem;
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce){
  .template-track{
    transition: none;
  }
}

/* ── 스크롤 리빌: section04 이후 요소가 아래서 스르르 나타남 ──
   app.js initScrollReveal()이 .reveal을 붙이고, 뷰포트 진입 시 .is-visible 토글 */
.reveal{
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 1.2s cubic-bezier(0.22, 0.9, 0.3, 1),
    transform 1.2s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible{
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── 반응형: 폰트/레이아웃 스케일링 ─────────────────── */
/*
  ≥ 1400px   → 디자인 고정 크기 (root 16px, 위 기본 규칙)
  800~1400px → 뷰포트 폭에 비례해 root font-size 유동 축소
               (rem 기반이라 폰트 + 여백 + 레이아웃이 함께 줄어듦)
  ≤ 799px    → 모바일 시안(360px) 기준으로 뷰포트 폭에 비례 스케일
               → 화면 크기와 무관하게 모바일 화면이 동일한 비율로 보임
*/

/* 800 ~ 1399.98px : 뷰포트 폭에 정비례한 순수 축소 (하한 없음) */
@media (min-width: 800px) and (max-width: 1399.98px) {
  html {
    /* 1400px일 때 16px (1400 ÷ 16 = 87.5), 폭에 비례해 계속 줄어듦 */
    font-size: calc(100vw / 87.5);
  }
}

/* ≤ 799px : 모바일 (본격적인 레이아웃 규칙은 파일 맨 끝 모바일 블록 참고
   — 데스크톱 규칙보다 뒤에 와야 동일 특이도에서 오버라이드가 이김) */
@media (max-width: 799.98px) {
  html {
    /* Figma "Mobile 360" 시안 기준: 360px일 때 16px (360 ÷ 16 = 22.5).
       폭에 정비례하므로 320px 폰이든 799px 폴더블이든 같은 스케일로 렌더 */
    font-size: calc(100vw / 22.5);
  }
}

/* 모바일 헤더 우측 액션(앱 다운로드 + 햄버거): 데스크톱에선 숨김 */
.nav-mobile-actions {
  display: none;
}

/* 모바일 전용 줄바꿈: 데스크톱에선 숨김 */
.br-m {
  display: none;
}

.feature-grid{
  display: flex;
  gap: 1.25rem;
  padding-top: 3rem;
}
.feature-grid img{
  width: 24.16688rem;
height: 32.875rem;
}
.feature-grid article{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 24.16688rem;
}

h3{
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--Text-Text-primary, #2D2D2D);
text-align: center;
font-family: var(--Family-Noto-Sans-KR, "Noto Sans KR");
font-size: 1.25rem;
font-style: normal;
font-weight: 700;
line-height: 1.125rem; /* 90% */
}
article p{
  color: var(--Text-Text-secondary, #5A5A5A);
text-align: center;
font-family: var(--Family-Noto-Sans-KR, "Noto Sans KR");
font-size: 1rem;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 1.4rem */ 
}

.result-heading{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.result-heading p{
  text-align: center;
}
.phone-row{
  margin-top: 2.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.phone-row img{
width: 18.75rem;
height: 37.875rem;
}

/* ── FAQ ───────────────────────────────────────────── */
.faq .wrap{
  display: flex;
  flex-direction: column;
}

.faq-list{
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item{
  border-radius: 1rem;
  background: var(--soft);
  padding: 0 1.5rem;
}

.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker{
  display: none;
}

.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after{
  transform: translateY(-50%) rotate(45deg);
}

.faq-item p{
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  padding-bottom: 1.25rem;
}

.section08{

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 39.375rem;
  color:white;
}

.app-icon{
  width: 6.875rem;
height: 6.875rem;
margin-bottom: 1.5rem;
}

.section08 h2{
  color: var(--Text-Text-white, #FFF);
text-align: center;
font-family: "Noto Sans KR";
font-size: 3.125rem;
font-style: normal;
font-weight: 700;
line-height: 119.417%; /* 3.73175rem */
}
.section08 p{
  margin-top: .5rem;
  margin-bottom: 3rem;
  color: var(--Text-Text-white, #FFF);
text-align: center;
font-family: "Noto Sans KR";
font-size: 1rem;
font-style: normal;
font-weight: 500;
line-height: 98.964%; /* 0.98963rem */
}
.section08 .store-buttions img{
  width: 10.6875rem;
height: 3.5625rem;
}

.contact-page{
  min-height: 100vh;
  background: #fff;
}

.contact-main{
  width: min(calc(100% - 2rem), 75rem);
  margin: 0 auto;
  padding: 8.625rem 0 3.75rem;
}

.contact-panel{
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

.contact-heading{
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-heading h1{
  margin: 0;
  color: var(--Text-Text-primary, #2D2D2D);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.contact-heading p{
  margin: 0;
  color: var(--Text-Text-secondary, #5A5A5A);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.contact-form{
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.contact-type-row{
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3rem;
}

.contact-type-list{
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-label{
  margin: 0;
  color: var(--Text-Text-primary, #2D2D2D);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.194;
}

.contact-chip{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 62.4375rem;
  background: var(--Background-Background-parchment, #F5F6F7);
  color: var(--Text-Text-primary, #2D2D2D);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}

.contact-chip.is-active{
  background: var(--Background-Background-black-100, #2D2D2D);
  color: #fff;
}

.contact-field{
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-field-grid{
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-input,
.contact-textarea{
  display: block;
  width: 100%;
  min-width: 0;
  border: 0.0625rem solid var(--Gray-Gray-20, #D8D8D8);
  border-radius: 0.875rem;
  background: #fff;
  color: var(--Text-Text-primary, #2D2D2D);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.194;
  outline: none;
}

.contact-input{
  height: 3.25rem;
  padding: 0 1rem;
}

.contact-textarea{
  min-height: 11.25rem;
  padding: 1rem;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder{
  color: var(--Text-Text-placeholder, #B4B4B4);
}

.contact-input:focus,
.contact-textarea:focus{
  border-color: var(--Text-Text-primary, #2D2D2D);
}

.contact-submit{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 14rem;
  min-height: 3.5rem;
  margin-top: 0;
  padding: 1rem 3rem;
  border: 0;
  border-radius: 62.4375rem;
  background: var(--Background-Background-black-100, #2D2D2D);
  color: #fff;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.125rem;
  cursor: pointer;
}

.contact-submit:disabled{
  cursor: wait;
  opacity: 0.64;
}

.submit-arrow{
  font-size: 1.5rem;
  line-height: 1;
}

.inquiry-dialog{
  width: min(75rem, calc(100vw - 3rem));
  min-width: 0;
  max-height: calc(100vh - 3rem);
  border: 0;
  border-radius: 1.5rem;
  padding: 0;
  background: #fff;
  color: var(--Text-Text-primary, #2D2D2D);
  overflow: auto;
}

.inquiry-dialog::backdrop{
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(0.25rem);
}

.inquiry-panel{
  position: relative;
  padding: 4rem;
}

.inquiry-panel .contact-heading{
  margin-bottom: 0.5rem;
}

.inquiry-close{
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 62.4375rem;
  background: #F5F6F7;
  color: var(--Text-Text-primary, #2D2D2D);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.inquiry-close:hover,
.inquiry-close:focus-visible{
  background: #E9EAEC;
}

.inquiry-close:focus-visible{
  outline: 0.125rem solid var(--Text-Text-primary, #2D2D2D);
  outline-offset: 0.125rem;
}

.contact-dialog{
  border: 0;
  border-radius: 1rem;
  padding: 0;
  color: var(--Text-Text-primary, #2D2D2D);
}

.contact-dialog::backdrop{
  background: rgba(0, 0, 0, 0.32);
}

.contact-dialog-box{
  width: min(22rem, calc(100vw - 2rem));
  padding: 2rem;
  text-align: center;
}

.contact-dialog-title{
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.contact-dialog-message{
  margin: 0 0 1.5rem;
  color: var(--Text-Text-secondary, #5A5A5A);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.contact-dialog-button{
  min-width: 6rem;
  border: 0;
  border-radius: 62.4375rem;
  padding: 0.75rem 1.5rem;
  background: var(--Background-Background-black-100, #2D2D2D);
  color: #fff;
  cursor: pointer;
}

/* contact 모바일: 헤더는 공통 모바일 nav(햄버거 드롭다운)를 그대로 사용.
   브레이크포인트는 메인과 동일하게 799.98px — root font-size 비례 스케일도 함께 적용됨 */
@media (max-width: 799.98px){
  .contact-main{
    width: 100%;
    max-width: 75rem;
    padding: 7rem 1rem 3rem;
    overflow-x: hidden;
  }

  .inquiry-dialog{
    width: calc(100vw - 4rem);
    max-width: 32rem;
    max-height: calc(100vh - 1rem);
    border-radius: 1rem;
  }

  .inquiry-panel{
    padding: 3.5rem 1rem 1.5rem;
  }

  .inquiry-close{
    top: 0.75rem;
    right: 0.75rem;
  }

  .contact-panel,
  .contact-form{
    gap: 1.5rem;
  }

  .contact-heading{
    gap: 0.875rem;
    margin-bottom: 1rem;
  }

  .contact-heading h1{
    font-size: 2rem;
  }

  .contact-heading p{
    white-space: normal;
  }

  .contact-type-row{
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact-type-list{
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contact-chip{
    width: 100%;
    max-width: 100%;
  }

  .contact-input,
  .contact-textarea{
    max-width: 100%;
  }

  .contact-field-grid{
    grid-template-columns: 1fr;
  }

  .contact-label{
    font-size: 1.0625rem;
  }

  .contact-input,
  .contact-textarea{
    font-size: 1rem;
  }

  .contact-submit{
    width: 100%;
  }
}

.footer{
  background: var(--Background-Background-black-100, #2D2D2D);
  display: flex;
  width: 90rem;
  padding: 2rem 0;
  flex-direction: column;
  align-items: center;
  color: #FAFAF9;
}

.footer-inner{
  display: flex;
  width: 75.5rem;
  max-width: calc(100% - 4rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-main{
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-brand-row{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.footer-logo{
  display: block;
  width: 2.866rem;
  height: auto;
}

.footer-socials{
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-socials a,
.footer-socials img{
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.footer-socials a{
  transition: opacity 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible{
  opacity: 0.72;
}

.footer-socials img{
  object-fit: contain;
}

.footer-nav{
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #FAFAF9;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 0.875rem;
  white-space: nowrap;
}

.footer-nav a{
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible{
  opacity: 0.72;
}

.footer-line{
  width: 100%;
  height: 0.0625rem;
  background: rgba(250, 250, 249, 0.16);
}

.footer-meta{
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: #78716C;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 0.81125rem;
  white-space: nowrap;
}

.footer-email,
.footer-copy,
.footer-legal,
.footer-legal a{
  color: #78716C;
}

.footer-email,
.footer-legal a{
  text-decoration: none;
}

.footer-email:hover,
.footer-email:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible{
  color: #FAFAF9;
}

.footer-legal{
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: -0.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1rem;
  opacity: 0.72;
}

.footer-legal span{
  max-width: 62rem;
  overflow-wrap: anywhere;
}

@media (max-width: 799.98px){
  .footer{
    width: 100%;
    padding: 1.75rem 0;
  }

  .footer-inner{
    max-width: calc(100% - 2rem);
    gap: 1.25rem;
  }

  .footer-legal{
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand-row{
    gap: 1rem;
  }

  .footer-nav{
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .footer-legal{
    gap: 0.75rem;
    margin-top: -0.5rem;
  }

  .footer-legal span{
    max-width: 100%;
  }
}

.copy-block{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  
}

.result-row{
  display: flex;
  width: 90rem;
  padding: 0 7.5rem;
  justify-content: space-between;
  
}
.phone-pair{
  display: flex;
  gap: 1.12rem;
}
.phone-pair img{
  width: 18.74588rem;
height: 37.875rem;
}
/* ═══════════════════════════════════════════════════════
   모바일 레이아웃 (≤ 799px) — Figma "Mobile 360 / home ios" 기준
   반드시 파일 맨 끝에 위치 (데스크톱 규칙 오버라이드)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 799.98px) {
  /* ── 헤더 ── */
  .nav {
    height: 4rem;
  }

  .nav > div {
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
  }

  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .download-chip {
    padding: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 0.625rem;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 1.125rem;
    height: 0.125rem;
    border-radius: 2.1875rem;
    background: var(--ink);
  }

  /* 데스크톱 메뉴 → 햄버거로 여닫는 드롭다운 패널 */
  .nav-menu {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
  }

  .nav.is-menu-open .nav-menu {
    display: flex;
  }

  .nav-menu > a {
    width: 100%;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
  }

  .nav-menu .lang-switcher {
    margin-top: 0.5rem;
  }

  /* ── 공통 타이포/간격 ── */
  section {
    margin-top: 5rem;
  }

  .page h2,
  .wrap h2 {
    font-size: 1.375rem;
    line-height: 1.5625rem;
  }

  .section-copy,
  .copy-block p,
  .result-heading p {
    font-size: 0.75rem;
    line-height: 0.875rem;
  }

  .br-m {
    display: inline;
  }

  /* ── 히어로 ── */
  .hero {
    margin-top: 4rem;
    height: auto;
    padding-top: 3rem;
    background-size: cover;
    background-position: center;
  }

  .hero-inner {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-copy {
    position: static;
    text-align: center;
  }

  .page h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .hero .store-buttons {
    justify-content: center;
  }

  .store-buttons {
    gap: 0.625rem;
  }

  .store-buttons img {
    width: 6.4125rem;
    height: 2.1375rem;
  }

  .hero-device {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    padding-bottom: 0.5rem;
  }

  .phone-hero {
    width: fit-content;
    height: auto;
    margin: 0 auto;
  }

  .phone-hero img {
    width: auto;
    height: 26.25rem;
  }

  .sticker-edit.wing-edit {
    width: 8.4375rem;
    height: 9.9375rem;
    top: 4.5rem;
    right: 0.25rem;
  }

  .sticker-edit.star-edit {
    width: 5.9375rem;
    height: 6.75rem;
    left: 0.75rem;
    bottom: 0.5rem;
  }

  /* ── 템플릿 캐러셀 ── */
  .templates {
    --card-gap: 0.5rem;
    padding: 0;
  }

  .templates h2 br {
    display: none; /* 모바일 시안은 한 줄 */
  }

  .templates .wrap p {
    margin-top: 0.75rem;
    font-size: 0.75rem; /* 다른 섹션 본문(.section-copy 등)과 동일 크기로 */
    line-height: 0.875rem;
  }

  .template-track {
    margin-top: 1.5rem;
  }

  .template-card {
    border-radius: 0.5rem;
  }

  .dots {
    margin-top: 0.75rem;
  }

  .dots button {
    width: 0.25rem;
    height: 0.25rem;
  }

  .dots button.is-active {
    width: 0.75rem;
  }

  /* ── 기능 카드 (세로 스택) ── */
  .feature-grid {
    flex-direction: column;
    gap: 4rem;
    padding-top: 1.5rem;
  }

  .feature-grid article {
    width: 100%;
    gap: 0;
  }

  .feature-grid img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }

  /* .page h3 리셋(margin: 0)과 같은 특이도로 맞춰야 마진이 실제로 적용됨
     (기능 카드가 모바일에선 gap: 0이라 이 마진이 유일한 간격) */
  .page h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  article p {
    font-size: 0.75rem;
  }

  /* ── 포토 밴드 ── */
  .photo-band img {
    width: 100%;
    height: 39.375rem;
    object-fit: cover;
  }

  /* ── section05: 좌측 정렬 헤딩 + 가로 스크롤 폰 3대 ── */
  .result-heading {
    align-items: flex-start;
    width: calc(100% - 2rem);
    margin: 0 auto;
    gap: 0.75rem;
  }

  .result-heading p {
    text-align: left;
  }

  .phone-row {
    margin-top: 2rem;
    justify-content: flex-start;
    gap: 1.875rem;
    overflow-x: auto;
    padding: 0 1rem 1rem;
    scrollbar-width: none;
  }

  .phone-row::-webkit-scrollbar {
    display: none;
  }

  .phone-row .phone {
    flex: 0 0 auto;
  }

  .phone-row img {
    width: 9.71875rem;
    height: 19.625rem;
  }

  /* ── section06/07: 세로 스택 ── */
  .result-row {
    width: 100%;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .result-row.reverse {
    flex-direction: column-reverse; /* 문구가 위로 */
  }

  .copy-block {
    gap: 0.75rem;
  }

  .phone-pair {
    gap: 0.875rem;
  }

  .phone-pair img {
    width: 9.71875rem;
    height: 19.625rem;
  }

  .phone-pair.stagger {
    gap: 1rem;
  }

  .phone-pair.stagger img:last-child {
    margin-top: 10.75rem; /* 시안의 지그재그 배치 */
  }

  .section07 h2 br {
    display: none; /* 모바일 시안은 한 줄 */
  }

  /* ── FAQ ── */
  .faq-list {
    margin-top: 1.25rem;
    gap: 0.5rem;
  }

  .faq-item {
    padding: 0 1rem;
    border-radius: 0.75rem;
  }

  .faq-item summary {
    padding: 1rem 1.75rem 1rem 0;
    font-size: 0.9375rem;
  }

  .faq-item p {
    font-size: 0.75rem;
    padding-bottom: 1rem;
  }

  /* ── section08 CTA ── */
  .section08 {
    height: 18.75rem;
    padding: 0 3rem;
    background-size: cover !important; /* 인라인 background 쇼트핸드 오버라이드 */
    background-position: center !important;
  }

  .app-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    border-radius: 0.6875rem;
  }

  .section08 h2 {
    font-size: 1.25rem;
    line-height: 1.194;
  }

  .section08 p {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    line-height: 1;
  }

  /* ── 푸터 ── */
  .footer-logo {
    width: 2.5rem;
  }

  .footer-socials {
    gap: 1rem;
  }

  .footer-socials a,
  .footer-socials img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .footer-nav {
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
  }
}
