/* 응가메이트 웹 — 캔버스 시안 그대로: 홈은 「v3 지도 아래」, 이렇게 써요는 「v2 이렇게 써요」(+ 풀페이지),
   이야기·공지사항은 v2 목록·상세. 색은 앱 토큰(src/shared/theme/tokens.js)과 같은 값.
   제목은 앱과 같은 나눔스퀘어 네오(굵게), 본문은 Pretendard. 헤더는 투명, 내리면 흰 바탕. */

@font-face { font-family: "NanumSquareNeo"; src: url("/assets/fonts/NanumSquareNeo-cBd.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NanumSquareNeo"; src: url("/assets/fonts/NanumSquareNeo-dEb.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --font-title: "NanumSquareNeo", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --brand: #18955A;
  --brand-deep: #0E7041;
  --brand-text: #127F4A;  /* 작은 초록 글자 — 흰 바탕·연초록 바탕 모두 명도대비 4.5:1 이상 */
  --brand-tint: #E8F5EE;
  --brand-subtle: #E5F8F0;
  --on-color: #FFFFFF;
  --fg: #191F28;
  --fg-2: #4E5968;
  --fg-3: #6B7684;
  --fg-4: #8B95A1;
  --line: #E5E8EB;
  --line-strong: #D1D6DB;
  --surface: #F2F4F6;
  --surface-soft: #F9FAFB;
  --base: #FFFFFF;
  --highlight: #FFE27A;
  --pink-text: #A2479A;
  --pink-tag: #FDEAFA;
  --gold: #8A5E0A;
  --cream: #FFF6D6;

  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 64px;
}
@media (min-width: 900px) { :root { --gutter: 32px; --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* 스크롤바는 숨기고 스크롤은 그대로 — Firefox · Chrome/Safari/Edge · 옛 Edge */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--base);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--on-color); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-mid { max-width: calc(1040px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* 제목 글꼴 — 굵게 */
.hero-h1, .h1, .h2, .h3, .label, .list-h1, .post-h1, .prose h1, .prose h2, .gnb-nav a, .gnb-cta, .gnb-lang, .sheet nav a, .chip, .pill-tag, .more-link, .faq summary,
.step-num, .post-card b, .post-card .cat, .chips button, .btn-block, .polaroids figcaption, .store b, .toast b {
  font-family: var(--font-title);
}
.h1 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.32; font-weight: 800; letter-spacing: -0.025em; }
.h3 { margin: 0; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.38; font-weight: 800; letter-spacing: -0.02em; }
.h2 em, .h1 em { font-style: normal; color: var(--brand); }
.label { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--brand-text); }
.label.gold { color: var(--gold); }
.lead { margin: 18px 0 0; font-size: 18px; line-height: 1.62; color: var(--fg-2); }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--fg); text-decoration: none; }
.more-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.more-link:hover svg { transform: translateX(3px); }

/* ── 첫 방문 로딩 — 앱 스플래시처럼 초록 + 흰 로고 + 세 점 */
.intro { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--brand); transition: opacity .45s ease, visibility 0s .45s; }
.show-intro .intro { display: flex; }
.intro.done { opacity: 0; visibility: hidden; }
.intro .face { width: clamp(150px, 18vw, 220px); }
.intro .logo { height: clamp(40px, 4.4vw, 54px); width: auto; }
.intro .dots { display: flex; gap: 9px; height: 24px; align-items: flex-end; margin-top: 6px; }
.intro .dots i { width: 12px; height: 12px; border-radius: 50%; animation: ld .9s linear infinite; }
.intro .dots i:nth-child(1) { background: #E88ADD; }
.intro .dots i:nth-child(2) { background: #4ED6A5; animation-delay: .144s; }
.intro .dots i:nth-child(3) { background: var(--on-color); animation-delay: .288s; }
@keyframes ld { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-9px); } }

