/* 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;
  --card: #FFFFFF;        /* 그림 속 앱 카드·알림(11/27) */
  --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;
    --card: #2B2722;
  }
}

*, *::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; }
/* 언어 고르기: 지구본 + '언어'(그 페이지 언어) + 고르기 칸(11/21 상근 '한국어 앞에 언어 또는 laguage라고 라벨 하나').
   좁은 휴대폰에서 머리 줄(로고 136 + 언어 고르기)이 넘쳐 로고가 줄어들지 않게, 글이 긴 언어부터 글은 화면 읽기용으로만 남기고
   지구본과 고르기 칸만 보여요: 영어 'Language'는 400 미만, 스페인어 'Idioma'는 380 미만, 모든 언어는 360 미만 */
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.875rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.lang .globe { flex: none; width: 18px; height: 18px; }
@media (max-width: 399px) {
  .top { gap: 12px; }
  html:lang(en) .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 379px) {
  html:lang(es) .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) {
  .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.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, .play h2, .family h2, .walk 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); }

/* 고양이 놀이(11/17): 앱 1.1 놀이 칸 소개. 그림 PNG는 모서리가 둥글게 비어 있어서(358×230에 14) 같은 곡선으로 테두리를 둘러요 */
.play { padding-block: 72px 80px; background: var(--raised); }
.play-strip { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 28px; }
.play-strip img { width: 100%; height: auto; border-radius: 3.9% / 6.1%; box-shadow: 0 0 0 1px var(--line); }
.play-strip p { margin-top: 12px; padding-inline: 6px; color: var(--brown-deep); font-weight: 700; }
.play-more { margin-top: 28px; color: var(--ink-soft); }

/* 가족·산책(11/27, docs/homepage-design.md): 놀이 단락과 같은 틀(제목·한 줄·그림 세 칸·아래 한 줄). 바탕은 흰 칸·색 칸이 번갈아
   (이렇게 즐겨요 → 가족 색 → 산책 흰 → 놀이 색). 그림(.scene)은 앱 화면 조각을 HTML·SVG로 그려요. 358×230 판(놀이 그림 716×460의 절반)에
   그리고, 칸 폭에 맞춰 사진처럼 통째로 커지고 작아지게 모든 크기를 --u(판의 1단위 = 칸 폭 ÷ 358, 칸이 container)로 잡아요 */
