/* 냥답 공식 홈페이지 — 디자인 토큰은 앱(App.js COLORS)과 같은 값을 씀 */
:root {
  --bg: #FBF6F3;
  --surface: #FFFFFF;
  --line: #F0E6E4;
  --line-strong: #E6D6D3;
  --rose: #B84A63;
  --rose-deep: #8A3A4E;
  --rose-tint: #F6E1E5;
  --rose-soft: #FBEFF1;
  --ink: #2E2427;
  --body: #4A3D41;
  --sub: #6E5E62;
  --field: #F6EFEC;
  /* 맵냥(치즈 고양이) 보조색 — 데이트 영역에서만 사용 */
  --cheese: #EE9E45;
  --cheese-soft: #FDF1E3;
  --cheese-deep: #9A5410;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --gutter: 20px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--rose-deep); margin-bottom: 10px; }
.section-title { font-size: 28px; font-weight: 800; }
.section-lead { margin-top: 12px; color: var(--sub); font-size: 16px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 8px 20px -10px rgba(184, 74, 99, .6); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--rose-deep); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--rose); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 243, .92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--rose-tint); color: var(--rose-deep); font-size: 11px; font-weight: 700; vertical-align: 3px; margin-left: 4px; }
.nav { display: none; gap: 28px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--rose); }
.header-cta { display: none; }

/* ---------- 히어로 ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy { text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--sub); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.hero h1 { margin-top: 18px; font-size: 32px; font-weight: 800; line-height: 1.32; }
.hero h1 .who { color: var(--rose); }
.hero h1 .who-map { color: var(--cheese-deep); }
.hero-lead { margin: 16px auto 0; max-width: 520px; color: var(--body); font-size: 16px; }
.hero-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.hero-note { margin-top: 12px; font-size: 13px; color: var(--sub); }

.cat-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin: 0 auto; width: 100%; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 14px 16px; text-align: center; }
.cat-card.dap { background: var(--rose-soft); border-color: #EBD3D8; }
.cat-card.map { background: var(--cheese-soft); border-color: #F2DCC1; margin-top: 28px; }
.cat-card img { width: 100%; max-width: 132px; aspect-ratio: 1; margin: 0 auto; }
.cat-name { margin-top: 10px; font-weight: 800; font-size: 17px; }
.cat-role { font-size: 13px; color: var(--sub); }
.bubble { position: relative; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 13px; line-height: 1.5; color: var(--body); text-align: left; border: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 3.2s ease-in-out infinite; }
  .bob.delay { animation-delay: -1.6s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ---------- 공감 ---------- */
.worries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.worry { padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--body); }
.worries-foot { margin-top: 24px; text-align: center; color: var(--sub); font-size: 15px; }

/* ---------- 캐릭터 기능 ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.duo { display: grid; gap: 20px; }
.feature { border-radius: var(--radius-lg); padding: 28px 22px; border: 1px solid var(--line); background: var(--bg); }
.feature.dap { background: var(--rose-soft); border-color: #EBD3D8; }
.feature.map { background: var(--cheese-soft); border-color: #F2DCC1; }
.feature-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-top img { width: 72px; height: 72px; flex-shrink: 0; }
.feature-tag { font-size: 13px; font-weight: 700; color: var(--rose-deep); }
.feature.map .feature-tag { color: var(--cheese-deep); }
.feature h3 { font-size: 22px; font-weight: 800; }
.feature-desc { color: var(--body); margin-bottom: 18px; }
.checks li { position: relative; padding-left: 28px; margin-top: 10px; color: var(--body); font-size: 15px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.feature.map .checks li::before { background-color: var(--cheese-deep); }
.checks strong { color: var(--ink); }

/* ---------- 흐름 ---------- */
.flow { display: grid; gap: 14px; counter-reset: step; }
.flow-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 20px 20px 64px; }
.flow-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.flow-item h3 { font-size: 17px; font-weight: 800; }
.flow-item p { margin-top: 4px; font-size: 15px; color: var(--sub); }
.soon { margin-top: 20px; display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius-md); border: 1.5px dashed var(--line-strong); background: var(--surface); }
.soon img { width: 56px; height: 56px; flex-shrink: 0; }
.soon-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--sub); background: var(--field); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.soon p { font-size: 15px; color: var(--body); }

/* ---------- 안심 ---------- */
.trust { display: grid; gap: 14px; }
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--rose-tint); color: var(--rose-deep); display: grid; place-items: center; margin-bottom: 14px; }
.trust-item h3 { font-size: 17px; font-weight: 800; }
.trust-item p { margin-top: 6px; font-size: 15px; color: var(--sub); }
.trust-foot { margin-top: 18px; font-size: 14px; color: var(--sub); }

/* ---------- 설치 ---------- */
.install-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; }
.platforms { display: grid; gap: 12px; margin-bottom: 24px; }
.platform { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.platform-name { font-weight: 800; }
.platform-sub { font-size: 13px; color: var(--sub); }
.platform .status { font-size: 13px; font-weight: 700; color: var(--sub); background: var(--field); padding: 6px 12px; border-radius: 999px; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 40px; font-size: 15px; color: var(--body); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--rose-tint); color: var(--rose-deep); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.steps strong { color: var(--ink); }
.callout { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--rose-soft); border: 1px solid #EBD3D8; font-size: 14px; color: var(--body); }
.callout strong { color: var(--rose-deep); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 16px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--body); font-size: 15px; }
.faq .answer p + p { margin-top: 8px; }