/* ── 헤더 — 투명, 내리면 흰 바탕. 로고 · 가운데 메뉴 · KO/EN · 앱 다운로드 */
.gnb { position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: var(--header-h); color: var(--fg); transition: background .25s ease, box-shadow .25s ease; }
.gnb-in { max-width: calc(1240px + var(--gutter) * 2); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gnb-logo { display: flex; align-items: center; height: 100%; }
.gnb-logo img { height: 24px; width: auto; }
@media (min-width: 900px) { .gnb-logo img { height: 30px; } }
.gnb-nav { display: none; align-items: center; gap: 56px; height: 100%; }
.gnb-nav a { position: relative; display: flex; align-items: center; height: 100%; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.gnb-nav a[aria-current="page"] { font-weight: 800; }
.gnb-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--brand); }
.gnb-nav a:hover { color: var(--brand); }
.gnb-side { display: flex; align-items: center; gap: 20px; }
.gnb-lang { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.gnb-lang a { text-decoration: none; color: var(--fg-3); }
.gnb-lang a[aria-current="true"] { color: var(--fg); }
.gnb-lang i { width: 1px; height: 12px; background: var(--line-strong); }
.gnb-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-text); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.gnb-menu { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
@media (min-width: 900px) { .gnb-nav, .gnb-lang { display: inline-flex; } .gnb-menu { display: none; } .gnb-cta { height: 42px; padding: 0 16px; } }
.gnb.solid { background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); box-shadow: 0 1px 0 var(--line); }

/* 모바일 전체 메뉴 */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--base); padding: 0 var(--gutter) 32px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.sheet-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-top img { height: 24px; width: auto; }
.sheet nav { display: flex; flex-direction: column; margin-top: 16px; }
.sheet nav a { padding: 16px 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet-lang { margin-top: 28px; display: flex; gap: 10px; }
.sheet-lang a { flex: 1; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface); font-weight: 700; text-decoration: none; }
.sheet-lang a[aria-current="true"] { background: var(--fg); color: var(--on-color); }
.sheet .sns { margin-top: auto; }
.sheet .sns a { background: var(--surface); }
body.menu-open { overflow: hidden; }

/* ── 스토어 버튼 — 흰 바탕 (초록 카드·연초록 상자 위) */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; border-radius: 18px; background: var(--base); color: #000000; text-decoration: none; box-shadow: 0 4px 14px rgba(14, 60, 34, 0.14); transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 12px; }
.store b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
@media (max-width: 480px) { .store { height: 56px; padding: 0 16px; gap: 10px; } .store b { font-size: 18px; } }

/* ── 홈 첫 화면 — 가운데 큰 제목, 노란 형광 알약 */
/* 영상 다음 — 제목만 가운데 (위아래 같은 여백) */
.hero { padding: clamp(96px, 11vw, 160px) 0; text-align: center; }
.hero-h1 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; }
.hero-h1 .hl { display: inline-block; margin-top: 6px; padding: 0 .32em .08em; border-radius: .32em; background: var(--highlight); transform: rotate(-1deg); }
.hero-lead { margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--fg-2); }
@media (max-width: 480px) { .hero-lead br { display: none; } }

/* ── 첫 화면 — 서비스 소개 영상이 화면 가득 바로 재생 (영상 바탕이 흰색이라 남는 자리도 흰색) */
.film { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; height: 100svh; min-height: 480px; padding-top: var(--header-h); background: #FFFFFF; overflow: hidden; }
.film video { width: 100%; height: 100%; object-fit: contain; }
@media (min-aspect-ratio: 16 / 10) { .film video { object-fit: cover; } }
@media (max-aspect-ratio: 1 / 1) { .film { height: auto; min-height: 0; padding-bottom: 8px; } .film video { height: auto; aspect-ratio: 16 / 9; } }
.film-sound { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(25, 31, 40, 0.72); color: var(--on-color); font-family: var(--font-title); font-size: 14px; font-weight: 800; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film-sound svg { width: 18px; height: 18px; }
.film .i-on, .film.sound .i-off { display: none; }
.film.sound .i-on { display: block; }
.film-down { position: absolute; left: 50%; bottom: clamp(16px, 3vw, 36px); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; color: var(--fg-2); animation: nudge 1.8s ease-in-out infinite; }
.film-down svg { width: 26px; height: 26px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-aspect-ratio: 1 / 1) { .film { flex-direction: column; align-items: flex-end; } .film-down { display: none; } .film-sound { position: static; margin: 8px 16px 0 0; height: 38px; font-size: 13px; } }

/* ── 글자가 모션그래픽처럼 한 단어씩 톡톡 올라온다 (site.js가 단어로 나눈다) */
.js [data-mo] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-mo] .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .7s cubic-bezier(.2, 1.25, .35, 1), opacity .35s ease; transition-delay: calc(var(--i) * 60ms); }
.js [data-mo].on .w > span { transform: none; opacity: 1; }
.js .mo-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease .35s, transform .7s cubic-bezier(.2, .7, .2, 1) .35s; }
.js .mo-on .mo-fade, .js .mo-fade.on { opacity: 1; transform: none; }

