/* =========================================================
   PuppyDesk — Hippocare 디자인 시스템 계승
   Type: Pretendard (KR/EN) + Fragment Mono (numerals/labels)
   Rhythm: 1200px container, 24px gutters, generous vertical air
   Palette: white 60 / dark 30 / gray 10 — 무채색, 대비로만 위계 표현
   ========================================================= */

:root {
  /* 60 — white */
  --paper: #ffffff;
  --paper-2: #f3f4f4;
  --paper-3: #fafafa;

  /* 30 — dark */
  --ink: #14181a;
  --ink-2: #3d4447;
  --forest: #16191b;
  --accent: #14181a;

  /* 10 — gray */
  --muted: #8d9391;
  --line: #e6e8e8;
  --gray-soft: #eeefef;
  --on-dark: #ffffff;

  /* type */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, monospace;

  /* space */
  --gutter: 24px;
  --shell: 1200px;
  --section-y: 160px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 고정 헤더 아래로 앵커 타깃이 숨지 않도록 */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* 키보드 사용자에게만 보이는 포커스 링 — 마우스 클릭에는 나타나지 않는다 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* 본문 건너뛰기 링크 — 포커스될 때만 화면에 나타난다 */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.28;
}
h1 { font-size: clamp(34px, 4.4vw, 54px); }
h2 { font-size: clamp(28px, 3.3vw, 42px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h1, h2, h3, .statement-title, .statement-sub { text-wrap: balance; }

.kicker {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.kicker.light { color: #fff; }

.lede {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.section { padding: var(--section-y) 0; }
.section-title { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--pill);
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s ease, color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--on-dark); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-accent:hover { box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }
.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
/* 발자국 모양 브랜드 마크 — 원 4개를 radial-gradient로 겹쳐 그린다 */
.brand-mark {
  width: 20px; height: 20px;
  background:
    radial-gradient(circle 3px at 4px 5px, var(--accent) 97%, transparent),
    radial-gradient(circle 3px at 16px 5px, var(--accent) 97%, transparent),
    radial-gradient(circle 2.6px at 1.4px 11px, transparent 0, transparent 0),
    radial-gradient(ellipse 6px 5px at 10px 14px, var(--accent) 97%, transparent),
    radial-gradient(circle 2.4px at 10px 3.4px, var(--accent) 97%, transparent);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--forest); }
.nav-cta-mobile { display: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12,14,15,.78) 0%, rgba(12,14,15,.45) 48%, rgba(12,14,15,.14) 100%),
    url('https://images.unsplash.com/photo-1548199973-03cce0bbc87b?auto=format&fit=crop&w=2000&q=85') center/cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.hero-copy { color: #fff; }
.hero-eyebrow {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: #fff;
}
.hero h1 {
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.24;
  letter-spacing: -0.05em;
  color: #fff;
}
/* 무채색 팔레트에서 가장 강한 강조는 반전 — 브랜드 라인만 백색 플레이트 */
.hero h1 .hl {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  padding: .02em .2em .1em .14em;
}
.hero-sub {
  margin: 26px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.035em;
  color: rgba(255,255,255,.8);
}
.hero-actions { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }

/* 보호자 폰 목업 — 알림장이 도착하는 순간 */
.hero-device { display: flex; justify-content: flex-end; }
.device {
  width: 320px;
  background: #fff;
  border-radius: 34px;
  border: 6px solid #0b0f0d;
  box-shadow: 0 40px 90px rgba(0,0,0,.42);
  overflow: hidden;
}
.device-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
}
.device-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.04em;
}
.device-brand i {
  width: 13px; height: 13px;
  background:
    radial-gradient(circle 2px at 2.8px 3.4px, var(--accent) 97%, transparent),
    radial-gradient(circle 2px at 10.2px 3.4px, var(--accent) 97%, transparent),
    radial-gradient(ellipse 4px 3.4px at 6.5px 9.4px, var(--accent) 97%, transparent),
    radial-gradient(circle 1.7px at 6.5px 2.2px, var(--accent) 97%, transparent);
}
.device-menu { display: grid; gap: 3px; }
.device-menu b { display: block; width: 15px; height: 1.5px; background: var(--ink); }
.device-body { padding: 6px 14px 20px; display: grid; gap: 9px; }
.chat {
  margin: 0;
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.chat.in { background: var(--paper-2); color: var(--ink-2); }
.chat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 8px 20px rgba(14,21,18,.06);
}
.cc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
  font-size: 10px; color: var(--muted); line-height: 1.5;
}
.cc-head b { display: block; font-size: 12px; color: var(--ink); letter-spacing: -0.03em; }
.cc-head i {
  width: 14px; height: 14px;
  background:
    radial-gradient(circle 2.1px at 3px 3.6px, var(--accent) 97%, transparent),
    radial-gradient(circle 2.1px at 11px 3.6px, var(--accent) 97%, transparent),
    radial-gradient(ellipse 4.4px 3.6px at 7px 10px, var(--accent) 97%, transparent),
    radial-gradient(circle 1.8px at 7px 2.3px, var(--accent) 97%, transparent);
}
.cc-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 10px; color: var(--muted);
}
.cc-row b { font-family: var(--mono); font-size: 10px; color: var(--ink); font-weight: 400; }
.cc-row b.ok { color: var(--accent); }
/* 알림장에 함께 도착한 오늘의 사진 — 폰 목업 안의 작은 썸네일 스트립 */
.cc-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.cc-photos i {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  background-color: var(--gray-soft);
  background-size: cover;
  background-position: center;
}
.cc-photos .cp-1 { background-image: url('https://images.unsplash.com/photo-1591160690555-5debfba289f0?auto=format&fit=crop&w=200&h=200&q=65'); }
.cc-photos .cp-2 { background-image: url('https://images.unsplash.com/photo-1601979031925-424e53b6caaa?auto=format&fit=crop&w=200&h=200&q=65'); }
.cc-photos .cp-3 { background-image: url('https://images.unsplash.com/photo-1477884213360-7e9d7dcc1e48?auto=format&fit=crop&w=200&h=200&q=65'); }

