/* =========================================================
   PuppyDesk — 증분 섹션 스타일
   담당: 사진 아카이브 패널 · 안전(NFC/스마트태그) · 토스플레이스 연동 카드
        · 도입 절차 + FAQ · 통계 각주
   styles.css → sections.css 뒤에 로드된다. 자체 반응형 규칙을 포함한다.
   (sections.css 가 파일 상한에 가까워 이후 섹션은 이 파일에 쌓는다)
   ========================================================= */

/* ---------- 사진 아카이브 패널 (작동 방식 4번째 피처) ---------- */
.photo-panel {
  width: 100%;
  max-width: 440px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.ph-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ph-head b { font-family: var(--mono); font-weight: 400; color: var(--muted); }

/* 썸네일 그리드 — 앨범에 쌓인 실제 사진.
   사진은 자체 색을 유지한다(무채색 팔레트는 UI를 지배할 뿐 이미지에는 적용하지 않는다). */
.ph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 4px;
}
.ph-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  background-color: var(--gray-soft);   /* 이미지 로드 전/실패 시의 바탕 */
  background-size: cover;
  background-position: center;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.ph-grid i:hover { transform: scale(1.04); }
.ph-grid .ph-1 { background-image: url('https://images.unsplash.com/photo-1591160690555-5debfba289f0?auto=format&fit=crop&w=300&h=300&q=70'); }
.ph-grid .ph-2 { background-image: url('https://images.unsplash.com/photo-1601979031925-424e53b6caaa?auto=format&fit=crop&w=300&h=300&q=70'); }
.ph-grid .ph-3 { background-image: url('https://images.unsplash.com/photo-1583511655857-d19b40a7a54e?auto=format&fit=crop&w=300&h=300&q=70'); }
.ph-grid .ph-4 { background-image: url('https://images.unsplash.com/photo-1518717758536-85ae29035b6d?auto=format&fit=crop&w=300&h=300&q=70'); }
.ph-grid .ph-5 { background-image: url('https://images.unsplash.com/photo-1517849845537-4d257902454a?auto=format&fit=crop&w=300&h=300&q=70'); }
.ph-grid .ph-6 { background-image: url('https://images.unsplash.com/photo-1477884213360-7e9d7dcc1e48?auto=format&fit=crop&w=300&h=300&q=70'); }

.ph-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.ph-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.ph-row:last-child { border-bottom: 0; }
.ph-row b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink);
}

/* ---------- 안전 관리 섹션 ---------- */
.safety { background: var(--paper); }
.safety-head { max-width: 780px; }
.safety-lede { max-width: 640px; }

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 64px;
}
.s-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 30px;
}
.s-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.s-card h3 { font-size: 21px; letter-spacing: -0.04em; }
.s-card > p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* NFC 스캔 패널 — 태그를 갖다 대는 순간을 파문으로 표현 */
.nfc-panel {
  margin-top: 26px;
  padding: 40px 24px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.nfc-ring {
  width: 108px; height: 108px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  position: relative;
}
.nfc-ring::before,
.nfc-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: nfcRipple 2.6s ease-out infinite;
}
.nfc-ring::after { animation-delay: 1.3s; }
@keyframes nfcRipple {
  from { transform: scale(1); opacity: .5; }
  to { transform: scale(1.55); opacity: 0; }
}
.nfc-chip {
  width: 40px; height: 27px;
  border-radius: 6px;
  background: var(--forest);
  position: relative;
}
.nfc-chip::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
}
.nfc-id {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .04em;
}
.nfc-state {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* 태그 상태 패널 — 스마트태그로 실제 알 수 있는 것은 '연결 여부'와
   '마지막 확인 위치'뿐이다. 실내 측위처럼 보이는 지도 UI 는 쓰지 않는다. */
.tag-panel {
  margin-top: 26px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tp-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.tp-title b { font-weight: 400; color: var(--ink); }

.tg-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tg-row:last-of-type { border-bottom: 0; }
.tg-row i {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--gray-soft);
}
.tg-row div { flex: 1; min-width: 0; }
.tg-row b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}
.tg-row span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: break-word;
}
.tg-row em {
  flex: none;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
/* 이탈한 아이 — 속 빈 점 + 맥동으로 '지금 처리해야 할 일'임을 드러낸다 */
.tg-row.alert i {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(20,24,26,.14);
  animation: tagPulse 1.8s ease-in-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20,24,26,.14); }
  50% { box-shadow: 0 0 0 10px rgba(20,24,26,.04); }
}
.tg-row.alert em { color: var(--ink); font-weight: 700; }