/* ── 여섯 가지 카드 (가로 넘기기) */
.sec-feat { padding: clamp(88px, 9vw, 120px) 0 0; }
.feat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.carousel-nav { display: none; gap: 10px; }
@media (min-width: 900px) { .carousel-nav { display: flex; } }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--fg); display: flex; align-items: center; justify-content: center; color: var(--fg); transition: border-color .15s ease, color .15s ease; }
.carousel-nav button:disabled { border-color: #C9D0D5; color: #C9D0D5; cursor: default; }
.carousel-nav svg { width: 22px; height: 22px; }
.track { display: flex; gap: 20px; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
.track::-webkit-scrollbar { display: none; }
@media (min-width: 1264px) { .track { padding-left: calc((100vw - var(--wrap)) / 2); scroll-padding-left: calc((100vw - var(--wrap)) / 2); } }
.fcard { flex: none; position: relative; width: min(80vw, 340px); height: 420px; padding: 30px 28px; border-radius: 28px; overflow: hidden; scroll-snap-align: start; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--base); font-size: 13px; font-weight: 800; }
.fcard .h3 { margin-top: 14px; }
.fcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.fcard img { position: absolute; right: 24px; bottom: 22px; width: 132px; height: 132px; object-fit: contain; }
.feat-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .2s ease, background .2s ease; }
.dots i.on { width: 24px; background: var(--fg); }

/* ── 이야기 카드 — 크림 바탕 + 폴라로이드 두 장 */
.sec-story { padding: clamp(96px, 10vw, 120px) 0 0; }
.story-card { display: grid; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); border-radius: clamp(28px, 3vw, 40px); background: var(--cream); }
@media (min-width: 900px) { .story-card { grid-template-columns: 360px 1fr; gap: 64px; } }
.polaroids { position: relative; width: min(100%, 360px); height: 330px; margin: 0 auto; }
.polaroids figure { position: absolute; margin: 0; width: 196px; padding: 10px 10px 0; background: var(--base); border-radius: 8px; box-shadow: 0 12px 26px rgba(25, 31, 40, 0.18); }
.polaroids figure:first-child { left: 0; top: 18px; transform: rotate(-6deg); }
.polaroids figure:last-child { right: 0; top: 0; transform: rotate(5deg); }
.polaroids img { width: 176px; height: 216px; object-fit: cover; object-position: 50% 35%; border-radius: 4px; }
.polaroids figcaption { padding: 9px 0 11px; text-align: center; font-size: 13px; font-weight: 800; color: var(--fg-2); }
@media (max-width: 400px) { .polaroids { height: 280px; } .polaroids figure { width: 160px; } .polaroids img { width: 140px; height: 176px; } }
.story-text .h2 { font-size: clamp(25px, 2.6vw, 32px); }
.story-text p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--fg-2); }
.story-text .more-link { margin-top: 20px; }

