/* ============================================================================
   SEO 원고 페이지 (2026-10-12 · WorkmateAI리뉴얼.docx)
   /ai-assistant/ · /solutions/… · /ai-teams/ · /ai-guide/… · /pricing/ · /faq/ · /contact/
   마크업은 partials/page.php 한 벌입니다.
   ----------------------------------------------------------------------------
   ★ 새 색·새 글꼴을 만들지 않습니다. css/style.css 의 토큰(--n1 --n2 --line --ink-2 --r …)과
     부품(.btn .eyebrow .apply__card .field)을 그대로 씁니다.
   ★ 17px 이하 글자는 font-weight 500 까지(이 저장소 규칙). 굵게 보이고 싶으면 색으로.
   ============================================================================ */

/* ── 머리 ─────────────────────────────────────────────────────────────── */
.pg-hero {
  position: relative; overflow: hidden;
  padding: clamp(118px, 13vw, 168px) 0 clamp(46px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}
.pg-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 70% at 8% 0%, rgba(124, 92, 255, .20), transparent 64%),
    radial-gradient(40% 60% at 96% 18%, rgba(34, 211, 238, .12), transparent 66%),
    radial-gradient(36% 50% at 70% 110%, rgba(244, 114, 182, .10), transparent 66%);
}
.pg-hero__inner { position: relative; z-index: 1; max-width: 1080px; }   /* 본문 칸(.pg-wrap)과 왼쪽 줄을 맞춥니다 */
.pg-hero__inner > * { max-width: 900px; }

.pg-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; color: var(--ink-3); }
.pg-crumb li { display: inline-flex; align-items: center; }
.pg-crumb li + li::before {
  content: ''; width: 5px; height: 5px; margin: 0 10px;
  border-top: 1.4px solid var(--ink-4); border-right: 1.4px solid var(--ink-4); rotate: 45deg;
}
.pg-crumb a { color: var(--ink-3); transition: color .2s; }
.pg-crumb a:hover { color: var(--ink); }
.pg-crumb [aria-current] { color: var(--ink-2); }

.pg-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--n2);
}
.pg-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--n2); box-shadow: 0 0 12px var(--n2); }

.pg-h1 {
  margin-top: 14px;
  font-size: clamp(29px, 4.4vw, 54px); font-weight: 800; line-height: 1.22; letter-spacing: -.045em;
}
.pg-lead {
  margin-top: 22px;
  font-size: clamp(16px, 1.55vw, 19px); font-weight: 400; color: var(--ink-2); line-height: 1.8;
}
.pg-lead b { color: var(--ink); font-weight: 500; }
.pg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pg-jump a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 400; color: var(--ink-2);
  transition: border-color .25s, color .25s, background-color .25s;
}
.pg-jump a:hover { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .10); color: var(--ink); }

/* ── 본문 ─────────────────────────────────────────────────────────────── */
.pg-body { padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 10vw, 130px); }
.pg-wrap { max-width: 1080px; }
.pg-wrap > * { max-width: 860px; }
.pg-wrap > .pg-sec--wide, .pg-wrap > .pg-cta, .pg-wrap > .pg-related { max-width: none; }

.pg-toc {
  margin-bottom: 8px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card);
}
.pg-toc__t { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); }
.pg-toc ol { margin-top: 10px; display: grid; gap: 4px; counter-reset: toc; }
.pg-toc li { counter-increment: toc; }
.pg-toc a {
  display: inline-flex; gap: 10px; padding: 3px 0;
  font-size: 15px; color: var(--ink-2); transition: color .2s;
}
.pg-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--n2); font-variant-numeric: tabular-nums; }
.pg-toc a:hover { color: var(--ink); }

