/* 도토리 러쉬 랜딩 스타일입니다. 둥근 카드, 노란 말풍선, 동글한 제목 글꼴 하나로 전체를 맞춥니다. */
:root {
  --cream: #fbf5ea;
  --paper: #fffdf8;
  --honey: #fff1cf;
  --bubble: #ffe8a6;
  --bark: #3d2b1f;
  --bark-soft: #7a6553;
  --pumpkin: #c2531f;
  --pumpkin-deep: #9a3f15;
  --peach: #fde6d2;
  --line: #efe3d2;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(110, 66, 28, .08);
  --font-display: "Jua", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --max: 1120px;
  --max-narrow: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--bark); background: var(--cream); word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 64px, var(--max)); margin-inline: auto; }
.container--narrow { max-width: var(--max-narrow); }
.kicker { margin-bottom: 10px; color: var(--pumpkin); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.section-title { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 44px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 16px; }
.section-title--center { text-align: center; }
.section-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--bark-soft); margin-bottom: 36px; text-wrap: pretty; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px 20px; background: var(--bark); color: white; z-index: 60; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: 999px; background: var(--pumpkin); color: white; text-decoration: none; font-size: 18px; font-weight: 700; line-height: 1.3; box-shadow: 0 4px 0 var(--pumpkin-deep); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--pumpkin-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pumpkin-deep); }
.btn--big { font-size: 20px; padding: 19px 36px; }
.btn--small { padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--pumpkin-deep); }
.btn-note { margin: 14px 0 0; color: var(--bark-soft); font-size: 13px; }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(251, 245, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: 23px; white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(590px, 76svh, 800px); overflow: hidden; background: #eed6af; }
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero__panel { container-type: inline-size; width: min(580px, calc(100% - 64px)); margin: 48px 0 48px max(32px, calc((100vw - var(--max)) / 2)); padding: clamp(28px, 3.4vw, 44px); background: rgba(255, 253, 248, .95); border-radius: 32px; box-shadow: 0 16px 48px rgba(84, 49, 22, .12); }
.hero__title { display: grid; margin-bottom: 28px; }
.hero__shout { font-family: var(--font-display); font-size: clamp(36px, 3.6vw, 46px); font-weight: 400; letter-spacing: -.02em; color: var(--pumpkin); line-height: 1.15; margin-bottom: 18px; white-space: nowrap; }
.hero__line { font-size: clamp(14px, 5.3cqw, 28px); font-weight: 650; line-height: 1.5; letter-spacing: -.04em; white-space: nowrap; }
.hero__cta .btn { width: 100%; }
.hero__cta .btn-note { text-align: center; }

/* 섹션 배경은 크림과 종이 두 가지만 번갈아 쓴다 */
.life { padding: 80px 0; background: var(--honey); }
.life__note { margin: 14px 0 0; font-size: 15px; color: var(--bark-soft); text-align: center; }
.life__list { list-style: none; margin: 28px auto 0; padding: 0; max-width: var(--max-narrow); display: grid; gap: 12px; }
.life__list li { position: relative; padding-left: 22px; font-size: clamp(16px, 1.5vw, 18px); color: var(--bark); text-wrap: pretty; }
.life__list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--pumpkin); }
.life__list b { color: var(--pumpkin-deep); }
.reviews { padding: 80px 0; }
.story { padding: 80px 0; background: var(--paper); }
.friends { padding: 80px 0; }
.how { padding: 80px 0 90px; background: var(--paper); }
.maker { padding: 80px 0; }
.faq { padding: 80px 0 90px; background: var(--paper); }

