/* 셀리브 소개 화면 공통 (홈페이지·요금·가이드·자주 묻는 질문·문의·약관)
   토큰은 sellive.css 에 있다. 기준서: .claude/skills/sellive-design/SKILL.md */

.site { background: var(--paper); color: var(--ink); }
.site a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ── 머리말 ─────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.wordmark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-3px); }
.site-nav { display: none; gap: 4px; margin-left: 8px; }
.site-nav a { padding: 8px 12px; border-radius: var(--r-control); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--canvas); }
.site-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-head .login { display: none; padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
@media (min-width: 900px) { .site-nav, .site-head .login { display: flex; } .menu-btn { display: none; } }
.menu-btn { position: relative; }
.menu-btn summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-control); font-weight: 600; padding: 0 12px; }
.menu-btn summary::-webkit-details-marker { display: none; }
.menu-btn[open] .menu-panel { display: block; }
.menu-panel { display: none; position: absolute; right: 0; top: 52px; width: min(280px, 90vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-float); padding: 8px; }
.menu-panel a { display: block; padding: 12px; border-radius: var(--r-control); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--canvas); }

/* ── 버튼 ──────────────────────────────── */
.btn-a, .btn-b { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-control); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; word-break: keep-all; }
.btn-a { background: var(--accent); color: #fff !important; }
.btn-a:hover { background: var(--accent-strong); }
.btn-b { background: var(--paper); color: var(--ink) !important; border: 1px solid var(--line-strong); }
.btn-b:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
/* (점검수정-M7) 이 파일은 tailwind.css 다음에 불러와서 위 display 가 .hidden{display:none} 을 이긴다.
   숨김 표시(.hidden·hidden 속성)가 붙은 버튼은 숨긴다. 전역 .hidden !important 는 "hidden md:table-cell" 같은 반응형 조합을 깨므로 쓰지 않는다. */
.btn-a.hidden, .btn-b.hidden, .btn-a[hidden], .btn-b[hidden] { display: none; }

/* ── 글 ────────────────────────────────── */
.lead { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 36em; word-break: keep-all; }
.h-xl { font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 6.4vw, 68px); line-height: 1.14; letter-spacing: -0.025em; word-break: keep-all; }
.h-l { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.22; letter-spacing: -0.02em; word-break: keep-all; }
.h-m { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.35; word-break: keep-all; }
.muted { color: var(--muted); }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.prose h2 { font-family: var(--font-head); font-size: 26px; margin: 56px 0 16px; color: var(--ink); }
.prose h3 { font-family: var(--font-head); font-size: 19px; margin: 32px 0 8px; color: var(--ink); }
/* (실시간주문창 8) 가이드 구간 안 소제목(예: 킵 골라서 출고하기) — 목차 링크로 바로 갈 수 있게 */
.prose h4 { font-family: var(--font-head); font-size: 17px; font-weight: 700; margin: 24px 0 8px; color: var(--ink); scroll-margin-top: 88px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 8px 0 16px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); }
.ui { font-weight: 600; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; font-size: .94em; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 var(--r-control) var(--r-control) 0; color: var(--ink-2); }

/* ── 구간 ──────────────────────────────── */
.sec { padding: 72px 0; }
@media (min-width: 900px) { .sec { padding: 112px 0; } }
.sec-gray { background: var(--canvas); }
.rule { border-top: 1px solid var(--line); }

/* ── 바닥글 ─────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.site-foot .cols { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-foot .cols { grid-template-columns: 1fr 2fr; } }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-foot address { font-style: normal; line-height: 1.8; margin-top: 16px; }

/* ── 표(요금·비교) ───────────────────────── */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: transparent; }
.table th { font-size: 14px; color: var(--muted); font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }

/* ── 접어 펼치기(FAQ) ─────────────────────── */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; line-height: 1.5; word-break: keep-all; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s; }
.qa[open] summary::after { transform: rotate(225deg); top: 32px; }
.qa .a { padding: 0 0 24px; color: var(--ink-2); line-height: 1.75; font-size: 16px; max-width: 46em; word-break: keep-all; }
.qa .a p + p { margin-top: 8px; }

/* ── 소개 화면 배치 ─────────────────────── */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 4fr 7fr; gap: 72px; } }
.closing-row { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .closing-row { grid-template-columns: 1fr auto; } }
.price-table { margin-top: 48px; max-width: 760px; border-top: 2px solid var(--ink); }
.price-table td { font-size: 17px; }
.table-scroll { overflow-x: auto; margin: 12px 0 8px; }
.table-scroll .table td, .table-scroll .table th { font-size: 15px; }
.formula { font-weight: 700; color: var(--ink) !important; background: var(--canvas); border-radius: var(--r-control); padding: 12px 16px; }
.refund h3:first-of-type { margin-top: 24px; }