.pg-sec { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.pg-h2 {
  font-size: clamp(23px, 2.7vw, 33px); font-weight: 800; line-height: 1.32; letter-spacing: -.04em;
}
.pg-h2::before {
  content: ''; display: block; width: 34px; height: 3px; margin-bottom: 18px;
  border-radius: 3px; background: var(--grad-3);
}
.pg-text { margin-top: 18px; display: grid; gap: 14px; }
.pg-text p { font-size: 16.5px; font-weight: 400; color: var(--ink-2); line-height: 1.88; }
.pg-text b, .pg-item b, .pg-steps b { color: var(--ink); font-weight: 500; }
.pg-text a, .pg-item a, .pg-note a { color: var(--n2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* 단계 */
.pg-steps { margin-top: 22px; display: grid; gap: 10px; counter-reset: none; }
.pg-steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card);
}
.pg-steps__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--n2); font-variant-numeric: tabular-nums;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22);
}
.pg-steps__t { align-self: center; font-size: 16px; font-weight: 400; color: var(--ink-2); line-height: 1.75; }

/* 소제목 묶음 (H3) */
.pg-items { margin-top: 22px; display: grid; gap: 12px; }
.pg-items--grid { grid-template-columns: 1fr 1fr; }
.pg-item {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card); scroll-margin-top: 96px;
  transition: border-color .3s, background-color .3s;
}
.pg-item:target { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.pg-item h3 { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.pg-item p { margin-top: 8px; font-size: 15.5px; font-weight: 400; color: var(--ink-2); line-height: 1.8; }

/* 카드 (허브 페이지 → 상세 페이지) */
.pg-cards { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.pg-card:hover { border-color: var(--line-2); background: var(--bg-card-2); transform: translateY(-3px); }
.pg-card__ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--n2);
}
.pg-card__ico svg { width: 21px; height: 21px; }
.pg-card__t { font-size: 18px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.pg-card__d { font-size: 14.5px; font-weight: 400; color: var(--ink-3); line-height: 1.7; }
.pg-card__go {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--n2);
}
.pg-card__go svg, .pg-more svg, .pg-related svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.pg-card:hover .pg-card__go svg { transform: translateX(3px); }

.pg-note { margin-top: 16px; font-size: 14px; font-weight: 400; color: var(--ink-3); line-height: 1.75; }

.pg-more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.pg-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: border-color .25s, background-color .25s;
}
.pg-more a svg { color: var(--n2); }
.pg-more a:hover { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .10); }
.pg-more a:hover svg { transform: translateX(3px); }

/* 자주 묻는 질문 — <details> 라 JS 없이 열고 닫힙니다 */
.pg-faq__list { margin-top: 20px; border-top: 1px solid var(--line); }
.pg-faq__item { border-bottom: 1px solid var(--line); }
.pg-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 2px; cursor: pointer; list-style: none;
}
.pg-faq__item summary::-webkit-details-marker { display: none; }
.pg-faq__q { font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.5; transition: color .25s; }
.pg-faq__item summary:hover .pg-faq__q, .pg-faq__item[open] .pg-faq__q { color: var(--n2); }
.pg-faq__sign { position: relative; flex: none; width: 16px; height: 16px; }
.pg-faq__sign::before, .pg-faq__sign::after {
  content: ''; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: currentColor; border-radius: 2px; transition: rotate .35s var(--ease), opacity .25s;
}
.pg-faq__sign::before { width: 14px; height: 2px; }
.pg-faq__sign::after  { width: 2px; height: 14px; }
.pg-faq__item[open] .pg-faq__sign::after { rotate: 90deg; opacity: 0; }
.pg-faq__a { padding: 0 2px 22px; }
.pg-faq__a p { font-size: 15.5px; font-weight: 400; color: var(--ink-2); line-height: 1.85; }
.pg-faq__a a { color: var(--n2); }

/* 마지막 상담 안내 */
.pg-cta { margin-top: clamp(56px, 7vw, 90px); }
.pg-cta__card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 48px);
  border-radius: 26px; border: 1px solid transparent;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad-3) border-box;
}
.pg-cta__t { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.04em; line-height: 1.4; }
.pg-cta__d { margin-top: 8px; font-size: 16px; font-weight: 400; color: var(--ink-2); }
.pg-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* 함께 보면 좋은 페이지 */
.pg-related { margin-top: 40px; }
.pg-related__t { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); }
.pg-related ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-related a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 400; color: var(--ink-2);
  transition: border-color .25s, color .25s;
}
.pg-related a:hover { border-color: var(--line-2); color: var(--ink); }
.pg-related a:hover svg { transform: translateX(3px); }