/* ---------- Statement ---------- */
.statement {
  padding: 120px 0;
  text-align: center;
  background: var(--paper);
}
.statement-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.statement-sub {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-2);
}

/* ---------- Split (why + stats) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-copy h2 { line-height: 1.35; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.03em;
}
.stat b {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.stat-ico {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--gray-soft);
  position: relative;
}
.stat-ico::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--forest);
}
.ico-star::after { width: 22px; height: 22px; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 62%, 81% 100%, 50% 77%, 19% 100%, 29% 62%, 0 38%, 37% 35%); }
.ico-chat::after { width: 22px; height: 19px; clip-path: polygon(0 0, 100% 0, 100% 72%, 34% 72%, 12% 100%, 16% 72%, 0 72%); }
.ico-merge::after { width: 22px; height: 20px; clip-path: polygon(0 0, 38% 0, 38% 38%, 100% 38%, 100% 62%, 38% 62%, 38% 100%, 0 100%); }
.ico-bell::after { width: 20px; height: 22px; clip-path: polygon(50% 0, 66% 8%, 78% 58%, 100% 78%, 0 78%, 22% 58%, 34% 8%); }

/* ---------- Partners ---------- */
.partners { padding: 110px 0; background: var(--paper-3); overflow: hidden; }
.partners-title {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--accent);
}
.partners-sub {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.partners-note {
  margin: 34px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: #9aa29e;
}

.logo-marquee {
  margin-top: 54px;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  animation: marquee 42s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 74px;
  padding: 0 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20,24,26,.1);
}
.logo svg { width: 30px; height: 30px; flex: none; }
.lg-type { display: grid; gap: 3px; }
.lg-type b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
}
.lg-type i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

/* 파트너 마크는 제3자 아이덴티티 — 고유 색을 유지하고 팔레트 밖에 둔다 */
.logo-nolzago { color: #c77b3f; }
.logo-nolzago .lg-type b { letter-spacing: -0.06em; }
.logo-mungcampus { color: #2b5fb8; }
.logo-mungcampus .lg-type b { letter-spacing: .02em; font-weight: 700; }
.logo-terrace { color: #4a8f4e; }
.logo-terrace .lg-type b { font-weight: 800; letter-spacing: -0.03em; }
.logo-fourpaws { color: #8659b5; }
.logo-fourpaws .lg-type b { font-weight: 700; letter-spacing: -0.055em; }
.logo-haruvet { color: #2b6bd6; }
.logo-haruvet .lg-type b { letter-spacing: -0.02em; }
.logo-walkids { color: #16a97a; }
.logo-walkids .lg-type b { font-weight: 800; letter-spacing: -0.05em; }
.logo-petpay { color: #0f8fd6; }
.logo-petpay .lg-type b { letter-spacing: .06em; font-weight: 600; }
.logo-comongdog { color: #c2452f; }
.logo-comongdog .lg-type b { letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .logo-track { animation: none; }
}