.tg-last {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px !important;
  letter-spacing: .02em;
  color: var(--muted) !important;
}

/* 기술적 한계를 먼저 밝히는 주석 — 과대 약속을 만들지 않기 위한 장치 */
.tag-note {
  margin: 16px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.7;
  color: var(--muted) !important;
  letter-spacing: -0.01em;
}
.tag-note b { color: var(--ink-2); font-weight: 700; }

.safety-note {
  margin-top: 22px;
}
.safety-note p {
  margin: 0;
  padding: 20px 24px;
  border-left: 2px solid var(--ink);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}
.safety-note b { color: var(--ink); }

/* ---------- 토스플레이스 연동 카드 (매출 관리 섹션의 헤드라인) ---------- */
/* 실제로 쓰는 POS 라 다른 카드보다 무게를 준다: 전체 폭 + 어두운 패널 */
.g-card.full {
  grid-column: span 6;
  background: #fff;
}
.g-card.toss {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}
.toss-copy > p {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: -0.01em;
}
/* 연동됨을 알리는 배지는 반전시켜 '가능'이 아니라 '지원'임을 드러낸다 */
.g-badge.on {
  background: var(--ink);
  color: #fff;
}

.toss-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 26px;
}
.tf-step {
  flex: 1;
  padding: 16px 18px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tf-step span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.tf-step b {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
  letter-spacing: -0.035em;
}
.tf-step i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.tf-arrow {
  align-self: center;
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--line);
  position: relative;
}
.tf-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg);
}

.toss-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.toss-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}
.toss-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--ink);
}

/* 우측 실적 패널 — 이 섹션의 유일한 어두운 오브젝트 */
.toss-panel {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 26px 22px;
}
.tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.tp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  color: #fff;
}
.tp-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blip 2.2s ease-in-out infinite;
}
.tp-sales { padding: 22px 0 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.tp-sales small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.tp-sales b {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.02em;
}
.tp-sales span { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* 어두운 패널 안에서는 공용 행/각주 색을 반전시킨다 */
.toss-panel .gs-row {
  border-bottom-color: rgba(255,255,255,.09);
  color: rgba(255,255,255,.6);
}
.toss-panel .gs-row b { color: #fff; }
.toss-panel .gs-note { color: rgba(255,255,255,.45) !important; }

/* ---------- 고객용 홈페이지 섹션 ---------- */
.site { background: var(--paper); }
.site-head { max-width: 780px; }
.site-lede { max-width: 640px; }

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
  align-items: start;
}

/* 브라우저 프레임 — 보호자가 실제로 보게 될 화면의 축소판 */
.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(14,21,18,.09);
}
.br-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
.br-dots { display: inline-flex; gap: 6px; }
.br-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #d4d8d8;
}
.br-url {
  flex: 1;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.br-body { padding: 18px; }

/* 미니 히어로 — 실제 랜딩의 사진 위 흰 글씨 구성을 그대로 축소했다 */
.br-hero {
  position: relative;
  border-radius: 14px;
  padding: 28px 22px 24px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(12,14,15,.72) 0%, rgba(12,14,15,.3) 100%),
    url('https://images.unsplash.com/photo-1601979031925-424e53b6caaa?auto=format&fit=crop&w=600&h=400&q=70') center/cover;
}
.br-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
}
.br-hero h4 {
  margin: 10px 0 16px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.045em;
}
.br-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.br-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.br-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.br-card small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.br-card b {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
}