/* ── 자주 묻는 질문 */
.sec-faq { padding: clamp(96px, 10vw, 130px) 0 0; }
.wrap-faq { max-width: calc(880px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.faq { margin-top: 26px; border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; font-size: clamp(17px, 1.5vw, 19px); font-weight: 800; letter-spacing: -0.02em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--fg-4); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq p { margin: -10px 4px 24px; font-size: 16px; line-height: 1.7; color: var(--fg-2); }

/* ── 다운로드 — 초록 카드 + 손 흔드는 응댕이 */
.sec-cta { padding: clamp(96px, 10vw, 130px) 0 clamp(80px, 8vw, 100px); }
.cta-card { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 48px 28px 0; border-radius: clamp(28px, 3vw, 40px); background: var(--brand); color: var(--on-color); text-align: center; }
.cta-card .h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.3; }
.cta-card p { margin: 12px 0 0; font-size: 19px; font-weight: 700; }  /* 큰 글자(19px 굵게)라 초록 바탕에서도 대비 기준을 넘는다 */
.cta-card .stores { justify-content: center; }
.cta-card .waver { width: min(62vw, 240px); justify-self: center; margin-top: 4px; }
@media (min-width: 900px) {
  .cta-card { height: 460px; padding: 76px 72px 72px; text-align: left; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 0; }
  .cta-text { grid-column: 1; grid-row: 1; }
  .cta-card .stores { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .cta-card .waver { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 275px; margin: 0 68px 0 0; }
}

/* 손 흔드는 응댕이 — 앱 WavingMascot과 같은 축·박자 */
.waver { position: relative; aspect-ratio: 408 / 480; }
.waver img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.waver .tail { transform-origin: 26.85% 78.97%; animation: wag .45s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.waver .arm { transform-origin: 69.22% 62.27%; animation: wave 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.waver .sh { transform-origin: 69.22% 62.27%; animation: wave-half 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes wave-half { 0% { transform: rotate(0); } 8% { transform: rotate(4deg); } 18% { transform: rotate(-2deg); } 28% { transform: rotate(4deg); } 38% { transform: rotate(-2deg); } 48% { transform: rotate(2.5deg); } 58%, 100% { transform: rotate(0); } }
@keyframes wag { from { transform: rotate(-3deg); } to { transform: rotate(9deg); } }
@keyframes wave { 0% { transform: rotate(0); } 8% { transform: rotate(8deg); } 18% { transform: rotate(-4deg); } 28% { transform: rotate(8deg); } 38% { transform: rotate(-4deg); } 48% { transform: rotate(5deg); } 58%, 100% { transform: rotate(0); } }

/* ── 이렇게 써요 — 첫 화면은 가운데 제목 + 아래 초록 무대(손 흔드는 응댕이), 단계는 화면 가득 파스텔 바탕 */
.how-hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 0; text-align: center; overflow: hidden; }
.how-hero .lead { margin-top: 18px; }
/* 초록 무대 — 제목 아래 남은 화면을 다 채워서, 그라데이션이 화면 가운데보다 위에서 시작한다 */
.stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; margin-top: clamp(12px, 2vh, 28px); padding: clamp(16px, 3vh, 40px) 0 clamp(36px, 7vh, 88px); background: linear-gradient(0deg, var(--brand) 0%, #3FAE78 34%, #9EDDBF 66%, #E5F8F0 86%, var(--base) 100%); }
.stage-art { position: relative; width: min(94vw, 600px, calc((100svh - var(--header-h) - 400px) * 1.6)); aspect-ratio: 16 / 10; margin: 0 auto; }
/* 응댕이 원본이 408px라 크게 늘리면 가장자리가 깨진다 — 화면에서 270px를 넘지 않게 */
.stage-art .waver { position: absolute; left: 50%; bottom: 0; width: min(45%, 270px); transform: translateX(-50%); }
.stage-art .ic { position: absolute; width: min(12%, 72px); animation: float 3.2s ease-in-out infinite; }
@media (max-width: 759px) { .stage-art { width: min(100vw, calc((100svh - var(--header-h) - 300px) * 1.2)); aspect-ratio: 6 / 5; } .stage-art .waver { width: 50%; } .stage-art .ic { width: 14%; } }
.stage-art .ic:nth-child(2n) { animation-duration: 2.7s; animation-delay: -.8s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* 단계 — 모바일까지 화면 한 장(svh) 가득 */
.how-step { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 16px) 0 32px; }
.how-step > div { width: 100%; }
.t-purple { background: #EDE3FF; --deep: #6B3FC4; }
.t-pink { background: #FFE3F7; --deep: #B0389F; }
.t-green { background: #DDF4E6; --deep: #127F4A; }
.t-peach { background: #FFE9D6; --deep: #B4531A; }
.t-sky { background: #E1F0FA; --deep: #1F6FB2; }
.step-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .step-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); } }
.step-num { position: relative; display: inline-block; padding-bottom: 10px; font-family: var(--font-title); font-size: clamp(52px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--deep); }
.step-num::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 4px; background: var(--deep); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .how-step:not(.live) .step-num::after { transform: scaleX(0); }
.step-text .h2 { margin-top: 28px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.32; }
.step-text p { margin: 16px 0 0; font-size: 18px; line-height: 1.65; color: var(--fg-2); }
.step-media { position: relative; justify-self: center; height: min(78vh, 720px); aspect-ratio: 9 / 16; }
@media (max-width: 759px) { .step-media { height: min(50svh, 520px); } .step-grid { gap: 24px; } .step-num { font-size: 44px; } .step-text .h2 { margin-top: 16px; } .step-text p { font-size: 16px; } }
.step-icon { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.step-phone { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #FDFDFD; box-shadow: 0 24px 60px rgba(25, 31, 40, 0.16); opacity: 0; transform: translateY(56px) scale(.96); transition: opacity .55s ease .1s, transform .75s cubic-bezier(.2, .9, .3, 1.1) .1s; }
.step-phone video { width: 100%; height: 100%; object-fit: cover; }
.how-step.live .step-icon { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.how-step.live .step-phone { opacity: 1; transform: none; }

/* 더 함께 돌보는 기능 — 두 줄 벤토 */
.sec-more { padding: clamp(80px, 9vw, 120px) 0; }
.center-head { text-align: center; }
.pill-tag { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--pink-tag); color: var(--pink-text); font-size: 15px; font-weight: 800; }
.center-head .h2 { margin-top: 18px; font-size: clamp(28px, 3.4vw, 42px); }
.bento { max-width: 880px; margin: clamp(36px, 4vw, 52px) auto 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .bento { grid-template-columns: 1fr 1fr; } }
.bento-col { display: flex; flex-direction: column; gap: 20px; }
.bcard { position: relative; display: block; min-height: 240px; padding: 30px 30px 84px; border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--fg); isolation: isolate; transition: transform .2s ease; }
.bcard:hover { transform: translateY(-3px); }
.bcard.tall { min-height: 560px; }
.bcard .chip { border-radius: 6px; padding: 4px 9px; }
.bcard .h3 { margin-top: 18px; font-size: clamp(22px, 2.1vw, 26px); line-height: 1.4; }
.bcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.bcard .go { position: absolute; left: 30px; bottom: 26px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--base); color: var(--fg); }
.bcard .go svg { width: 18px; height: 18px; }
.b-pink { background: #FBE9F7; }
.b-lav { background: #EEEAFB; }
.b-lav .obj { position: absolute; right: 26px; bottom: 22px; width: 92px; }
.bcard.b-lav { padding-bottom: 120px; }
.bento-col > .bcard:last-child { flex: 1; }
.b-green { background: var(--brand-text); color: var(--on-color); }
.b-green .chip { background: rgba(0, 0, 0, 0.2); color: var(--on-color); }
.b-green p { color: var(--on-color); }
.b-green .go { right: 26px; left: auto; background: rgba(255, 255, 255, 0.24); color: var(--on-color); }
.b-photo { color: var(--on-color); }
.b-photo .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.b-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 22, 29, 0.74) 0%, rgba(17, 22, 29, 0.5) 42%, rgba(17, 22, 29, 0) 72%); }
.b-photo .chip { background: rgba(25, 31, 40, 0.6); color: var(--on-color); }
.b-photo p { color: rgba(255, 255, 255, 0.9); max-width: 24em; }
.b-photo .go { right: 26px; left: auto; background: rgba(25, 31, 40, 0.6); color: var(--on-color); }
.toasts { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--base); box-shadow: 0 10px 28px rgba(162, 71, 154, 0.12); }
.toast + .toast { margin-left: 24px; }
.toast img { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.toast span { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.toast b { font-size: 14px; font-weight: 800; }
.toast i { font-style: normal; font-size: 12px; color: var(--fg-3); }
.toast time { align-self: flex-start; font-size: 12px; color: var(--fg-3); }
.b-pink .dog { position: absolute; right: 18px; bottom: 6px; z-index: -1; width: 46%; max-width: 200px; }

/* 연한 초록 다운로드 상자 */
.sec-soft { padding: 0 0 clamp(80px, 9vw, 110px); }
.soft-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 44px clamp(24px, 5vw, 56px); border-radius: 32px; background: var(--brand-tint); }
.soft-cta .h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; }
.soft-cta p { margin: 8px 0 0; font-size: 16px; color: var(--fg-2); }

/* 풀페이지 — 넓은 화면에서 단계마다 한 화면씩 스르륵 (넘기기는 site.js) */
@media (min-width: 900px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  html.snap .snap-sec:not(.how-hero):not(.film) { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 16px) 0 32px; }
  html.snap .snap-sec > div { width: 100%; }
  html.snap .snap-sec { scroll-margin-top: 0; }
  html.snap .step-media { height: min(720px, calc(100vh - var(--header-h) - 72px)); }
}

/* ── 목록 (이야기·공지사항) */
.list-page { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + clamp(40px, 5vw, 64px)) 0 clamp(96px, 10vw, 128px); }
.wrap-list { max-width: calc(1072px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.list-head { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--fg); }
.list-head img { flex: none; width: clamp(60px, 6vw, 76px); height: auto; }
.list-head .list-sub { margin-top: 6px; }
.list-h1 { margin: 0; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.list-sub { margin: 8px 0 0; font-size: 16px; color: var(--fg-2); }
.chips { margin-top: 28px; margin-bottom: -4px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--fg-2); font-size: 15px; font-weight: 800; }
.chips button[aria-pressed="true"] { background: var(--fg); color: var(--on-color); }
.post-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); }
.post-card[hidden] { display: none; }
.post-card .thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #EDE3FF; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .4s ease; }
.post-card:hover .thumb img { transform: scale(1.02); }
.post-card .thumb.green { background: var(--brand); }
.post-card .pin-ic { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--base); color: var(--brand-text); box-shadow: 0 4px 12px rgba(25, 31, 40, 0.18); }
.post-card .pin-ic svg { width: 18px; height: 18px; transform: rotate(30deg); }
.post-card .new-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #D6304A; color: var(--on-color); font-family: var(--font-title); font-size: 12px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(214, 48, 74, 0.3); }
.post-card .new-badge[hidden] { display: none; }
.post-card .thumb.green img { object-fit: contain; object-position: 50% 50%; }
.post-card .emoji-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; }
.post-card .emoji-tile img { width: 22%; height: auto; }
.post-card .cat { font-size: 13.5px; font-weight: 800; color: var(--brand-text); }
.post-card b { font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.post-card .ex { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.post-card time, .post-card .date { font-size: 13.5px; color: var(--fg-3); }
.post-card.soon { opacity: .55; }
.empty { margin: 40px 0 0; padding: clamp(32px, 5vw, 56px) 20px; border-radius: 28px; background: #F7F8FA; text-align: center; }
.empty[hidden] { display: none; }
.empty img { width: clamp(120px, 14vw, 160px); height: auto; margin: 0 auto; transform-origin: 50% 90%; animation: puzzled 2.8s ease-in-out infinite; }
.empty b { display: block; margin-top: 18px; font-family: var(--font-title); font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.empty p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); }
@keyframes puzzled { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(0); } }
/* ── 글 상세 (이야기·공지 · 가이드) — 720 폭, 초록 머리 카드 */
.post { padding: calc(var(--header-h) + 40px) 0 clamp(80px, 8vw, 96px); }
.wrap-post { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.post-meta { margin: 0; font-size: 15px; color: var(--fg-3); }
.post-meta a { text-decoration: none; }
.post-h1 { margin: 8px 0 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.notice-hero { margin-top: 30px; width: 100%; height: auto; }
.art-card { position: relative; margin-top: 30px; height: clamp(240px, 44vw, 320px); border-radius: clamp(28px, 4vw, 41px); background: var(--brand); overflow: hidden; }
.art-card .glow { position: absolute; left: 50%; top: 41px; width: 301px; height: 301px; margin-left: -150px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.art-card .ic { position: absolute; max-width: 14vw; height: auto; }
.art-card .dog { position: absolute; left: 50%; bottom: 8px; width: clamp(180px, 34vw, 256px); transform: translateX(-50%); }
.prose { margin-top: 32px; font-size: 17px; line-height: 1.85; color: var(--fg); }
.prose p { margin: 0 0 1.25em; }
.prose h2 { margin: 1.9em 0 .6em; font-size: clamp(20px, 1.9vw, 23px); line-height: 1.45; font-weight: 800; letter-spacing: -0.02em; }
.prose h1 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.3; font-weight: 800; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose strong, .prose b { font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 24px 28px; border-radius: 0; border-bottom: 1px solid var(--line-strong); background: #F5F6F7; color: #333D4B; text-align: center; font-family: var(--font-title); font-size: 18px; line-height: 1.7; font-weight: 700; }
.prose a { color: var(--brand-deep); font-weight: 600; }
.fig { margin: 40px auto; }
.fig img { width: 100%; border-radius: 18px; }
.fig figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--fg-3); }
.fig.l { margin-left: calc(50% - min(48vw, 520px)); margin-right: calc(50% - min(48vw, 520px)); }
.fig.p { max-width: min(100%, 480px); }
.post-end { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.post-end.two { flex-direction: row; }
.post-end.two .btn-block { flex: 1; }
.btn-block { display: flex; align-items: center; justify-content: center; gap: 6px; height: 54px; border-radius: 20px; font-size: 15.5px; font-weight: 800; text-decoration: none; }
.btn-block svg { width: 16px; height: 16px; }
.btn-dark { background: var(--fg); color: var(--on-color); }
.btn-grey { background: var(--surface); color: var(--fg-2); }

/* 검색 가이드 (옛 글) */
.prose .lede { color: var(--fg-2); }
.prose .warn { margin: 1.4em 0; padding: 18px 22px; border-radius: 18px; background: var(--cream); font-size: 15px; color: var(--fg-2); }
.prose .card { display: block; margin: 1.4em 0; padding: 22px 24px; border-radius: 18px; background: var(--brand-subtle); }
.prose .cta { display: flex; align-items: center; justify-content: center; height: 56px; margin: 1.8em 0; border-radius: 20px; background: var(--fg); color: var(--on-color); font-weight: 700; text-decoration: none; }
.prose details.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.prose details.faq-item summary { font-weight: 700; cursor: pointer; }
.prose .related { margin-top: 2em; font-size: 15px; color: var(--fg-3); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* 404 */
.nf { min-height: 80vh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; text-align: center; }
.nf img { margin: 0 auto 24px; }
.nf-btns { margin: 28px auto 0; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }

/* ── 푸터 — 로고·SNS / 링크 / 운영 정보 */
.footer { padding: 56px 0 48px; background: #F7F8FA; color: var(--fg-2); font-size: 14px; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.f-row img { height: 26px; width: auto; }
.f-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 0 24px; }
.f-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--fg-2); font-weight: 600; }
.f-links a:hover { color: var(--fg); }
.f-links a.strong { color: var(--fg); font-weight: 800; }
.f-bottom { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; }
.sns { display: flex; flex-wrap: wrap; gap: 8px; }
.sns a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--base); color: var(--fg-2); transition: background .15s ease, color .15s ease; }
.sns a:hover { background: var(--brand); color: var(--on-color); }
.sns svg { width: 19px; height: 19px; }
.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch a { padding: 3px 10px; border-radius: 6px; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--base); color: var(--fg); font-weight: 700; }

