/* PawNap 소개 페이지. 색은 docs/brand(브랜드 갈색·분홍·크림, Material 3 색 체계)를 따라요. */
:root {
  --bg: #FEF7EC;          /* 브랜드 크림 */
  --raised: #F2ECE1;
  --ink: #1E1B19;
  --ink-soft: #4F453E;
  --brown: #816651;       /* 브랜드 갈색 */
  --brown-deep: #674E3A;
  --pink: #F4BAAA;        /* 브랜드 분홍(배) */
  --chip: #F2DFD2;
  --chip-ink: #5A4332;
  --line: #D2C4BA;
  --radius-photo: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130E;
    --raised: #221F1A;
    --ink: #E8E1DE;
    --ink-soft: #D2C4BA;
    --brown: #E2C0A7;
    --brown-deep: #E2C0A7;
    --chip: #51443B;
    --chip-ink: #F2DFD2;
    --line: #4F453E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "PingFang TC",
               "Noto Sans CJK TC", "Noto Sans JP", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss06";
}
html:lang(ko) { word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brown-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand img { width: 136px; height: auto; }
.lang select {
  font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: var(--raised); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 34px 7px 14px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

/* 해시태그: 앱 카드와 같은 모양 */
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; color: var(--brown-deep); font-weight: 600; font-size: 0.9375rem; }

/* 첫 화면: 왼쪽 글, 오른쪽 숨 쉬는 사진 */
.hero { display: grid; gap: 40px; padding-block: 24px 88px; align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  text-wrap: balance; max-width: 12ch;
}
:lang(en) .hero h1, :lang(es) .hero h1 { max-width: 11ch; }
/* 일본어·중국어: 글자 수 대신 em으로 폭을 잡고, 어절 단위로 줄을 바꿔요(지원 브라우저) */
:lang(ja) .hero h1, :lang(zh-Hant) .hero h1 { max-width: 10.5em; word-break: auto-phrase; line-height: 1.2; }
:lang(ja) h2, :lang(zh-Hant) h2 { word-break: auto-phrase; }
.slogan { margin-top: 18px; color: var(--brown); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.01em; }
.lead { margin-top: 22px; max-width: 34em; color: var(--ink-soft); font-size: 1.125rem; }
.soon { margin-top: 32px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.soon img { border-radius: 12px; width: 48px; height: 48px; }

.nap { margin: 0; }
.nap .photo { border-radius: var(--radius-photo); overflow: hidden; background: var(--raised); }
.nap .photo img { width: 100%; }
.nap-hero { justify-self: center; width: min(440px, 100%); }
.nap-hero .photo img { transform-origin: 50% 75%; animation: breathe 5.6s ease-in-out infinite; }
.nap-hero figcaption { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-inline: 6px; }
.nap-hero .who { font-weight: 700; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.018); } }

/* 자세 */
.poses { padding-block: 72px 80px; background: var(--raised); }
.poses h2, .uses h2, .soon-end h2 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.section-lead { margin-top: 14px; max-width: 36em; color: var(--ink-soft); }
.pose-strip { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 28px; }
.pose-strip .tags { margin-top: 12px; padding-inline: 6px; }
.pose-strip .photo { border-radius: 22px; }
.more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; color: var(--ink-soft); }

/* 할 수 있는 것: 카드 대신 앱 이모지를 머리로 */
.uses { padding-block: 88px 40px; }
.use-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 40px 56px; }
.use-list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; row-gap: 6px; align-items: start; }
.use-list img { grid-row: span 2; width: 44px; height: 44px; }
.use-list h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; padding-top: 8px; }
.use-list p { color: var(--ink-soft); max-width: 30em; }

/* 끝: 앱 스플래시와 같은 로고(가운데 일러스트 + 아래 워드마크) */
.splash { margin: 0 auto; padding-block: 96px 88px; display: grid; justify-items: center; gap: 28px; }
.splash-art { width: min(300px, 70%); }
.splash picture { display: block; width: min(220px, 52%); }
.splash-mark { width: 100%; height: auto; }

.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-soft); }
.bottom a { color: inherit; }

/* 공유(/p/)·초대(/i/)·안내 페이지: 서버 함수(functions/)가 만들어요 */
[hidden] { display: none !important; }
.share { display: grid; justify-items: center; gap: 40px; padding-block: 8px 72px; }
.shared-nap { width: min(480px, 100%); }
.shared-nap .photo { border-radius: var(--radius-photo); overflow: hidden; background: var(--raised); }
.shared-nap .photo img { width: 100%; }
.nap-meta { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-inline: 6px; }
.nap-meta .tags { margin-top: 2px; }
.who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-weight: 700; line-height: 1.35; }
.dog-name { overflow-wrap: anywhere; }
.story { display: inline-flex; gap: 2px; }
.story img { width: 22px; height: 22px; }
.rainbow { width: 20px; height: 20px; }
.avatar { flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--raised); }
.avatar-44 { width: 44px; height: 44px; }
.avatar-72 { width: 72px; height: 72px; }
.avatar-paw { display: inline-flex; align-items: center; justify-content: center; background: var(--chip); color: var(--brown); }
.avatar-paw svg { width: 56%; height: 56%; }
.cta { width: min(480px, 100%); display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--ink-soft); }
.cta .soon, .invite .soon { margin-top: 0; color: var(--ink); }
/* 공식 스토어 배지: 같은 높이, 사이 여백 = 높이의 1/4 이상 */
.stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { height: 48px; width: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--brown-deep); color: var(--bg); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--brown); color: var(--bg); }
.message { display: grid; justify-items: center; gap: 14px; max-width: 30em; padding-block: 16px 24px; text-align: center; }
.message-art { width: min(280px, 70%); }
.message h1, .notfound h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.message p, .notfound .sub { color: var(--ink-soft); }
.invite { width: min(520px, 100%); display: grid; justify-items: center; gap: 14px; padding-block: 16px 8px; text-align: center; }
.invite-dogs { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
.invite-dogs li { width: 120px; display: grid; justify-items: center; align-content: start; gap: 6px; font-weight: 700; line-height: 1.35; }
.invite-dogs .full { white-space: nowrap; font-size: 0.8125rem; font-weight: 600; color: var(--chip-ink); background: var(--chip); border-radius: 999px; padding: 2px 10px; }
.invite h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
:lang(ja) .invite h1, :lang(zh-Hant) .invite h1, :lang(ja) .message h1, :lang(zh-Hant) .message h1 { word-break: auto-phrase; }
.invite .lead { color: var(--ink-soft); max-width: 30em; }
.invite .note, .steps { font-size: 0.9375rem; color: var(--ink-soft); max-width: 30em; }
.expires { font-weight: 600; color: var(--brown-deep); }

/* 404 */
.notfound { min-height: 92vh; align-content: center; text-align: center; }

@media (min-width: 560px) {
  .pose-strip { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 760px) {
  .use-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .wrap { width: min(1120px, 100% - 96px); }
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-block: 48px 112px; }
  .nap-hero { justify-self: end; }
  .pose-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .nap-hero .photo img { animation: none; }
}