/* 입학 자가진단 — 문의 응대를 줄이는 핵심 위젯이라 체크 상태를 드러낸다 */
.br-check {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: var(--paper-3);
}
.brc-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 11.5px;
  color: var(--muted);
}
.brc-row b.yes {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
}
.brc-result {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* 우측 설명 목록 */
.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.site-list li {
  position: relative;
  padding-left: 26px;
}
.site-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--ink);
}
.site-list b {
  display: block;
  font-size: 15.5px;
  letter-spacing: -0.04em;
}
.site-list span {
  display: block;
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* 테마 견본 — 무채색 팔레트 밖의 색이므로 작은 칩으로만 쓴다 */
.themes {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.th-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.th-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 14px;
}
.th-swatches i {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
}
.th-1 { background: linear-gradient(135deg, #14181a 50%, #f3f4f4 50%); }
.th-2 { background: linear-gradient(135deg, #2f5d50 50%, #f2ede3 50%); }
.th-3 { background: linear-gradient(135deg, #c8623a 50%, #f7efe6 50%); }
.th-4 { background: linear-gradient(135deg, #1f3a63 50%, #e8eef5 50%); }
.th-5 { background: linear-gradient(135deg, #7a4a72 50%, #f6eef4 50%); }
.th-6 { background: linear-gradient(135deg, #b98a2e 50%, #1c1a17 50%); }
.th-7 { background: linear-gradient(135deg, #d9a5b0 50%, #fdf4f6 50%); }
.th-8 { background: linear-gradient(135deg, #3d6b3a 50%, #eef3e9 50%); }
.th-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* 통계 각주 — 수치의 출처가 제품 성과가 아님을 밝힌다 */
.stat small em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.stat-source {
  margin: 40px auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ---------- 도입 절차 + FAQ ---------- */
.onboard { background: var(--paper-3); }
.onboard-head { max-width: 780px; }
.onboard-lede { max-width: 620px; }

/* 번호가 매겨진 4단계 — 브라우저 기본 마커는 끄고 모노 번호를 직접 그린다 */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}
.st-no {
  display: block;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--muted);
  letter-spacing: .02em;
}
.steps h3 {
  font-size: 19px;
  margin: 14px 0 10px;
  letter-spacing: -0.04em;
}
.steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.faq { margin-top: 76px; max-width: 820px; }
.faq-title {
  font-size: 24px;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.faq summary::-webkit-details-marker { display: none; }
/* + 기호를 두 획으로 그리고, 열리면 세로획만 회전시켜 −로 만든다 */
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.faq details p {
  margin: 0;
  padding: 0 40px 24px 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  letter-spacing: -0.01em;
  animation: faqOpen .3s ease both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* 상담 CTA 아래 안심 문구 */
.contact-sub {
  margin: 22px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  letter-spacing: -0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .safety-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* 두 열로는 카피와 패널이 모두 좁아진다 — 세로로 쌓는다 */
  .g-card.toss { grid-template-columns: 1fr; gap: 28px; }
  .site-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .safety-grid { gap: 14px; margin-top: 44px; }
  .s-card { padding: 24px 22px; }
  .nfc-panel { padding: 32px 18px 26px; }
  .tag-panel { padding: 16px 16px 14px; }
  .photo-panel { padding: 24px 22px; }
  /* 3단계 흐름은 가로로 두면 글자가 눌린다 — 세로 스택 + 화살표 회전 */
  .toss-flow { flex-direction: column; gap: 0; margin-top: 20px; }
  .tf-arrow { width: 1px; height: 20px; margin-left: 28px; }
  .tf-arrow::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .toss-panel { padding: 20px 20px 18px; }
  .tp-sales b { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 44px; }
  .steps li { padding: 22px 22px 24px; }
  .faq { margin-top: 56px; }
  .faq summary { font-size: 15px; padding: 20px 34px 20px 0; }
  .faq details p { font-size: 13.5px; padding-right: 0; }
  /* 데스크톱 기준 줄바꿈은 좁은 화면에서 해제 */
  .safety-lede br, .s-card > p br, .onboard-lede br, .site-lede br { display: none; }
  .site-grid { margin-top: 44px; }
  .br-body { padding: 14px; }
  .br-hero { padding: 22px 18px 20px; }
  .br-hero h4 { font-size: 17px; }
  /* 요금 카드 3열은 390px 에서 글자가 줄바꿈된다 — 세로로 편다 */
  .br-cards { grid-template-columns: 1fr; }
  .br-card { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .br-card b { margin-top: 0; }
  .th-swatches i { width: 34px; height: 34px; }
}