.family { padding-block: 72px 80px; background: var(--raised); }
.walk { position: relative; padding-block: 72px 80px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene-strip { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 36px; }
.scene-strip li { container-type: inline-size; max-width: 440px; }
.scene-strip h3 { margin-top: 14px; padding-inline: 6px; color: var(--brown-deep); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.scene-strip li > p { margin-top: 4px; padding-inline: 6px; color: var(--ink-soft); }
.section-more { margin-top: 28px; color: var(--ink-soft); }
/* 끝 줄에 글자 하나만 남지 않게, 일본어·중국어는 어절 단위로 줄을 바꿔요(지원 브라우저) */
.section-more, .scene-strip li > p, .sc-note > span { text-wrap: pretty; }
:lang(ja) .family p, :lang(ja) .walk p, :lang(ja) .scene, :lang(zh-Hant) .family p, :lang(zh-Hant) .walk p, :lang(zh-Hant) .scene { word-break: auto-phrase; }
.scene {
  --u: calc(100cqi / 358);
  aspect-ratio: 358 / 230; overflow: hidden; border-radius: calc(var(--u) * 16); box-shadow: 0 0 0 1px var(--line);
  background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--u) * 13); line-height: 1.3; text-align: center; -webkit-user-select: none; user-select: none;
}
.walk .scene { background: var(--raised); }
.sc-col { flex-direction: column; gap: calc(var(--u) * 9); }
/* 초대 */
.sc-link { display: inline-flex; align-items: center; gap: calc(var(--u) * 5); padding: calc(var(--u) * 3) calc(var(--u) * 10); border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: calc(var(--u) * 11); font-weight: 600; }
.sc-link svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }
.sc-avatar { width: calc(var(--u) * 62); height: calc(var(--u) * 62); border-radius: 50%; object-fit: cover; object-position: 50% 10%; }
.sc-title { font-size: calc(var(--u) * 16); font-weight: 800; letter-spacing: -0.01em; }
.sc-btn { min-width: calc(var(--u) * 150); padding: calc(var(--u) * 7) calc(var(--u) * 20); border-radius: 999px; background: var(--brown-deep); color: var(--bg); font-weight: 700; }
/* 공개 범위 */
.sc-vis { gap: calc(var(--u) * 20); }
.sc-photo { width: calc(var(--u) * 116); height: calc(var(--u) * 150); border-radius: calc(var(--u) * 12); object-fit: cover; }
.sc-pills { display: grid; gap: calc(var(--u) * 9); width: calc(var(--u) * 150); }
.sc-pill { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 5); height: calc(var(--u) * 32); border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: calc(var(--u) * 12.5); font-weight: 600; white-space: nowrap; }
.sc-pill.on { background: var(--brown-deep); color: var(--bg); font-weight: 700; }
.sc-pill svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); }
/* 알림 */
.sc-note {
  width: calc(var(--u) * 318); display: grid; grid-template-columns: calc(var(--u) * 30) 1fr auto; column-gap: calc(var(--u) * 10); row-gap: calc(var(--u) * 1);
  padding: calc(var(--u) * 10) calc(var(--u) * 12); border-radius: calc(var(--u) * 14); background: var(--card);
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 5) rgba(30, 27, 25, 0.12); text-align: left;
}
.sc-note img { grid-row: span 2; width: calc(var(--u) * 30); height: calc(var(--u) * 30); border-radius: calc(var(--u) * 7); }
.sc-note b { font-size: calc(var(--u) * 11.5); }
.sc-note i { font-style: normal; font-size: calc(var(--u) * 10.5); color: var(--ink-soft); }
.sc-note > span { grid-column: 2 / span 2; font-size: calc(var(--u) * 12.5); line-height: 1.35; }
/* 산책 숫자 판(앱 산책 상세와 같은 순서: 거리·평균 속도 / 걸은 시간·킁킁타임) */
.sc-clock { font-size: calc(var(--u) * 44); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-board { width: calc(var(--u) * 318); display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 10) calc(var(--u) * 16); padding: calc(var(--u) * 12) calc(var(--u) * 16); border-radius: calc(var(--u) * 16); background: var(--card); text-align: left; }
.sc-board > span { display: grid; }
.sc-board span span { font-size: calc(var(--u) * 11); color: var(--ink-soft); white-space: nowrap; }
.sc-board b { font-size: calc(var(--u) * 20); line-height: 1.25; white-space: nowrap; }
.sc-board .sniff b { color: var(--brown); }
/* 이번 주 막대: 월·화·수(오늘) 걸음, 목~일은 앞으로 올 날. 높이는 그날 거리 ÷ 가장 긴 날(1.19·1.30·1.71km) */
.sc-week { width: calc(var(--u) * 318); display: grid; gap: calc(var(--u) * 10); }
.sc-week-top { display: flex; align-items: center; justify-content: space-between; }
.sc-week-top b { font-size: calc(var(--u) * 14); }
.sc-streak { display: inline-flex; align-items: center; gap: calc(var(--u) * 4); padding: calc(var(--u) * 3) calc(var(--u) * 9); border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: calc(var(--u) * 11); font-weight: 700; }
.sc-streak img { width: calc(var(--u) * 14); height: calc(var(--u) * 14); }
.sc-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; height: calc(var(--u) * 116); }
.sc-bars > span { display: grid; justify-items: center; gap: calc(var(--u) * 5); font-size: calc(var(--u) * 11); color: var(--ink-soft); }
.sc-bars i { width: calc(var(--u) * 20); height: calc(var(--u) * 4); border-radius: calc(var(--u) * 6); background: var(--brown); }
.sc-bars > :nth-child(1) i { height: calc(var(--u) * 63); }
.sc-bars > :nth-child(2) i { height: calc(var(--u) * 69); }
.sc-bars > :nth-child(3) i { height: calc(var(--u) * 90); background: var(--brown-deep); }
.sc-bars .later i { background: var(--line); }
.sc-bars .later { opacity: 0.55; }
.sc-bars .today { color: var(--ink); font-weight: 800; }
.sc-sum { font-size: calc(var(--u) * 12); color: var(--ink-soft); text-align: left; }
/* 동선: 내 화면(실제 길)과 가족·공유 화면(장식 모양)을 나란히 — 앱 산책 끝내기 요약과 같아요 */
.sc-routes { gap: calc(var(--u) * 16); }
.sc-route { display: grid; justify-items: center; gap: calc(var(--u) * 6); width: calc(var(--u) * 138); font-size: calc(var(--u) * 11.5); color: var(--ink-soft); }
.sc-route svg { width: 100%; height: auto; border-radius: calc(var(--u) * 12); background: var(--card); fill: var(--brown); }
.svg-defs .dot { fill: var(--line); }
.sc-route .sf circle { fill: var(--brown-deep); }
.sc-route .sf text { fill: var(--bg); font-size: 6px; font-weight: 800; text-anchor: middle; }