/* ── 정책 (개인정보 처리방침·이용약관·고객 지원·오픈소스 라이선스) — 본문은 그대로, 글 상세와 같은 틀 */
.legal .prose { margin-top: 0; }
.legal-head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head .post-h1 { margin-top: 0; }
.legal-head .date, .legal-head .subtitle { margin: 10px 0 0; font-size: 15px; color: var(--fg-3); }
.legal section { margin-bottom: 36px; }
.legal .prose h2 { margin: 0 0 12px; font-size: clamp(19px, 1.8vw, 21px); }
.legal .prose h3 { margin: 0 0 4px; font-family: var(--font-title); font-size: 16.5px; font-weight: 800; }
.legal .prose p, .legal .prose li { font-size: 16px; line-height: 1.8; color: var(--fg-2); }
.legal .prose strong { color: var(--fg); }
.legal .highlight { padding: 16px 20px; border-radius: 18px; background: var(--brand-subtle); }
.legal .highlight p { margin: 0; }
.legal .contact-card { margin: 0 0 12px; padding: 18px 20px; border-radius: 18px; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }
.legal .contact-card .label { margin: 0; font-size: 13px; font-weight: 800; color: var(--fg-2); }
.legal .contact-card .value { margin-top: 4px; font-family: var(--font-title); font-size: 17px; font-weight: 800; }
.legal .item { margin-bottom: 20px; }
.legal .item p { margin-bottom: 2px; font-size: 15px; }
.legal .meta { color: var(--fg-3); }
.legal .table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
.legal th { font-weight: 700; color: var(--fg); white-space: nowrap; }
.legal td:nth-child(2) { white-space: nowrap; }
.legal td:first-child { word-break: break-all; }
.legal details { margin-bottom: 12px; border-radius: 16px; background: var(--surface-soft); }
.legal summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-title); font-size: 15px; font-weight: 800; }
.legal .used-by { padding: 0 18px; font-size: 13px; color: var(--fg-3); }
.legal pre { margin: 0; padding: 12px 18px 18px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--fg-2); }
.legal .feather { background: none; margin: 2px 0 0; }
.legal .feather summary { padding: 0; font-family: inherit; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.legal .feather p { font-size: 13px; color: var(--fg-3); margin: 4px 0 0; }
@media (max-width: 600px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal td { border: 0; padding: 0; }
  .legal td:nth-child(2) { display: inline; font-size: 12px; }
  .legal td:nth-child(3) { font-size: 12px; color: var(--fg-3); }
  .legal td:first-child a { display: inline-block; padding: 4px 0; min-height: 24px; }
}

/* ── 인터뷰 신청 — 옛 폼(스크립트 그대로)을 사이트 디자인 시스템으로 */
body.iv-page { background: var(--base); }
main.iv { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; color: var(--fg); }
main.iv h1 { margin: 0; font-family: var(--font-title); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
main.iv .lede { margin: 20px 0 28px; padding: 20px 22px; border: 0; border-radius: 20px; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.75; color: var(--fg-2); }
main.iv .card { margin-bottom: 16px; padding: 24px; border: 0; border-radius: 24px; background: var(--base); box-shadow: inset 0 0 0 1px var(--line); }
main.iv h2 { margin: 0 0 4px; font-family: var(--font-title); font-size: 19px; font-weight: 800; color: var(--fg); }
main.iv .section-sub, main.iv .hint { font-size: 14px; color: var(--fg-3); }
main.iv label.field-label { font-family: var(--font-title); font-size: 15px; font-weight: 800; color: var(--fg); }
main.iv input[type="text"], main.iv input[type="tel"], main.iv input[type="date"], main.iv textarea { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; font-family: inherit; font-size: 16px; color: var(--fg); }
main.iv .radio-grid { gap: 10px; align-items: stretch; }
main.iv .radio-chip { display: flex; }
main.iv .radio-chip span:not(.badge) { flex: 1; min-height: 64px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 14px; font-family: var(--font-title); font-size: 15px; font-weight: 800; color: var(--fg-2); }
main.iv .radio-chip input:checked + span { background: var(--brand-text); color: var(--on-color); }
main.iv .radio-chip .badge { font-family: var(--font-title); font-size: 12px; }
main.iv .required-tag { background: #A2479A; font-size: 12px; }
main.iv .optional-tag { font-size: 12px; }
main.iv .consent-box { border: 0; border-radius: 18px; background: var(--brand-subtle); font-size: 14px; }
main.iv .consent-check { font-size: 15px; }
main.iv .cta { height: 56px; padding: 0; border-radius: 20px; background: var(--fg); font-family: var(--font-title); font-size: 16px; font-weight: 800; }
main.iv .cta:hover { background: #333D4B; }
main.iv .thanks h2 { font-size: 22px; }

/* 들어올 때 살짝 떠오름 */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .waver .tail, .waver .arm, .waver .sh, .intro .dots i { animation: none; }
  .store, .intro, .bcard, .step-icon, .step-phone, .step-num::after { transition: none; }
  .js [data-mo] .w > span, .js .mo-fade { transform: none; opacity: 1; transition: none; }
  .film-down, .stage-art .ic, .empty img { animation: none; }
}

/* 스크립트가 없으면 단계 영상을 바로 보여 준다 */
html:not(.js) .step-phone { opacity: 1; transform: none; }
html:not(.js) .step-icon { opacity: 0; }