.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.review { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 24px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.review__email { order: -1; margin: 0 0 14px; font-size: 13px; color: var(--bark-soft); font-variant-numeric: tabular-nums; }
.review blockquote, .pal__line { position: relative; margin: 0; padding: 16px 20px; border-radius: 4px 18px 18px; background: var(--bubble); font-size: 17px; font-weight: 500; line-height: 1.6; letter-spacing: -.025em; }
.review blockquote::before, .pal__line::before { content: ""; position: absolute; top: 0; left: -9px; border-top: 10px solid var(--bubble); border-left: 10px solid transparent; }
.review blockquote span { display: block; text-wrap: balance; }

.friends__buildings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bld-card { padding: 18px 18px 22px; text-align: center; border-radius: var(--radius); background: radial-gradient(circle at 50% 42%, #ffeec4 0%, #fff6e2 55%, var(--paper) 100%); box-shadow: var(--shadow); }
.bld-card img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(150, 90, 30, .18)); }
.bld-card h3 { margin-top: 8px; font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.bld-card p { margin: 4px 0 0; font-size: 15px; color: var(--bark-soft); }
.friends__talk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.pal { display: flex; align-items: center; gap: 18px; margin: 0; padding: 20px 26px 20px 14px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.pal img { flex: none; width: 128px; }
.pal figcaption { display: grid; justify-items: start; gap: 10px; }
.pal__name { color: var(--pumpkin); font-size: 14px; font-weight: 700; }

.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 32px; margin: 44px 0; padding: 0; list-style: none; }
.step { flex: 0 1 320px; min-width: 0; }
.step__shot { position: relative; max-width: 300px; margin: 0 auto 26px; }
.step__shot img { cursor: zoom-in; }
.step__bubble { position: absolute; top: -16px; right: -12px; z-index: 1; max-width: 80%; padding: 9px 15px; border: 3px solid var(--bark); border-radius: 20px; background: #fff; color: var(--bark); font-family: var(--font-display); font-size: 17px; line-height: 1.3; box-shadow: 0 6px 14px rgba(74, 42, 16, .16); transform: rotate(3deg); pointer-events: none; }
.step__bubble::after { content: ""; position: absolute; bottom: -12px; left: 26px; width: 16px; height: 16px; border: solid var(--bark); border-width: 0 3px 3px 0; background: #fff; transform: rotate(45deg) skew(8deg, 8deg); }
.step--flip .step__bubble { right: auto; left: -12px; transform: rotate(-3deg); }
.shot-dialog { max-width: 100%; max-height: 100%; padding: 0; border: 0; background: transparent; }
.shot-dialog::backdrop { background: rgba(40, 24, 10, .82); }
.shot-dialog img { display: block; width: auto; height: auto; max-width: 100vw; max-height: 94vh; border-radius: 24px; cursor: zoom-out; }
.step__shot img { width: 100%; height: auto; border: 6px solid var(--bark); border-radius: 32px; box-shadow: 0 16px 32px rgba(74, 42, 16, .12); }
.step__body { max-width: 290px; margin-inline: auto; text-align: center; }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--pumpkin); color: white; font-size: 15px; font-weight: 700; line-height: 1; }
.step__body h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.step__body p { font-size: 15px; color: var(--bark-soft); }
.step__body .step__note { margin-top: 8px; font-size: 13px; opacity: .8; }
.how__cta, .faq__cta { text-align: center; }
.maker__cta { margin-top: 32px; text-align: center; }
.maker__cta .btn { min-width: min(100%, 340px); }

.letter { position: relative; padding: clamp(32px, 5vw, 56px); border-radius: 32px; background: var(--paper); box-shadow: var(--shadow); font-size: clamp(17px, 1.7vw, 19px); }
.letter__stamp { position: absolute; top: clamp(28px, 4vw, 44px); right: clamp(28px, 4vw, 44px); width: 54px; }
.letter__title { font-size: clamp(21px, 2.5vw, 27px); font-weight: 700; letter-spacing: -.04em; padding-right: 70px; margin-bottom: 30px; }
.letter__title > span { display: block; }
.letter__quote { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 400; color: var(--pumpkin); margin-bottom: 12px; }
.letter p { margin-bottom: 1.4em; }
.letter__close { font-weight: 650; color: var(--pumpkin); }
.letter__sign { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--bark-soft); }

.story__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.story__card { min-width: 0; overflow: hidden; border-radius: var(--radius); background: #fbf0de; box-shadow: var(--shadow); }
.story__card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.story__text { padding: 4px 22px 24px; }
.story__num { display: block; color: var(--pumpkin); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.story__text p { font-size: 16px; color: var(--bark-soft); margin: 0; }

.faq__list { display: grid; gap: 12px; margin: 32px 0; }
.faq__item { border-radius: 18px; background: var(--cream); }
.faq__item summary { position: relative; cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-size: 18px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 24px; color: var(--pumpkin); font-size: 22px; font-weight: 500; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--bark-soft); font-size: 16px; padding: 0 24px 20px; margin: 0; }

.footer { padding: 36px 0 100px; border-top: 1px solid var(--line); font-size: 13px; color: var(--bark-soft); }
.footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--bark); font-family: var(--font-display); font-size: 20px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-underline-offset: 4px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(251, 245, 234, .95); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta .btn { width: min(100%, 420px); padding: 15px 24px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { min-height: 570px; }
  .hero__panel { width: min(510px, calc(100% - 64px)); margin-left: 32px; }
  .hero__shout { font-size: 38px; }
  .reviews__grid { gap: 14px; }
  .review { padding: 20px 18px; }
  .review blockquote { font-size: 16px; }
  .friends__buildings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friends__talk { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .story__strip { gap: 16px; }
}
@media (max-width: 720px) {
  .reviews__grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 32px); }
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar__actions { gap: 6px; }
  .topbar__brand { font-size: 18px; gap: 5px; }
  .topbar__brand img { width: 28px; height: 28px; }
  .btn--small { padding: 9px 12px; font-size: 12px; }
  .btn--big { padding: 17px 24px; font-size: 18px; }
  .hero { display: block; min-height: 0; overflow: visible; background: var(--cream); padding-bottom: 12px; }
  .hero__scene { position: relative; inset: auto; z-index: 0; }
  .hero__bg { width: 100%; height: auto; object-fit: contain; }
  .hero__panel { position: relative; width: calc(100% - 32px); margin: -24px auto 0; padding: 28px 12px; border-radius: 24px; background: var(--paper); }
  .hero__shout { font-size: clamp(28px, 8vw, 38px); margin-bottom: 16px; }
  .hero__title { margin-bottom: 22px; }
  .reviews, .friends, .how, .maker, .story, .life, .faq { padding-block: 56px; }
  .review { padding: 20px; }
  .friends__buildings { gap: 12px; }
  .bld-card { padding: 12px 10px 16px; border-radius: 20px; }
  .bld-card h3 { font-size: 20px; }
  .bld-card p { font-size: 13px; }
  .pal { gap: 12px; padding: 16px 18px 16px 8px; }
  .pal img { width: 96px; }
  .pal__line { font-size: 15px; padding: 12px 16px; }
  .steps { gap: 56px; margin: 30px 0; }
  .step__shot { max-width: 300px; margin-bottom: 20px; }
  .story__text { padding-top: 0; }
  .letter__stamp { width: 42px; }
  .letter__title { padding-right: 50px; }
  .story__strip { grid-template-columns: 1fr; gap: 24px; max-width: 380px; margin-inline: auto; }
}
/* 마을 이야기 영상: 화면에 보이면 소리 없이 재생하고, 버튼을 누르면 소리와 함께 처음부터 */
.film { position: relative; margin-top: 8px; overflow: hidden; border-radius: 28px; background: #2b1d12; box-shadow: 0 18px 44px rgba(84, 49, 22, .18); aspect-ratio: 16 / 9; }
.film__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__controls { position: absolute; right: 18px; top: 18px; display: flex; gap: 8px; }
.film__sound, .film__lang { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border: 0; border-radius: 999px; background: rgba(255, 253, 248, .94); color: var(--bark); font: 700 15px/1.2 var(--font-body); cursor: pointer; box-shadow: 0 6px 18px rgba(40, 20, 6, .22); transition: transform .15s ease; }
.film__sound:hover, .film__lang:hover { transform: translateY(-1px); }
/* 아래 조작 줄(유튜브 배치): 바 위, 그 아래 일시정지, 소리 크기, 시간, 오른쪽 끝 크게 보기 */
.film__chrome { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 6px; background: linear-gradient(transparent, rgba(30, 18, 8, .6)); }
.film__row { display: flex; align-items: center; gap: 4px; }
.film__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; background: none; color: #fff8ec; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.film__icon svg { width: 24px; height: 24px; }
.film__full { margin-left: auto; }
.film__pause .film__pause-play, .film__pause[aria-pressed="true"] .film__pause-bars { display: none; }
.film__pause[aria-pressed="true"] .film__pause-play { display: inline; }
/* 크게 보기: 영상 틀째 전체 화면(막대, 소리 단추 유지). 아이폰은 영상만 전체 화면(네이티브) */
.film:fullscreen, .film:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; background: #000; box-shadow: none; }
.film:fullscreen .film__video, .film:-webkit-full-screen .film__video { object-fit: contain; }
.film__lang { padding: 11px 16px; letter-spacing: .04em; }
.film__lang[aria-pressed="true"] { background: var(--pumpkin); color: white; }
.film__sound svg { width: 22px; height: 22px; color: var(--pumpkin); }
/* 영상 아래 가는 바: 누르거나 끌어서 원하는 장면으로. 시간은 오른쪽 */
.film__bar { padding: 10px 4px; cursor: pointer; touch-action: none; user-select: none; }
.film__track { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 248, 236, .45); }
.film__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--pumpkin); }
.film__fill::after { content: ""; position: absolute; right: -8px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff8ec; border: 3px solid var(--pumpkin); box-sizing: border-box; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.film__time { margin-left: 6px; font-size: 13px; font-weight: 700; color: #fff8ec; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.film__bar:focus-visible .film__track { outline: 2px solid #fff8ec; outline-offset: 3px; }
.film__track { height: 8px; border-radius: 4px; }
.film__fill::after { right: -10px; top: -6px; width: 20px; height: 20px; }
.film__bar.is-dragging .film__fill::after { transform: scale(1.2); }
/* 소리 크기: 소리를 켜면 보인다 */
.film__volume { display: none; align-items: center; gap: 6px; padding: 0 6px; color: #fff8ec; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.film__volume.is-on { display: inline-flex; }
.film__volume svg { width: 22px; height: 22px; }
.film__volume input { width: 80px; height: 24px; margin: 0; accent-color: #fff8ec; cursor: pointer; touch-action: none; }
.film__sound[aria-pressed="false"] .film__wave { opacity: .35; }

/* 투자 성향: 화면을 반으로 갈라 왼쪽 장기, 오른쪽 단기 */
.styles { padding: 80px 0 90px; }
.styles .section-title, .styles .kicker, .styles .section-lead { text-align: center; }
.styles__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.style-card { display: grid; grid-template-rows: auto 1fr; gap: 26px; padding: clamp(28px, 3.6vw, 44px); }
@supports (grid-template-rows: subgrid) {
  .styles__split { grid-template-rows: repeat(5, auto); }
  .style-card { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .style-card__text { display: contents; }
  .style-card__tag, .style-card__who { justify-self: start; align-self: start; }
  .style-card .clip { margin-top: 26px; }
}
.style-card--long { background: linear-gradient(180deg, #eef6e9 0%, #f7fbf3 100%); }
.style-card--short { background: linear-gradient(180deg, #fff0dc 0%, #fff8ee 100%); border-left: 2px dashed rgba(122, 101, 83, .22); }
.style-card__tag { display: inline-block; justify-self: start; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px; color: white; font-family: var(--font-display); font-size: 20px; line-height: 1.3; }
.style-card--long .style-card__tag { background: #2e7d52; }
.style-card--short .style-card__tag { background: #d6701e; }
.style-card h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 400; margin-bottom: 12px; }
.style-card p { font-size: 16px; color: var(--bark-soft); margin-bottom: 10px; }
.style-card__who { display: inline-block; margin: 8px 0 0 !important; padding: 8px 16px; border-radius: 999px; color: white !important; font-family: var(--font-display); font-size: 19px !important; line-height: 1.3; box-shadow: 0 4px 12px rgba(40, 20, 6, .16); }
.style-card__who::before { content: "★ "; }
.style-card--long .style-card__who { background: #2e7d52; }
.style-card--short .style-card__who { background: #d6701e; }
.clip { position: relative; justify-self: center; width: min(100%, 290px); align-self: start; border: 6px solid var(--bark); border-radius: 32px; overflow: hidden; background: #f3e6cf; box-shadow: 0 16px 32px rgba(74, 42, 16, .14); aspect-ratio: 540 / 1168; }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(40, 24, 10, .18); cursor: pointer; transition: background .2s ease; }
.clip__play svg { width: 84px; height: 84px; padding: 20px 18px 20px 24px; border-radius: 50%; background: rgba(255, 253, 248, .95); color: var(--pumpkin); box-shadow: 0 10px 26px rgba(40, 20, 6, .3); transition: transform .15s ease; }
.style-card--long .clip__play svg { color: #2e7d52; }
.clip__play:hover svg { transform: scale(1.06); }
.clip.is-playing .clip__play { display: none; }

@media (max-width: 760px) {
  .styles__split { grid-template-columns: 1fr; }
  .style-card--short { border-left: 0; border-top: 2px dashed rgba(122, 101, 83, .22); }
  .film { border-radius: 20px; }
  .film__controls { right: 10px; top: 10px; gap: 6px; }
  .film__chrome { padding: 20px 6px 2px; }
  .film__icon { width: 36px; height: 36px; }
  .film__icon svg { width: 21px; height: 21px; }
  .film__sound { padding: 8px 12px 8px 10px; font-size: 13px; }
  .film__bar { padding: 8px 4px; }
  .film__volume input { width: 60px; }
  .film__time { font-size: 11px; }
  .film__lang { padding: 8px 11px; font-size: 13px; }
  .film__sound svg { width: 18px; height: 18px; }
  .styles { padding-block: 56px; }
  .clip { width: min(100%, 270px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sticky-cta { transition: none; }
}

/* 한 판 체험: 넓은 화면은 휴대폰 틀 안에서, 좁은 화면은 전체 화면 창에서 연다 */
.btn-demo { display: block; margin: 12px auto 0; padding: 8px 6px; border: 0; background: none; color: var(--pumpkin-deep); font: inherit; font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.btn-demo:hover { color: var(--pumpkin); }
.demo { padding: 80px 0; background: linear-gradient(180deg, var(--cream) 0%, var(--honey) 100%); }
.demo__wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.demo__actions { display: flex; flex-direction: column; align-items: flex-start; }
.demo__actions .btn-demo { margin-left: 0; }
.demo__phone { position: relative; width: min(340px, calc((100vh - 130px) * 390 / 760)); aspect-ratio: 390 / 760; border: 8px solid var(--bark); border-radius: 40px; overflow: hidden; background: #f8e9d0; box-shadow: 0 22px 44px rgba(74, 42, 16, .2); }
.demo__phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo__poster { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.demo__poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.demo__badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px 16px 20px; border-radius: 999px; background: var(--pumpkin); color: white; font-family: var(--font-display); font-size: 22px; white-space: nowrap; box-shadow: 0 5px 0 var(--pumpkin-deep), 0 12px 30px rgba(40, 20, 6, .3); transition: transform .15s ease; }
.demo__badge svg { width: 24px; height: 24px; }
.demo__poster:hover .demo__badge { transform: translate(-50%, -50%) scale(1.05); }
.demo-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #f8e9d0; }
.demo-dialog[open] { display: flex; flex-direction: column; }
.demo-dialog__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(6px, env(safe-area-inset-top)) 10px 6px 18px; background: var(--paper); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 18px; }
.demo-dialog::backdrop { background: rgba(40, 24, 10, .6); }
.demo-dialog iframe { display: block; flex: 1; width: 100%; min-height: 0; border: 0; }
.demo-dialog__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--honey); color: var(--bark); font-size: 26px; line-height: 1; cursor: pointer; }
html.is-demo-open { overflow: hidden; }
/* 체험판을 하는 동안에는 하단 고정 버튼이 휴대폰 틀을 가리지 않게 숨긴다 */
html.is-demo-inline .sticky-cta { display: none; }
@media (max-width: 899px) {
  .demo__wrap { grid-template-columns: 1fr; }
  .demo__text { text-align: center; }
  .demo__actions { align-items: center; }
  .demo__actions .btn-demo { margin-left: auto; }
  .demo__phone { width: min(100%, 300px); margin: 0 auto; }
}
@media (max-width: 640px) {
  .demo { padding-block: 56px; }
  .demo__actions .btn { width: 100%; }
}

/* 체험 소개: 다람쥐가 말풍선으로 한 판을 권한다. */
.demo__talk { display: flex; align-items: center; gap: 4px; margin: 8px 0 32px; }
.demo__buddy { flex: none; width: clamp(110px, 12vw, 150px); height: auto; filter: drop-shadow(0 10px 12px rgba(107, 75, 34, .18)); }
.demo__bubble { position: relative; margin: 0; padding: 18px 22px; background: var(--paper); border: 2px solid #ecd9b4; border-radius: 24px; box-shadow: 0 4px 0 #ecd9b4; font-size: clamp(16px, 1.5vw, 18px); font-weight: 600; line-height: 1.6; color: var(--bark); }
.demo__bubble span { display: block; text-wrap: balance; word-break: keep-all; }
.demo__bubble::before { content: ""; position: absolute; left: -10px; top: 50%; width: 16px; height: 16px; background: var(--paper); border-left: 2px solid #ecd9b4; border-bottom: 2px solid #ecd9b4; transform: translateY(-50%) rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .demo__buddy { animation: buddy-bob 2.4s ease-in-out infinite; } }
@keyframes buddy-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (min-width: 1100px) { .demo__bubble span { white-space: nowrap; } }
@media (max-width: 900px) { .demo__talk { justify-content: center; text-align: left; } }
@media (max-width: 420px) { .demo__buddy { width: 96px; } .demo__bubble { padding: 14px 16px; font-size: 15px; } }

/* 자주 묻는 질문 안의 게임 방법 버튼 */
.faq__item .btn { margin: 0 24px 20px; }

/* 앱 출시 알림 신청 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notify { padding: 72px 0; background: linear-gradient(180deg, var(--cream) 0%, var(--honey) 100%); }
.notify__card { position: relative; padding: 40px clamp(20px, 5vw, 48px) 32px; text-align: center; background: var(--paper); border-radius: 32px; box-shadow: 0 16px 40px rgba(74, 42, 16, .1); }
.notify__art { width: 120px; height: auto; margin: -96px auto 4px; display: block; }
.notify__lead { margin: 0 0 24px; color: var(--bark-soft); font-size: clamp(16px, 1.6vw, 19px); }
.notify__row { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.notify__row input { flex: 1; min-width: 0; padding: 14px 20px; border: 2px solid #e6d3ae; border-radius: 999px; background: white; font: inherit; font-size: 17px; color: var(--bark); }
.notify__row input:focus { outline: none; border-color: var(--pumpkin); }
.notify__row .btn { flex: none; padding: 14px 24px; }
.notify__agree { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--bark); cursor: pointer; }
.notify__agree input { width: 18px; height: 18px; accent-color: var(--pumpkin); }
.notify__status { min-height: 1.7em; margin: 10px 0 0; font-weight: 700; color: var(--pumpkin-deep); }
.notify__status.is-done { color: #2e7d52; }
.notify__check { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; margin-right: .3em; border-radius: 50%; background: #2e7d52; color: white; vertical-align: -.12em; }
.notify__check svg { width: 70%; height: 70%; }
.notify-inline { margin: 24px 0 8px; padding: 24px clamp(16px, 4vw, 32px) 18px; text-align: center; background: var(--paper); border-radius: 24px; box-shadow: 0 10px 28px rgba(74, 42, 16, .08); }
.notify-inline { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.notify-inline__art { flex: none; width: clamp(84px, 13vw, 150px); height: auto; }
.notify-inline__body { flex: 1; min-width: 0; }
.notify-inline__title { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); color: var(--bark); }
@media (max-width: 480px) {
  .notify__row { flex-direction: column; } .notify__row .btn { width: 100%; }
  .notify-inline { display: block; position: relative; margin-top: 64px; padding-top: 44px; }
  .notify-inline__art { position: absolute; left: 6px; top: -58px; width: 84px; }   /* 작은 화면은 카드 왼쪽 위에 걸터앉는다 */
}

/* 앱 다운로드(2026-10-30): 첫 화면 바로 아래와 맨 아래. 다람쥐 말풍선, 큰 제목, QR 두 개(카메라로 찍기)와 스토어 이름 */
.download { padding: 44px 0; }
.download--top { padding-top: 28px; }
.download__card { position: relative; padding: 34px 28px 30px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.download__buddy { width: 96px; height: 96px; margin: -78px auto 0; animation: download-hop 2.6s ease-in-out infinite; }
.download__bubble { display: inline-block; margin: 6px 0 4px; padding: 4px 14px; border-radius: 999px; background: var(--bubble); font-family: var(--font-display); font-size: 17px; color: var(--pumpkin-deep); }
.download__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 42px); letter-spacing: -.02em; }
.download__lead { margin: 6px 0 22px; color: var(--bark-soft); font-size: 15px; }
.download__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 460px; margin: 0 auto; }
.download__store { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; border-radius: 20px; background: var(--honey); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 4px 0 #ecd29a; }
.download__store:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #ecd29a; }
.download__qr { width: 100%; max-width: 148px; aspect-ratio: 1; padding: 8px; border-radius: 14px; background: var(--paper); border: 2px dashed #e7c98f; }
.download__label { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; color: var(--bark-soft); }
.download__label b { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--bark); }
.download__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
@keyframes download-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .download__buddy { animation: none; } }
@media (max-width: 520px) { .download__card { padding: 30px 16px 22px; } .download__grid { gap: 12px; } .download__qr { max-width: 120px; } .download__label b { font-size: 18px; } }

/* 친구 초대 링크(2026-12-02): 초대 코드와 스토어 단추만 */
body.invited main, body.invited .topbar, body.invited footer { display: none; }
.invite { max-width: 460px; margin: 0 auto; padding: 48px 20px 56px; text-align: center; }
.invite h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.3; margin: 12px 0 8px; }
.invite__code { font-family: var(--font-display); font-size: 44px; letter-spacing: .14em; margin: 12px 0; padding: 12px; border-radius: 18px; background: var(--honey); border: 2px dashed #e6c27a; user-select: all; }
.invite__stores { display: grid; gap: 12px; margin-top: 22px; }
.invite__store { display: block; padding: 16px; border-radius: 16px; background: var(--pumpkin); color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; }
.invite__store:hover { background: var(--pumpkin-deep); }
.invite img { display: block; margin: 0 auto; }
