/* 보고있개 소개 사이트 — 킨포라 스타일(다크·크림 교차, 시네마틱) */

:root {
  --black: #0F130E;
  --green: #2E3B26;
  --cream: #F1ECDF;
  --card:  #FBFAF4;
  --sage:  #AEB984;
  --ink-d: #F5F3EC;   /* 다크 위 텍스트 */
  --mut-d: #A7A99B;
  --ink-l: #1C1C17;   /* 밝은 위 텍스트 */
  --mut-l: #6E6E62;
  --line-l:#E2DCCB;
  --line-d:#232A20;
  --head: "Gothic A1", "Noto Sans KR", sans-serif;
  --body: "Noto Sans KR", sans-serif;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink-l);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; margin: 0; line-height: 1.22; letter-spacing: -0.025em; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* 섹션 톤 */
.sec { padding-block: clamp(72px, 10vw, 120px); }
.sec--dark  { background: var(--black); color: var(--ink-d); }
.sec--green { background: var(--green); color: var(--ink-d); }
.sec--cream { background: var(--cream); color: var(--ink-l); }
.sec--card  { background: var(--card);  color: var(--ink-l); }
.sec--dark h2, .sec--green h2, .sec--dark h1 { color: var(--ink-d); }

/* 배지 */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.badge--sage  { background: var(--sage);  color: #26301A; }
.badge--green { background: var(--green); color: #EDE9DC; }

/* 아이콘 */
.ic { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8;
      fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* 모션 활성 시에만 리빌 대상 선숨김 — JS 실패·reduced-motion이면 그대로 보임 */
.has-motion [data-reveal],
.has-motion [data-stagger] > * { visibility: hidden; }
/* gsap autoAlpha가 visibility를 다시 켠다 */

/* ---------- 히어로 ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  color: var(--ink-d); overflow: hidden; background: var(--black);
}
.hero__bg {
  position: absolute; top: -12%; right: 0; bottom: 0; left: 0; /* 패럴랙스(yPercent:12)로 내려가도 위 가장자리 안 드러나게 여유분 */
  background: url("../assets/hero-living-room.jpg") center 35% / cover no-repeat;
}
/* 원형 비네트(포트홀) + 하단 셰이드 */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 38%,
    rgba(15,19,14,0) 0%, rgba(15,19,14,.45) 58%, rgba(15,19,14,.96) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,19,14,.92) 6%, rgba(15,19,14,0) 55%);
}
.hero__inner { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vw, 104px); max-width: 840px; } /* 58px 타이틀 2줄 유지 폭 — 좁으면 고아 줄바꿈. z-index는 그레인(.hero::after) 아래 깔리지 않게 */
.hero h1 { font-size: clamp(32px, 6vw, 58px); margin: 18px 0 16px; }
.hero p { max-width: 460px; color: #D6D5CB; font-size: clamp(14px, 1.4vw, 16px); }

/* ---------- DETECT ---------- */
.split { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--sage); }
.sec--cream .eyebrow, .sec--card .eyebrow { color: var(--green); }
.detect h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.detect p { color: var(--mut-d); max-width: 420px; }
.phone-card {
  width: min(340px, 74vw); aspect-ratio: 340 / 460; border-radius: 28px; overflow: hidden;
  background: #1A1E15 url("../assets/detect-dog.jpg") center/cover no-repeat;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
@media (max-width: 760px){ .split { grid-template-columns: 1fr; } .phone-card { margin-top: 8px; } }

/* ---------- 공통 센터 헤더 ---------- */
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.center h2 { font-size: clamp(26px, 3.6vw, 38px); }
.center p { color: var(--mut-l); max-width: 560px; }
.sec--green .center p { color: #CBD3BE; }

/* ---------- 레이더 링(디바이스) ---------- */
.radar { position: relative; width: min(360px, 80vw); aspect-ratio: 1; margin: 28px auto 0; }
.radar span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(174,185,132,.55);
}
.radar span:nth-child(1){ width: 100%; height: 100%; opacity: .5; }
.radar span:nth-child(2){ width: 72%;  height: 72%;  opacity: .7; }
.radar span:nth-child(3){ width: 46%;  height: 46%;  opacity: .9; }
.radar span:nth-child(4){
  width: 32px; height: 32px; border: 0; background: var(--sage);
  box-shadow: 0 0 26px 3px rgba(174,185,132,.55);
}

/* ---------- 행동 그리드 ---------- */
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; width: 100%; margin-top: 8px; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 10px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line-l);
}
.chip__ic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(46,59,38,.07); color: var(--green);
}
.chip span { font-size: 14px; font-weight: 600; }
@media (max-width: 860px){ .chips { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px){ .chips { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 핵심 기능 카드 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.fcard {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line-l);
}
.fcard__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green);
  color: var(--sage); display: grid; place-items: center; }