/* ---------- 마지막 CTA ---------- */
.closing { text-align: center; }
.closing-cats { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.closing-cats img { width: 72px; height: 72px; }
.closing h2 { font-size: 26px; font-weight: 800; }
.closing p { margin-top: 10px; color: var(--sub); }
.closing .btn { margin-top: 24px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #D9CED0; padding: 48px 0 40px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-desc { margin-top: 10px; max-width: 360px; color: #BFB2B5; }
.company dt { color: #9E9093; font-size: 13px; }
.company dd { margin: 0 0 10px; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid #45393D; color: #9E9093; font-size: 13px; }

/* ---------- 모바일 하단 고정 버튼 ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s ease;
}
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-hidden { transform: translateY(110%); }
body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* ---------- 정책 문서 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.doc h1 { font-size: 28px; font-weight: 800; }
.doc .meta { margin-top: 8px; color: var(--sub); font-size: 14px; }
.doc h2 { margin-top: 36px; font-size: 19px; font-weight: 800; }
.doc p, .doc li { color: var(--body); font-size: 15px; }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { margin-top: 10px; padding-left: 20px; }
.doc ul { list-style: disc; }
.doc li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line-strong); padding: 10px; text-align: left; vertical-align: top; color: var(--body); }
.doc th { background: var(--rose-soft); color: var(--ink); }
.table-scroll { overflow-x: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* 모바일: 첫 화면에서 두 고양이가 먼저 보이도록 헤드라인 위로, 작게 */
@media (max-width: 959px) {
  .cat-stage { order: -1; max-width: 300px; gap: 12px; }
  .cat-card { padding: 14px 10px 12px; }
  .cat-card.map { margin-top: 14px; }
  .cat-card img { max-width: 84px; }
  .cat-name { margin-top: 6px; font-size: 16px; }
  .bubble { display: none; }
  .hero { padding-top: 24px; }
  .hero-grid { gap: 24px; }
}

/* ================= 태블릿 이상 ================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .section-title { font-size: 32px; }
}

/* ================= 데스크톱 ================= */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .section { padding: 104px 0; }
  .site-header .wrap { height: 72px; }
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-copy { text-align: left; }
  .hero h1 { font-size: 50px; }
  .hero-lead { margin-left: 0; font-size: 18px; }
  .hero-actions { justify-content: flex-start; }
  .cat-stage { max-width: 460px; gap: 18px; }
  .cat-card { padding: 24px 18px 20px; }
  .cat-card.map { margin-top: 56px; }
  .cat-card img { max-width: 168px; }
  .bubble { font-size: 14px; }
  .duo { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature { padding: 36px 32px; }
  .feature-top img { width: 88px; height: 88px; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-item { padding: 64px 20px 22px; }
  .flow-item::before { left: 20px; top: 20px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .install-box { padding: 36px; }
  .install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .platforms { grid-template-columns: 1fr; margin-bottom: 0; }
  .section-title { font-size: 38px; }
  .closing h2 { font-size: 34px; }
  .doc { padding-top: 64px; }
}

/* ---------- 영상 (숏폼) ---------- */
.shorts { padding-top: 24px; }
.shorts-list { display: flex; flex-direction: column; align-items: center; gap: 72px; }
.short { margin: 0; width: 100%; max-width: 320px; }
.short-cap { display: grid; gap: 2px; text-align: center; margin-bottom: 16px; }
.short-no { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--rose); }
.short-cap strong { font-size: 19px; font-weight: 800; color: var(--ink); }
.short-cap span:last-child { font-size: 14px; color: var(--sub); }
.short-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--field); border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--rose-tint); }
.short-frame video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.short-sound { position: absolute; right: 8px; bottom: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(46, 36, 39, 0.82); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shorts-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--sub); }

/* ---------- 테마: 빈티지 데이트 ---------- */
.vintage { background: #FFF9F0; border-top: 1px solid #F3D9B8; border-bottom: 1px solid #F3D9B8; }
.vintage-grid { display: grid; gap: 28px; align-items: center; }
.vintage-cats { display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.vintage-cats img { width: 42%; max-width: 176px; height: auto; }
.vintage-eyebrow { color: var(--cheese-deep); }
.vintage-list { margin-top: 24px; display: grid; gap: 12px; }
.vintage-list li { background: var(--surface); border: 1px solid #F3D9B8; border-radius: var(--radius-md); padding: 16px 18px; display: grid; gap: 4px; }
.vintage-list strong { font-size: 16px; font-weight: 800; }
.vintage-list span { font-size: 15px; color: var(--sub); }
.vintage-note { margin-top: 14px; font-size: 13px; color: var(--sub); }

/* ---------- 스크롤하면 나타나기 ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (min-width: 960px) {
  .shorts-list { gap: 120px; }
  .short { max-width: 360px; }
  .short-sound { right: 12px; bottom: 12px; }
  .vintage-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}
