/* 땅콩마켓 랜딩. 스토어 배너의 문법을 그대로 웹으로: 원색 블록 릴레이 + 둥근 포스터 서체 + 모자 쓴 강아지.
   정책 문서 스타일은 style.css. 이 파일은 index.html 전용. */
:root {
  --orange: #F1A035; --brand: #FF6B00; --ink: #141414; --paper: #FFF8EC; --white: #FFFFFF;
  --display: 'Jua', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--orange); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; line-height: 1.18; margin: 0; text-wrap: balance; }

/* ── 상단 ── */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); color: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; }
.brand img { border-radius: 10px; }
.top-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.top-links a { text-decoration: none; opacity: .92; }
.top-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .top-links { display: none; } }

/* ── 히어로: 배너와 같은 오렌지, 글은 위, 강아지 라인업은 바닥에 붙는다 ── */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; background: var(--orange); color: var(--white); overflow: hidden; }
.hero-copy { padding: calc(88px + 4vh) var(--gutter) 24px; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.hero h1 { font-size: clamp(40px, 8vw, 84px); text-shadow: 0 2px 0 rgba(0,0,0,.08); }
.lede { max-width: 560px; margin: 18px auto 0; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; opacity: .95; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.18); color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.fine { margin: 14px 0 0; font-size: 12.5px; opacity: .8; }
.hero-dogs { display: flex; justify-content: center; align-items: flex-end; }
/* 스트립 배경은 히어로 색으로 재도장했지만 안전하게 위·좌우를 페이드해 이음새를 지운다 */
.hero-dogs img { width: 100%; max-width: 1280px; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 720px) { .hero-dogs img { width: 100%; max-width: none; height: 200px; object-fit: cover; object-position: 42% bottom; } }

/* ── 색 릴레이: 슬라이드 하나 = 패널 하나. 글 왼쪽, 폰+강아지 오른쪽, 강아지는 패널 바닥에 선다 ── */
.panel { background: var(--bg); color: var(--ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 0 clamp(16px, 4vw, 56px); padding: clamp(32px, 5vh, 56px) var(--gutter) 0; min-height: 72svh; }
.panel:nth-child(even) .panel-copy { order: 2; }
.panel:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } /* 이미지가 넓은 칸을 차지하도록 좌우 반전 */
.panel-copy { align-self: center; padding-bottom: clamp(40px, 6vh, 80px); max-width: 520px; justify-self: center; }
.tag { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.panel h2 { font-size: clamp(30px, 4.6vw, 52px); }
.panel p:not(.tag) { margin: 16px 0 0; font-size: clamp(15px, 1.5vw, 17px); color: var(--sub); font-weight: 500; }
.panel p b { color: var(--ink); }
.panel-art { margin: 0; justify-self: center; width: min(80%, 864px); }
/* 원본(design/org, 1656px 폭)은 마스코트가 온전하다. 좌우는 얇게, 상단만 페이드 */
.panel-art img { width: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%); -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 860px) {
  /* 모바일은 무조건 상하 배치: 문구 먼저, 캐릭터 아래. 짝수 패널의 7fr/5fr 규칙보다 우선하도록 선택자를 같이 적는다. */
  .panel, .panel:nth-child(even) { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .panel-copy, .panel:nth-child(even) .panel-copy { order: 0; }
  .panel-art { order: 1; }
  .panel-copy { padding-bottom: 8px; text-align: center; }
  .panel-art { width: 80%; margin-top: 8px; }
}

/* ── 마무리 ── */
.outro { background: var(--orange); color: var(--white); text-align: center; padding: clamp(64px, 12vh, 120px) var(--gutter); }
.outro h2 { font-size: clamp(30px, 5vw, 56px); }
.outro p { max-width: 520px; margin: 14px auto 0; font-weight: 500; opacity: .95; }
.foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 28px var(--gutter) 96px; font-size: 12.5px; } /* 하단 여백은 고정 알약 자리 */
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot p { margin: 14px 0 0; }

/* ── 시그니처: 색을 따라 입는 설치 알약 ── */
.pill { --pill: var(--orange); position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 140%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; background: var(--pill); color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 14px 34px -14px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.35); transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .4s ease, color .4s ease; }
.pill.pill-show { transform: translate(-50%, 0); }
.pill.pill-dark-text { color: var(--ink); box-shadow: 0 14px 34px -14px rgba(0,0,0,.5), inset 0 0 0 2px rgba(0,0,0,.25); }
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

/* ── 등장 ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-dogs img { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
  .panel-art img { animation: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pill { transition: none; } }