.fcard h3 { font-size: 20px; font-weight: 700; }
.fcard p { color: var(--mut-l); font-size: 14px; }
@media (max-width: 860px){ .features { grid-template-columns: 1fr; } }

/* ---------- CTA 버튼 ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.btn--dark { background: var(--ink-l); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink-l); border: 1px solid var(--line-l); }

/* ---------- FAQ ---------- */
.faq { width: min(820px, 100%); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { transition: transform .2s; color: var(--mut-l); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq p { padding: 0 4px 22px; color: var(--mut-l); font-size: 15px; }

/* ---------- 문서 페이지(약관/정책) ---------- */
.doc { background: var(--cream); color: var(--ink-l); }
.doc__head { background: var(--black); color: var(--ink-d); padding-block: clamp(56px, 8vw, 88px); }
.doc__head h1 { font-size: clamp(28px, 4vw, 40px); }
.doc__head p { color: var(--mut-d); margin-top: 10px; }
.doc__body { max-width: 820px; margin: 0 auto; padding: clamp(48px,7vw,80px) var(--pad); }
.doc__body h2 { font-size: 20px; margin: 40px 0 12px; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body li { color: #3D3931; font-size: 15px; line-height: 1.85; }
.doc__body ul { padding-left: 20px; margin: 8px 0; }
.doc__body li { margin: 6px 0; }
.doc__body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc__body th, .doc__body td { border: 1px solid var(--line-l); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc__body th { background: #EDE7D8; font-weight: 700; }
.doc__note { background: #EDE7D8; border-radius: 14px; padding: 18px 20px; font-size: 14px; color: var(--mut-l); }
.doc__updated { color: var(--mut-l); font-size: 13px; margin-top: 4px; }

/* ---------- 디테일(호버·포커스·그레인) ---------- */
.fcard { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(28,28,23,.18); }

.chip { transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease; }
.chip:hover { transform: translateY(-3px); border-color: var(--sage); }

.btn { transition: transform .25s ease, opacity .25s ease; }
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn:active { transform: translateY(0) scale(.98); } /* 촉각 피드백 — 눌리는 느낌 */

/* JS 가드만으론 CSS 트랜지션·smooth scroll이 남음 — 전정기관 민감 사용자에겐 페이지 스크롤 애니가 특히 문제 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fcard, .chip, .btn { transition: none; }
}

/* 포커스 상태 (키보드 접근성) */
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px;
}

/* 히어로 필름 그레인 */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 푸터 ---------- */
.footer { background: var(--black); color: var(--ink-d); padding: 56px var(--pad) 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__logo { font-family: var(--head); font-weight: 800; font-size: 22px; }
.footer__cs { color: var(--mut-d); font-size: 13px; margin-top: 8px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; font-weight: 500; color: #C7C8BC; }
.footer__links a:hover { color: #fff; }
.footer__cr { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-d);
  color: #8B8D80; font-size: 12px; } /* #6E7065는 다크 배경 대비 4.5:1 미달(WCAG AA) */
