/* petbell.co.kr 소개 사이트 — 앱과 같은 아이덴티티(토스블루 · 벨 옐로 · Pretendard) */

/* Pretendard (c) 2021 Kil Hyung-jin — SIL Open Font License 1.1 (https://github.com/orioncactus/pretendard)
   셀프호스팅 서브셋 — 이 페이지에 쓰인 글자만 담았다(가변 웨이트 45~920 포함).
   본문 글자를 추가/수정하면 재생성할 것:
   python3 -m fontTools.subset PretendardVariable.woff2 --text-file=<사용 글자> --flavor=woff2 --layout-features='*' --output-file=site/assets/pretendard-sub.woff2 */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/pretendard-sub.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #191f28;
  --dim: #4e5968;
  --faint: #6b7684; /* 흰 배경 대비 4.5:1 이상(a11y) */
  --line: #e5e8eb;
  --mist: #f2f4f6;
  --blue: #3182f6;
  --deep: #1b64da;
  --bell: #f5c518;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

::selection { background: var(--blue); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

h1, h2 { margin: 0; letter-spacing: -0.03em; }
h1 {
  font-size: clamp(2.125rem, 4.2vw + 0.9rem, 3.5rem);
  font-weight: 800;
  line-height: 1.18;
}
h2 {
  font-size: clamp(1.5rem, 1.8vw + 0.9rem, 2.125rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.025em;
}
p { margin: 0; }

.fineprint {
  font-size: 0.875rem;
  color: var(--faint);
  line-height: 1.6;
}

/* ───── 내비게이션 ───── */

.nav { padding-block: 18px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-brand img { border-radius: 8px; }

/* ───── 히어로 ───── */

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 130px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero-copy .bell { margin-bottom: clamp(20px, 3vw, 34px); }
.lead {
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: clamp(1.0625rem, 0.9vw + 0.8rem, 1.1875rem);
  color: var(--dim);
  max-width: 30em;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--faint);
}
.hero-visual { display: flex; justify-content: center; }

@media (max-width: 859.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
}

/* 벨 — 로드 시 1회 스윙 + 소리 파동 (이 페이지의 유일한 모션) */
.bell-body {
  transform-origin: 80px 10px;
  animation: bell-swing 1.9s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.35s 1 both;
}
.rings path { opacity: 0; animation: ring-in 0.9s ease-out 1 forwards; }
.rings .r1 { animation-delay: 0.55s; }
.rings .r2 { animation-delay: 0.75s; }
@keyframes bell-swing {
  0% { transform: rotate(0deg); }
  16% { transform: rotate(13deg); }
  36% { transform: rotate(-10deg); }
  56% { transform: rotate(6deg); }
  76% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
@keyframes ring-in {
  from { opacity: 0; }
  to { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .bell-body { animation: none; }
  .rings path { animation: none; opacity: 0.85; }
}

/* ───── 폰 프레임 ───── */

.phone {
  position: relative;
  width: min(330px, 82vw);
  border-radius: 48px;
  padding: 10px;
  background: #15181e;
  box-shadow: 0 24px 60px -24px rgba(25, 31, 40, 0.45);
}
.phone-sm { width: min(300px, 78vw); }
/* 상태바 영역을 만들어 아일랜드가 앱 헤더를 가리지 않게 한다 (#f7f7f8 = 앱 헤더 배경 실측값) */
.phone-screen {
  background: #f7f7f8;
  border-radius: 38px;
  overflow: hidden;
  padding-top: 34px;
}
.phone-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 25px;
  border-radius: 13px;
  background: #15181e;
  z-index: 1;
}

/* ───── 기능 행 ───── */

.features { padding-block: clamp(8px, 2vw, 24px) clamp(80px, 10vw, 150px); }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.row + .row { margin-top: clamp(80px, 10vw, 150px); }
.row-copy p { margin-top: 18px; color: var(--dim); max-width: 27em; }
.row-copy .fineprint { margin-top: 12px; }
.row-visual { display: flex; justify-content: center; }

@media (min-width: 860px) {
  .row.rev .row-copy { order: 2; }
  .row.rev .row-visual { order: 1; }
}
@media (max-width: 859.98px) {
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row + .row { margin-top: 88px; }
}

.shot-card {
  margin: 0;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--mist);
}

.home-tile {
  width: min(520px, 100%);
  min-height: 320px;
  border-radius: 24px;
  background: var(--mist);
  display: grid;
  place-items: center;
}
.home-tile-icon {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.home-tile-icon img {
  border-radius: 24px;
  box-shadow: 0 10px 28px -10px rgba(25, 31, 40, 0.3);
}
.home-tile-icon span { font-size: 0.875rem; font-weight: 500; color: var(--dim); }

/* ───── 푸터 ───── */

.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .nav-brand { font-size: 1.0625rem; }
.footer p { font-size: 0.875rem; color: var(--faint); }
