/* 디자인 기준: 네이버 레퍼런스 디자인 시스템 (포털·검색 표면)
   - 흰 캔버스, System 우선 한글 서체, 4/8/12/16/20 간격, 짙은 무채색 텍스트
   - 그린 #03C75A는 정체성 표시에만 (글자색으로 쓰지 않음 — 흰 바탕 대비 부족)
   - 카카오톡 버튼은 목적지(카카오) 색을 유지 */
:root {
  --canvas: #FFFFFF;
  --ink: #1C1C1C;          /* Search Ink */
  --ink-2: #2E2E2E;        /* Portal Ink */
  --muted: #595959;        /* 보조 문장 (탭 hover 색) */
  --muted-2: #8C8C8C;      /* 비활성 라벨 */
  --line: #E5E5E5;         /* Hairline */
  --green: #03C75A;        /* 정체성 */
  --link: #0C43B7;         /* Search Link */
  --tag: #406CDC;
  --tag-line: #E0ECFF;
  --kakao: #FEE500;
  --kakao-ink: #191600;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -0.3px;
  word-break: keep-all;
  overflow-x: hidden;
  padding-bottom: 84px; /* 하단 고정 버튼 자리 */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* 헤더 */
.top { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.4px; text-decoration: none; color: var(--ink); }
.brand::before { content: ""; width: 4px; height: 16px; background: var(--green); }
.brand span { font-weight: 500; color: var(--muted); }
.top-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9999px; background: var(--kakao); color: var(--kakao-ink); font-size: 14px; font-weight: 700; text-decoration: none; }

/* 타이포 */
.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(26px, 6.6vw, 36px); line-height: 1.33; letter-spacing: -0.8px; }
.h1-kicker { letter-spacing: -0.3px; line-height: 1.6; } /* h1 안의 검색어 줄 — 모양은 eyebrow와 같게 */
h2 { font-size: clamp(21px, 5vw, 26px); line-height: 1.38; letter-spacing: -0.6px; margin-bottom: 8px; }
h3 { font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.16px; margin-bottom: 8px; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; max-width: 560px; }
.lead { color: var(--muted); font-size: 16px; margin: 12px 0 20px; }

/* 버튼 — 상태 변화는 즉시 (transition 없음) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border-radius: 9999px; font-size: 16px; font-weight: 700; letter-spacing: -0.4px; text-decoration: none; }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover, .btn-kakao:active { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .06); }
.btn-line { background: var(--canvas); color: var(--ink-2); border: 1px solid rgba(0, 0, 0, .15); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.btn-line:hover, .btn-line:active { background: rgba(0, 0, 0, .06); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }

/* 1. 첫 화면 */
.hero { padding: 24px 0 40px; }
.hero-grid { display: grid; gap: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-actions .btn { flex: 1 1 180px; }
.hero-video .card { width: 100%; }
.hero-video .cap-title { display: none; }

/* 섹션 — 배경색 대신 헤어라인으로 구분 */
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section-tint { }

/* 식순 탭 (콘텐츠 탭) */
.tabs { display: flex; gap: 20px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 0 2px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 800 16px var(--sans); letter-spacing: -0.4px; color: rgba(0, 0, 0, .5); cursor: pointer; }
.tab:hover { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .5); text-underline-offset: 4px; }
.tab[aria-selected="true"] { color: #000; border-bottom-color: var(--ink); text-decoration: none; }

/* 영상 카드 (결과 카드: 12px) */
.clips { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: thin; }
.card { margin: 0; flex: none; width: min(80vw, 300px); scroll-snap-align: start; }
.card-short { width: min(48vw, 200px); }
.clips-wide .card { width: min(86vw, 480px); } /* 가로 영상은 크게 */
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.frame.is-short { aspect-ratio: 9 / 16; }
.frame.is-ig { aspect-ratio: 9 / 21; background: var(--canvas); border: 1px solid var(--line); } /* 재생 중인 인스타 임베드: 계정·캡션 줄만큼 더 길게 */
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.play img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.play:hover .play-icon { background: rgba(0, 0, 0, .75); }
.play-icon::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #fff; }
.cap { padding: 8px 2px 0; }
.cap-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.cap-link { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--link); text-decoration: none; }
.cap-link:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 7px; margin-bottom: 6px; border: 1px solid var(--tag-line); border-radius: 13px; font-size: 12.6px; font-weight: 800; letter-spacing: -0.4px; color: var(--tag); }

/* 후기 */
.reviews { display: grid; gap: 12px; margin-top: 16px; }
.review { margin: 0; padding: 20px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.review p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.review footer { font-size: 13px; font-weight: 600; color: var(--muted); }
.review footer a { font-weight: 400; color: var(--link); text-decoration: none; white-space: nowrap; }
.review footer a:hover { text-decoration: underline; }
.review-more { display: flex; width: 100%; max-width: 360px; margin: 16px auto 0; cursor: pointer; font-family: var(--sans); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted-2); }
.note a { color: var(--link); text-decoration: none; }
.note a:hover { text-decoration: underline; }

/* 소개 */
.about-grid { display: grid; gap: 20px; }
.about-grid p { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }

/* 진행 안내 */
.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; font-size: 16px; font-weight: 800; color: var(--ink); }
.steps strong { font-size: 16px; font-weight: 700; }
.steps span { font-size: 14px; color: var(--muted); }
.price { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.price p { margin: 0; font-size: 15px; color: var(--ink-2); }
.faq { margin-top: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 48px; padding: 12px 28px 12px 0; position: relative; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 마무리 문의 */
.closing { padding: 40px 0 48px; border-top: 1px solid var(--line); text-align: center; }
.closing p { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.closing-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.closing-actions .btn { width: 100%; max-width: 360px; }
.btn-ghost { background: var(--canvas); color: var(--ink-2); border: 1px solid rgba(0, 0, 0, .15); }
.btn-ghost:hover, .btn-ghost:active { background: rgba(0, 0, 0, .06); }

.footer { padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); text-align: center; }
.footer p { margin: 4px 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer .team-link a { color: var(--link); }
.footer .team-link a:hover { text-decoration: underline; }

/* 어느 위치에서든 문의 */
.float-cta { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 9999px; background: var(--kakao); color: var(--kakao-ink); font-size: 16px; font-weight: 700; letter-spacing: -0.4px; text-decoration: none; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.float-cta:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .24), inset 0 0 0 999px rgba(0, 0, 0, .06); }
.float-cta svg { width: 20px; height: 20px; fill: currentColor; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 40px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .section, .closing { padding: 56px 0; }
  .tabs { margin: 0 0 20px; padding: 0; }
  .clips { margin: 0; padding: 0 0 12px; }
  .card { width: 320px; }
  .card-short { width: 200px; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .float-cta { left: auto; right: 20px; bottom: 20px; padding: 0 20px; }
}

/* 식순별 영상 제목 전체 목록 (접힌 상태) */
.clip-index { margin-top: 12px; font-size: 14px; color: var(--muted); }
.clip-index summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--link); }
.clip-index ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.7; }
