/* =========================================================
   B.able 서브 페이지 (서비스 안내 · 블로그) 공통
   style.css 다음에 불러옴
   ========================================================= */

/* ---------- 상단 제목 영역 (어두운 배경, 헤더가 그 위에 투명하게 얹힘) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: radial-gradient(120% 120% at 85% 0%, #1d2029 0%, var(--dark) 60%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 90% at 70% 20%, #000 20%, transparent 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 460px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,138,76,.55), rgba(232,72,63,.25) 45%, transparent 70%); filter: blur(10px);
}
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #9aa0ab; margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: -1.6px; max-width: 820px; }
.page-hero .lead { margin-top: 20px; font-size: 18.5px; color: #c4c8d0; max-width: 720px; }
.page-hero .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .meta { margin-top: 18px; font-size: 14px; color: #8b909b; }

/* ---------- 본문 ---------- */
.page-body { padding: 88px 0 40px; }
.page-body .container { max-width: 880px; }
.prose { font-size: 17.5px; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 3vw, 30px); line-height: 1.35; font-weight: 800; color: var(--ink); letter-spacing: -.8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 20px; font-weight: 800; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 800; display: grid; place-items: center;
}
.prose figure { margin: 32px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.prose code { font-family: Consolas, "D2Coding", monospace; font-size: .9em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* 강조 박스 */
.note {
  margin: 32px 0; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
}
.note b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.note.dark { background: var(--dark); border-color: var(--dark); color: #c4c8d0; }
.note.dark b { color: #fff; }

/* 특징 카드 3~4칸 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.feature {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.feature b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.feature span { font-size: 15.5px; color: var(--muted); }

/* 가격표 */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.price-table th, .price-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 14px; color: var(--muted); font-weight: 700; border-bottom-width: 2px; }
.price-table td:last-child { white-space: nowrap; font-weight: 800; color: var(--ink); }
.price-note { font-size: 14px; color: var(--muted); }

/* 관련 작업 */
.related-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.related-works a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.related-works img { aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
.related-works span { display: block; padding: 12px 14px; font-size: 15px; }

/* 다른 서비스 바로가기 */
.more-links { padding: 40px 0 120px; }
.more-links .container { max-width: 880px; }
.more-links h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link-cards a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff;
  font-weight: 700; transition: border-color .2s ease, transform .2s ease;
}
.link-cards a:hover { border-color: var(--brand); transform: translateY(-2px); }
.link-cards small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 2px; }
.link-cards .arr { color: var(--brand); font-size: 20px; }

/* 블로그 목록 */
.post-list { display: grid; gap: 16px; }
.post-item {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s ease, transform .2s ease;
}
.post-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prose .post-item { text-decoration: none; color: inherit; font-weight: inherit; }
.prose .post-item h2 { margin-top: 6px; }
.prose .related-works a, .prose .link-cards a { text-decoration: none; }
.post-item img { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
.post-item .tag { font-size: 13px; font-weight: 800; color: var(--brand); }
.post-item h2 { font-size: 21px; font-weight: 800; margin: 6px 0 8px; line-height: 1.4; }
.post-item p { color: var(--muted); font-size: 15.5px; }
.post-item time { display: block; margin-top: 10px; font-size: 13.5px; color: #9aa0ab; }

/* 작업 사례 */
.page-body .container:has(.pf-grid) { max-width: 1180px; }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pf-filter button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-2); transition: all .2s ease;
}
.pf-filter button:hover { border-color: var(--ink); }
.pf-filter button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prose .pf-grid { margin-top: 0; }
.prose .pf-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; color: inherit; font-weight: inherit; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease;
}
.prose .pf-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pf-card[hidden] { display: none !important; }
.pf-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pf-card .b { display: block; padding: 16px 18px 18px; }
.pf-card .t { display: block; font-size: 13px; font-weight: 800; color: var(--brand); }
.pf-card b { display: block; margin-top: 6px; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.pf-card .c { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.pf-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-info div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.pf-info dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.pf-info dd { margin: 4px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.pf-kw { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-kw span { padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 700; }
.pf-shots { display: grid; gap: 20px; }
.pf-shots figure { margin: 0; }
.pf-shots img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* 하단 상담 띠 */
.sub-cta { padding: 0 0 120px; }
.sub-cta .cta-box { margin-top: 0; }

@media (max-width: 860px) {
  .page-hero { padding: calc(var(--header-h) + 44px) 0 52px; }
  .page-hero .lead { font-size: 16.5px; }
  .page-body { padding: 56px 0 24px; }
  .prose { font-size: 16.5px; }
  .feature-grid, .link-cards { grid-template-columns: 1fr; }
  .related-works { grid-template-columns: 1fr 1fr; }
  .post-item { grid-template-columns: 1fr; gap: 14px; }
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pf-card .b { padding: 12px 14px 14px; }
  .pf-card b { font-size: 15px; }
  .pf-info { grid-template-columns: 1fr; }
  .price-table { font-size: 15px; }
  .price-table th, .price-table td { padding: 12px 8px; }
  .more-links, .sub-cta { padding-bottom: 80px; }
}