/* 할 수 있는 것: 카드 대신 앱 이모지를 머리로 */
.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%; }
.shared-nap .photo + .photo { margin-top: 8px; } /* 여러 장(11/26): 위아래로 이어서 */
.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); }
/* 앱 안 브라우저에서만 보이는 '앱에서 열기'(share.js) */
.open-app { display: grid; justify-items: center; gap: 10px; width: 100%; }
.open-app .button { min-width: 220px; }
.open-app-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.open-app[hidden], .open-app-note[hidden] { display: none; }
/* 공식 스토어 배지: 같은 높이, 사이 여백 = 높이의 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; }
/* 첫 화면 히어로의 스토어 배지(출시 뒤): '곧 나와요' 자리에 왼쪽 맞춤 */
.hero .stores { margin-top: 32px; justify-content: flex-start; }
/* 컴퓨터에서는 배지 대신 QR(11/14): 휴대폰 카메라로 찍으면 /app이 그 휴대폰의 스토어로 보내요 */
.store-qr { margin-top: 32px; display: flex; align-items: center; gap: 18px; font-weight: 600; }
.store-qr img { width: 116px; height: 116px; border-radius: 10px; box-shadow: 0 1px 4px rgba(30, 27, 25, 0.18); }
.store-qr span { max-width: 13em; line-height: 1.45; }
.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); }

/* 부모님 동의(/g/) */
.consent { width: min(560px, 100%); display: grid; gap: 18px; padding-block: 16px 8px; }
.consent h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
:lang(ja) .consent h1, :lang(zh-Hant) .consent h1 { word-break: auto-phrase; }
.consent .lead { margin-top: 0; font-size: 1.0625rem; }
.consent .account { font-weight: 700; overflow-wrap: anywhere; }
.consent-part { display: grid; gap: 8px; padding: 18px 20px; border-radius: 20px; background: var(--raised); }
.consent-part h2 { font-size: 1.0625rem; font-weight: 800; }
.consent-part p, .consent-part li { color: var(--ink-soft); }
.consent-part ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.consent-part a { color: var(--brown-deep); font-weight: 700; }
.consent-form { display: grid; gap: 14px; padding-block: 6px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brown-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .button { flex: 1 1 180px; }
button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.button.secondary { background: transparent; color: var(--brown-deep); box-shadow: inset 0 0 0 2px var(--brown-deep); }
.button.secondary:hover { background: var(--chip); color: var(--chip-ink); }
.button.danger { background: transparent; color: #B3261E; box-shadow: inset 0 0 0 2px #B3261E; justify-self: start; }
.button.danger:hover { background: #F9DEDC; }
.form-error { color: #B3261E; font-weight: 700; }
.saved { color: var(--brown-deep); font-weight: 700; }
.consent .note { font-size: 0.9375rem; color: var(--ink-soft); }
.consent .note a { color: var(--brown-deep); font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .button.danger, .form-error { color: #F2B8B5; box-shadow: inset 0 0 0 2px #F2B8B5; }
  .form-error { box-shadow: none; }
  .button.danger:hover { background: #601410; }
}

/* 탈퇴 요청(/delete-account): 동의 페이지 모양을 그대로 쓰고 로그인 버튼만 세로로 */
.actions.stack { flex-direction: column; }
.actions.stack .button { flex: none; width: 100%; }

/* 개인정보처리방침·약관(/privacy, /terms): scripts/build-legal.mjs가 docs/legal에서 만듦 */
.legal { width: min(760px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 16px 24px; }
.legal article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.legal h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-top: 18px; }
.legal h3 { font-size: 1.0625rem; font-weight: 800; margin-top: 8px; }
.legal p, .legal li, .legal td, .legal th { color: var(--ink-soft); line-height: 1.7; }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.legal a { color: var(--brown-deep); font-weight: 700; overflow-wrap: anywhere; }
.legal strong { color: var(--ink); }
.legal .table { overflow-x: auto; border-radius: 14px; background: var(--raised); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 700; }
.legal .draft, .legal .only { padding: 12px 16px; border-radius: 14px; background: var(--chip); color: var(--chip-ink); font-weight: 600; }
.legal .only[hidden] { display: none; }

/* 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; }
  .play-strip { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .wrap { width: min(1120px, 100% - 96px); }
  .scene-strip { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .scene-strip li { max-width: none; }
  .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; }
}