/* 순서가 있는 흐름 */
.flow { counter-reset: f; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f); grid-row: span 2; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--accent); line-height: 1.2; }
.flow b { font-size: 18px; }
.flow span { color: var(--ink-2); line-height: 1.7; word-break: keep-all; }

/* 포함 항목 */
.ticks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); line-height: 1.6; word-break: keep-all; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* 가이드 */
.g-tabs { display: flex; gap: 8px; margin: 32px 0 8px; }
.g-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.g-tabs a:hover { border-color: var(--ink); }
.g-layout { display: grid; gap: 32px; margin-top: 32px; }
@media (min-width: 1024px) { .g-layout { grid-template-columns: 240px 1fr; gap: 64px; } }
.g-toc { display: none; }
@media (min-width: 1024px) { .g-toc { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; } }
.g-toc-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 6px; }
.g-toc ol { display: grid; gap: 2px; }
.g-toc a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.g-toc a:hover { background: var(--canvas); color: var(--ink); }
.g-part { scroll-margin-top: 88px; margin-top: 0 !important; padding-top: 8px; border-top: 2px solid var(--ink); }
.g-main .g-part ~ .g-part { margin-top: 80px !important; }
.g-step { scroll-margin-top: 88px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.g-step .h-m { margin-bottom: 12px; }
.g-step .note { margin-top: 12px; }

/* 자주 묻는 질문 */
.faq-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 3fr 8fr; gap: 72px; } }
.faq-grid h2 { scroll-margin-top: 88px; }
.qa .a a { color: var(--accent); font-weight: 600; }

/* 문의 */
.contact-dl { display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; margin-top: 32px; font-size: 17px; }
.contact-dl dt { color: var(--muted); }
.contact-dl a { font-weight: 600; }
.form-stack { display: grid; gap: 18px; margin-top: 20px; }
.form-stack label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; max-width: none; }
.price-table .table th, .price-table .table td, .table-scroll .table th, .table-scroll .table td { white-space: nowrap; }
@media (max-width: 480px) { .price-table .table th, .price-table .table td { padding: 12px 6px; font-size: 15px; } }
.price-table { overflow-x: auto; }
.price-table .table th { white-space: normal; word-break: keep-all; }
.two-col > *, .faq-grid > *, .g-layout > * { min-width: 0; }
@media (max-width: 480px) { .table-scroll .table th, .table-scroll .table td { padding: 10px 6px; font-size: 14px; } }
/* 약관·개인정보: 왼쪽 정렬 본문 */
.site .terms-content { text-align: left; }
.site main header.text-center { text-align: left; max-width: 760px; margin-left: auto; margin-right: auto; }
.site .terms-content p, .site .terms-content li { font-size: 16px !important; line-height: 1.8 !important; }
/* 로그인·가입 화면 하단 운영사 정보 (tools/site/apply_company.py) */
.company-line { font-size: 13px; line-height: 1.7; color: var(--muted); text-align: center; margin-top: 28px; word-break: keep-all; }
/* (홈가이드 C) 가이드 화면 캡처 — 1px 선, 카드 모서리 12px, 그림자 없음. 이미지는 지연 로딩·크기 지정(자리 고정) */
.g-shot { margin: 16px 0 8px; }
.g-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.g-shot-m { max-width: 640px; }
.g-shot-s { max-width: 400px; }
.g-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.g-shots { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.g-shots .g-shot { flex: 1 1 260px; margin: 16px 0 8px; }
.g-step h4 { scroll-margin-top: 88px; margin-top: 24px; font-weight: 700; }
/* (홈가이드 후속 3) 요금 안내 환불 예시 표 — 휴대폰에서는 줄마다 카드처럼 쌓아 오른쪽이 잘리지 않게(머리글은 각 칸의 data-label 로) */
@media (max-width: 600px) {
    .refund-table thead { display: none; }
    .refund-table, .refund-table tbody, .refund-table tr, .refund-table td { display: block; width: 100%; }
    .refund-table tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin-bottom: 12px; background: var(--paper); }
    .refund-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
    .refund-table td::before { content: attr(data-label); color: var(--muted); font-size: 14px; text-align: left; font-weight: 400; }
    .refund-table td:first-child { font-weight: 700; }
}

/* (홈SEO-3) 자주 묻는 질문 첫머리 — 셀리브는 무엇인가 */
.faq-def { margin-top: 20px; max-width: 46em; }
.nowrap { white-space: nowrap; }