/* ── 요금 카드 (/pricing/) ───────────────────────────────────────────── */
.pg-price {
  margin-top: 24px; padding: clamp(26px, 3.4vw, 38px);
  border-radius: 24px; border: 1px solid transparent;
  background: linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box, var(--grad-3) border-box;
  box-shadow: 0 40px 90px -56px rgba(124, 92, 255, .9);
}
.pg-price__badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #05060a; background: var(--grad);
}
.pg-price__name { margin-top: 16px; font-size: 20px; font-weight: 700; }
.pg-price__num {
  margin-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: clamp(40px, 5.4vw, 58px); font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.pg-price__num i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-price__num span { font-size: 17px; font-weight: 500; color: var(--ink-3); letter-spacing: -.02em; }
.pg-price__sub { margin-top: 6px; font-size: 14.5px; font-weight: 400; color: var(--ink-3); }
.pg-price__sub b { color: var(--ink); font-weight: 500; }
.pg-price .ticks li { font-size: 15px; }
.pg-price__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* 표 (기능별 한도) */
.pg-table { margin-top: 22px; overflow-x: auto; }
.pg-table table { width: 100%; min-width: 520px; border-collapse: collapse; }
.pg-table th, .pg-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
  font-size: 15px; font-weight: 400; color: var(--ink-2); line-height: 1.65;
}
.pg-table th { color: var(--ink); font-weight: 500; background: rgba(255, 255, 255, .03); }
.pg-table td:first-child { color: var(--ink); white-space: nowrap; }

/* ── 상담 신청 폼 (/contact/) ─────────────────────────────────────────── */
/* .apply__card 는 모달용이라 스스로 스크롤합니다. 페이지에 박으면 잘리므로 풀어 줍니다
   (.lpform__card 와 같은 이유·같은 해법) */
.pg-form .apply__card { max-height: none; overflow: visible; overscroll-behavior: auto; touch-action: auto; margin-top: 24px; }
.pg-form .apply__grid { margin-top: 0; }
.pg-need { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.pg-need legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pg-need legend em { font-style: normal; color: var(--ink-4); font-weight: 400; }
.pg-need__list { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-need__list label {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 400; color: var(--ink-2); cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
}
.pg-need__list label:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.pg-need__list input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--n1); }
.pg-need__list label:has(input:checked) { border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .10); color: var(--ink); }

/* ── 화면 크기별 ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pg-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pg-items--grid { grid-template-columns: 1fr; }
  .pg-cards { grid-template-columns: 1fr; }
  .pg-need__list { grid-template-columns: 1fr 1fr; }
  .pg-btns .btn, .pg-cta__btns .btn, .pg-price__btns .btn { width: 100%; }
  .pg-steps li { grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; }
  .pg-steps__n { width: 38px; height: 38px; font-size: 14px; }
  .pg-faq__q { font-size: 18px; }
}
/* 한도표 — 좁은 화면에서는 가로로 밀어야 보이는 표가 아니라 줄마다 쌓습니다(2026-10-12 실측: 480px 이하에서
   「100MB」 가 「100ME」 로 잘려 보였고 밀 수 있다는 표시도 없었음) */
@media (max-width: 600px) {
  .pg-table table { min-width: 0; }
  .pg-table thead { display: none; }
  .pg-table tr, .pg-table td { display: block; }
  .pg-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pg-table td { padding: 0; border: 0; }
  .pg-table td:first-child { margin-bottom: 4px; font-weight: 500; white-space: normal; }
}
/* 상담 폼 칸 아래 오류 한 줄(/contact/ — js/apply.js 의 data-inline-err) */
.field__err { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 400; color: var(--warn); }
.apply__agree .field__err { margin-left: 0; }
@media (max-width: 420px) {
  .pg-text p { font-size: 16px; }
}
@media (max-width: 340px) {
  .pg-need__list { grid-template-columns: 1fr; }
}
