@charset "utf-8";

/* ==========================================================================
   꼬박(KKOBAK) 제품 소개 사이트
   근거: docs/꼬박_제품페이지_PRD_v0.4.md §8 공통 요구사항

   접근성 기준을 일반보다 올려 잡았다 — 주 사용자가 용역사 관리자와
   일용직 근로자라 연령대가 높고, 현장에서 밝은 조명 아래 본다.
     · 본문 최소 18px
     · 글자 대비 4.5:1 이상 (아래 색 토큰에 흰 배경 기준 대비를 적어 뒀다)
     · 아이콘만으로 뜻을 전달하지 않는다 — 항상 글자를 함께 둔다
     · 마우스오버로만 보이는 정보를 만들지 않는다
     · prefers-reduced-motion 대응
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 토큰
   브랜드 초록 #0E9F6E 는 앱·로고에서 뽑은 값이다
   (web_admin/src/theme.js 의 emerald 원래값과 같다).
   흰 배경 대비 3.43:1 이라 큰 글자·버튼 배경에만 쓰고,
   글자에는 한 단계 어두운 #0B7F58(5.14:1)을 쓴다.
   -------------------------------------------------------------------------- */
:root {
  --brand:        #0E9F6E;   /* 3.43:1  — 24px 이상 큰 글자·장식·버튼 배경 */
  --brand-strong: #0B7F58;   /* 5.14:1  — 본문 크기 강조 글자·기본 버튼 */
  --brand-deep:   #075E41;   /* 7.7:1   — 눌림·짙은 배경 */
  --brand-tint:   #E8F6EF;
  --brand-tint-2: #D2EFE0;

  --ink:      #0F172A;       /* 16.2:1 — 제목 */
  --text:     #334155;       /*  9.4:1 — 본문 */
  --text-sub: #475569;       /*  6.9:1 — 보조 설명 */
  --text-mute:#54627A;       /*  5.6:1 — 캡션. 이보다 옅게 내리지 않는다 */

  --line:   #E2E8F0;
  --line-2: #CBD5E1;
  --bg:     #FFFFFF;
  --bg-soft:#F6F9F8;
  --bg-ink: #0F172A;

  --amber:    #875811;       /* 5.9:1 — 지각 */
  --amber-bg: #FBEACB;
  --red:      #99281A;       /* 7.2:1 — 결원·위험 */
  --red-bg:   #FBE0DB;
  --blue:     #2F5E7D;       /* 6.1:1 — 조퇴 */
  --blue-bg:  #E2EEF5;

  --radius:   14px;
  --radius-lg:20px;
  --shadow:   0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg:0 2px 6px rgba(15, 23, 42, .07), 0 18px 48px rgba(15, 23, 42, .10);

  --wrap:  1120px;
  --gutter:24px;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* --------------------------------------------------------------------------
   2. 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;               /* PRD §8 — 본문 최소 18px */
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;          /* 한글은 어절 단위로 줄바꿈한다 */
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.32; margin: 0; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2.4vw, 25px); }
h4 { font-size: 19px; }
p  { margin: 0; }

a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* 키보드 사용자를 위한 초점 표시. 마우스 클릭에는 나오지 않는다. */
:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 12px 20px; background: var(--ink); color: #fff;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. 레이아웃
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(64px, 9vw, 116px) 0; }
section.soft { background: var(--bg-soft); }
section.ink  { background: var(--bg-ink); }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand-strong); background: var(--brand-tint);
  padding: 7px 14px; border-radius: 999px;
}
.ink .eyebrow { color: #8FE6C2; background: rgba(14, 159, 110, .18); }

.lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--text-sub); }
.ink h2, .ink h3 { color: #fff; }
.ink .lead, .ink p { color: #CBD5E1; }

.note {
  margin-top: 20px; font-size: 16px; color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   4. 버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1;
  border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--text-mute); }

.ink .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.ink .btn-ghost:hover { background: rgba(255,255,255,.10); color: #fff; border-color: #fff; }

.btn-lg { min-height: 62px; padding: 0 34px; font-size: 19px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 스토어 배지 — 링크가 확정되기 전까지 '준비 중'으로 둔다(PRD 오픈이슈 #3) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px;
  border: 2px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--text-sub);
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.store-badge .soon {
  font-size: 13px; font-weight: 800; color: var(--text-mute);
  background: var(--bg-soft); border-radius: 999px; padding: 3px 9px;
}

/* --------------------------------------------------------------------------
   5. 헤더 — 2단 (유틸리티 바 + 메인 GNB) + 제품 페이지용 서브 앵커바

   레퍼런스(shiftee.io/ko, 2026-08-30 확인)의 구조를 따랐다.
     · 로고에 회사명을 붙이지 않는다 — 제품명만
     · 우측 상단에 콘솔 로그인을 둔다. B2B SaaS 에서 기존 고객의 첫 동선이다
     · 회사 소개는 메인 GNB 가 아니라 유틸리티 바에 둔다
     · 우측 액션은 약→강 세 단계 (문의 → 로그인 → 주요 전환)
   유틸리티 바는 스크롤에 흘려보내고 메인만 붙인다. 셋 다 붙이면 화면을 너무 먹는다.
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.utility-bar .wrap {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  min-height: 38px;
}
.utility-bar a, .utility-bar span {
  padding: 6px 10px; border-radius: 6px;
  color: var(--text-sub); text-decoration: none; font-weight: 600;
}
.utility-bar a:hover { color: var(--ink); background: #fff; }
.utility-bar .soon-text { color: var(--text-mute); cursor: default; }
.utility-bar .soon-text::after {
  content: "준비 중"; margin-left: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-mute);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  /* 불투명으로 고정한다. 반투명 + backdrop-filter 로 두면 스크롤하면서 뒤 배경(히어로의
     초록 그라데이션 → 흰 본문 → 짙은 섹션)이 비쳐 머리띠 색과 로고가 계속 흔들린다. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* 메가메뉴가 헤더 바닥에 붙어 펼쳐지도록 기준을 잡는다 */
.site-header { position: sticky; }
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}

/* 로고 — 제품명만. 회사명은 유틸리티 바와 푸터에 둔다 */
.brand-link {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 26px; font-weight: 900; color: var(--ink);
  text-decoration: none; letter-spacing: -.03em; flex-shrink: 0;
}
.brand-link img { width: 44px; height: 44px; }

/* 주 메뉴와 액션을 모두 오른쪽에 모은다 */
.gnb { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.gnb a, .gnb .mega-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border: 0; border-radius: 9px; background: none;
  font-family: inherit; font-size: 17px; font-weight: 700; color: var(--text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.gnb a:hover, .gnb .mega-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.gnb a[aria-current="page"], .gnb .mega-toggle[aria-current="page"] { color: var(--brand-deep); }

/* 여닫힘을 삼각형으로만 알리지 않는다 — 버튼에 aria-expanded 가 함께 붙는다 */
.mega-toggle .caret {
  width: 0; height: 0; margin-top: 2px;
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .16s ease;
}
.mega-toggle[aria-expanded="true"] { background: var(--brand-tint); color: var(--brand-deep); }
.mega-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: 8px; margin-left: 14px; flex-shrink: 0; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* --------------------------------------------------------------------------
   맨 위에서는 초록 머리띠, 스크롤하면 흰 머리띠

   `at-top` 은 스크롤이 맨 위일 때만 <body> 에 붙는다(site.js).
   초록은 --brand(#0E9F6E)가 아니라 한 단계 짙은 --brand-strong(#0B7F58)을 쓴다.
   흰 글자 기준 대비가 #0E9F6E 는 3.43:1 로 본문 크기 글자에 미달이고,
   #0B7F58 은 5.14:1 이라 기준(4.5:1)을 넘긴다. 같은 에메랄드 계열이다.

   로고는 두 장을 겹쳐 두고 상태에 따라 보이는 쪽만 바꾼다 —
   src 를 자바스크립트로 갈아 끼우면 바뀌는 순간 한 번 깜빡인다.
   -------------------------------------------------------------------------- */
.at-top .utility-bar {
  background: var(--brand-deep);
  border-bottom-color: transparent;
}
.at-top .utility-bar a,
.at-top .utility-bar span { color: #CFF3E4; }
.at-top .utility-bar a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.at-top .utility-bar .soon-text::after {
  color: #CFF3E4; background: rgba(255, 255, 255, .14); border-color: transparent;
}

.at-top .site-header {
  background: var(--brand-strong);
  border-bottom-color: transparent;
}
.at-top .brand-link { color: #fff; }
.at-top .gnb a,
.at-top .gnb .mega-toggle { color: #EAFBF3; }
.at-top .gnb a:hover,
.at-top .gnb .mega-toggle:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.at-top .gnb a[aria-current="page"],
.at-top .gnb .mega-toggle[aria-current="page"] { color: #fff; }
.at-top .header-cta .btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55);
}
.at-top .header-cta .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.at-top .header-cta .btn-primary { background: #fff; color: var(--brand-deep); }
.at-top .header-cta .btn-primary:hover { background: #EAFBF3; color: var(--brand-deep); }

/* 로고 두 장 겹치기 */
.brand-link .mark { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.brand-link .mark img { position: absolute; inset: 0; width: 44px; height: 44px; }
.brand-link .mark .light { opacity: 0; }
.at-top .brand-link .mark .light { opacity: 1; }
.at-top .brand-link .mark .dark { opacity: 0; }

/* 색이 바뀌는 것만 부드럽게. 위치는 건드리지 않는다 */
.site-header, .utility-bar, .brand-link, .brand-link .mark img,
.gnb a, .gnb .mega-toggle, .header-cta .btn {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}

/* 메가메뉴가 열려 있으면 흰 머리띠로 돌린다 — 패널과 머리띠가 한 덩어리로 보여야 한다 */
.at-top.mega-open .utility-bar,
.at-top.mega-open .site-header { background: #fff; border-bottom-color: var(--line); }
.at-top.mega-open .utility-bar a,
.at-top.mega-open .utility-bar span { color: var(--text-sub); }
.at-top.mega-open .utility-bar .soon-text::after {
  color: var(--text-mute); background: #fff; border-color: var(--line);
}
.at-top.mega-open .brand-link { color: var(--ink); }
.at-top.mega-open .gnb a,
.at-top.mega-open .gnb .mega-toggle { color: var(--text); }
.at-top.mega-open .brand-link .mark .light { opacity: 0; }
.at-top.mega-open .brand-link .mark .dark { opacity: 1; }
.at-top.mega-open .header-cta .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.at-top.mega-open .header-cta .btn-primary { background: var(--brand-strong); color: #fff; }

/* --------------------------------------------------------------------------
   메가메뉴 — 헤더 아래로 펼쳐진다. 레퍼런스와 같은 3열 + 우측 패널.
   -------------------------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.mega[hidden] { display: none; }
.mega .wrap {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .78fr);
  gap: 0 28px; padding-top: 30px; padding-bottom: 34px; align-items: start;
}

.mega-col-head {
  display: block; margin-bottom: 14px; padding-bottom: 11px;
  border-bottom: 2px solid var(--line-2);
  font-size: 17px; font-weight: 900; color: var(--ink); text-decoration: none;
}
.mega-col-head span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--text-mute); }
.mega-col-head:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }

.mega ul { display: grid; gap: 2px; }
.mega li a {
  display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none;
}
.mega li a:hover { background: var(--brand-tint); }
.mega li a b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.mega li a span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }
.mega li a:hover b { color: var(--brand-deep); }

.mega-side {
  padding: 22px 20px 24px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.mega-side-head {
  margin-bottom: 12px; font-size: 13px; font-weight: 900;
  letter-spacing: .06em; color: var(--text-mute);
}
.mega-side li a:hover { background: #fff; }

/* 화면이 좁으면 열을 줄인다 */
@media (max-width: 1180px) {
  .gnb a, .gnb .mega-toggle { padding: 10px 10px; font-size: 15.5px; }
  .header-cta .btn { padding: 0 14px; font-size: 15px; }
  .site-header .wrap { gap: 10px; }
  .mega .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .mega-side { grid-column: 1 / -1; }
}

/* 서브 앵커바 — 제품 페이지에서만. 메인 헤더 아래에 붙는다 *//* 서브 앵커바 — 제품 페이지에서만. 메인 헤더 아래에 붙는다 */
.subnav {
  position: sticky; top: 68px; z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav .wrap {
  display: flex; align-items: center; gap: 2px;
  min-height: 50px; overflow-x: auto; scrollbar-width: none;
}
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  font-size: 16px; font-weight: 700; color: var(--text-sub); text-decoration: none;
}
.subnav a:hover { color: var(--ink); background: var(--bg-soft); }
.subnav a[aria-current="true"] { color: var(--brand-deep); background: var(--brand-tint); }
@media (max-width: 900px) {
  .subnav { top: 60px; }
  .subnav .wrap { min-height: 46px; padding-left: 16px; padding-right: 16px; }
  .subnav a { font-size: 15px; padding: 8px 11px; }
}

/* 앵커로 이동할 때 붙은 헤더(메인 68 + 서브바 50) 아래로 가리지 않게.
   섹션에만 건다 — 모든 [id] 에 걸면 폼 입력칸에 초점이 갈 때까지 밀린다. */
section[id], main[id] { scroll-margin-top: 126px; }
@media (max-width: 900px) { section[id], main[id] { scroll-margin-top: 112px; } }

/* 서브바가 없는 페이지(문의·약관)는 메인 헤더 높이만 비운다 */
body:not(:has(.subnav)) section[id],
body:not(:has(.subnav)) main[id] { scroll-margin-top: 84px; }

/* --------------------------------------------------------------------------
   6. S1 히어로
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(52px, 7vw, 96px) 0 clamp(60px, 8vw, 104px);
  background:
    radial-gradient(1100px 460px at 18% -10%, var(--brand-tint) 0%, rgba(232,246,239,0) 62%),
    var(--bg);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 30em; }

/* 히어로 하단 집계 라인 — 현장에서 쓰는 표기를 그대로 노출한다(PRD §3) */
.tally {
  margin-top: 30px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.tally-title { font-size: 14px; font-weight: 800; color: var(--text-mute); letter-spacing: .03em; margin-bottom: 10px; }
.tally-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 17px; font-weight: 700; }
.tally-row .k { color: var(--text-sub); font-weight: 700; }
.tally-row .v { color: var(--ink); font-weight: 900; }
.tally-row .sep { color: var(--line-2); }
.chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: 16px; font-weight: 800;
}
.chip-over  { background: var(--brand-tint-2); color: var(--brand-deep); }
.chip-late  { background: var(--amber-bg);     color: var(--amber); }
.chip-early { background: var(--blue-bg);      color: var(--blue); }
.chip-short { background: var(--red-bg);       color: var(--red); }

.hero-cta { margin-top: 30px; }
.hero-shot { position: relative; justify-self: center; }
.hero-shot img {
  width: min(320px, 78vw); border-radius: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .hero-shot img { width: min(258px, 64vw); }
}

/* --------------------------------------------------------------------------
   7. 공통 카드 / 그리드
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  padding: 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-sub); font-size: 17px; }
.card .tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 14px; font-weight: 800; color: var(--text-mute);
  letter-spacing: .03em;
}

/* S2 문제 제기 — 현장에서 실제로 나오는 말을 그대로 인용한다 */
.problem-quote {
  font-size: 21px; font-weight: 800; color: var(--ink);
  margin-bottom: 12px; line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. S3 작동 원리 — 플로우
   -------------------------------------------------------------------------- */
.flow { display: grid; gap: 16px; counter-reset: step; }
.flow-step {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px; align-items: start;
  padding: 26px 28px; background: #fff;
  border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius);
}
.flow-who {
  font-size: 18px; font-weight: 900; color: var(--brand-deep);
  background: var(--brand-tint); border-radius: 9px;
  padding: 8px 0; text-align: center;
}
.flow-body h3 { font-size: 20px; margin-bottom: 6px; }
.flow-body p { color: var(--text-sub); font-size: 17px; }
.flow-body .sub {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 16px; color: var(--text-mute);
}
@media (max-width: 700px) {
  .flow-step { grid-template-columns: 1fr; gap: 14px; }
  .flow-who { justify-self: start; padding: 7px 18px; }
}

/* 용어 표 */
.term-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.term-table caption { text-align: left; font-weight: 800; color: var(--ink); font-size: 19px; padding-bottom: 12px; }
.term-table th, .term-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.term-table th { width: 148px; color: var(--ink); font-weight: 800; white-space: nowrap; }
.term-table td { color: var(--text-sub); }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   9. S4 다음 날 지급
   -------------------------------------------------------------------------- */
.payday { background: var(--bg-ink); }
.payday .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .payday .wrap { grid-template-columns: 1fr; } }

.payline { margin-top: 34px; display: grid; gap: 12px; }
.payline-row {
  display: grid; grid-template-columns: 128px 40px minmax(0, 1fr);
  align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.payline-row .from { font-size: 17px; font-weight: 800; color: #fff; }
.payline-row .arrow { color: #8FE6C2; font-weight: 900; text-align: center; font-size: 19px; }
.payline-row .to { font-size: 17px; font-weight: 800; color: #8FE6C2; }
.payline-row .to small { display: block; font-size: 15px; font-weight: 600; color: #94A3B8; margin-top: 2px; }
@media (max-width: 560px) {
  .payline-row { grid-template-columns: 1fr; gap: 4px; }
  .payline-row .arrow { display: none; }
}

.payday-shot img {
  width: min(300px, 74vw); margin: 0 auto; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow-lg);
}

.appeal { margin-top: 34px; display: grid; gap: 14px; }
.appeal li {
  padding: 18px 22px; border-radius: 12px;
  background: rgba(14, 159, 110, .16); border: 1px solid rgba(143, 230, 194, .3);
}
.appeal .who { display: block; font-size: 14px; font-weight: 800; color: #8FE6C2; letter-spacing: .04em; margin-bottom: 4px; }
.appeal .what { font-size: 18px; font-weight: 800; color: #fff; }

/* --------------------------------------------------------------------------
   10. S5 역할별 기능 — 탭
   자바스크립트가 없으면 네 패널이 그대로 세로로 쌓인다.
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  min-height: 52px; padding: 0 22px;
  font-family: inherit; font-size: 17px; font-weight: 800;
  color: var(--text); background: #fff;
  border: 2px solid var(--line-2); border-radius: 11px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tabs button:hover { border-color: var(--text-mute); }
.tabs button[aria-selected="true"] {
  background: var(--brand-strong); color: #fff; border-color: var(--brand-strong);
}
.tabs[hidden] { display: none; }

.tabpanel { padding-top: 4px; }
.tabpanel > h3 { margin-bottom: 8px; }
/* JS 미실행 시 각 패널 제목을 그대로 살려 둔다 */
.js-on .tabpanel > .panel-heading { display: none; }
.tabpanel + .tabpanel { margin-top: 48px; }
.js-on .tabpanel + .tabpanel { margin-top: 0; }

.feat-list { display: grid; gap: 12px; margin-top: 22px; }
.feat-list li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px;
  align-items: start; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.feat-list li::before {
  content: ""; width: 10px; height: 10px; margin-top: 10px;
  border-radius: 3px; background: var(--brand);
}
.feat-list b { color: var(--ink); font-weight: 800; }
.feat-list span { color: var(--text-sub); font-size: 17px; }

/* 권한 매트릭스 */
.perm-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
.perm-table caption { text-align: left; font-size: 17px; color: var(--text-sub); padding-bottom: 14px; }
.perm-table th, .perm-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.perm-table thead th { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--line-2); }
.perm-table tbody th { text-align: left; font-weight: 700; color: var(--text); }
.perm-table td { text-align: center; }
.perm-table .lv { font-weight: 800; font-size: 15px; }
.lv-w { color: var(--brand-deep); }
.lv-r { color: var(--text-sub); }
.lv-n { color: var(--text-mute); }

/* --------------------------------------------------------------------------
   11. S6 핵심 기능
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.feature.hi { border-color: var(--brand); background: var(--brand-tint); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 16.5px; color: var(--text-sub); }

/* 기능을 관리자 업무 단위로 묶는다 — 레퍼런스의 '서비스 소개' 메가메뉴와 같은 분류 방식 */
.feat-group { margin-top: 44px; }
.feat-group:first-of-type { margin-top: 0; }
.feat-group > h3 {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 18px; padding-bottom: 12px;
  font-size: 21px; border-bottom: 2px solid var(--line-2);
}
.feat-group > h3 .num {
  font-size: 14px; font-weight: 900; letter-spacing: .06em;
  color: var(--brand-strong); background: var(--brand-tint);
  border-radius: 999px; padding: 4px 11px; flex-shrink: 0;
}
.feat-group > h3 .who {
  margin-left: auto; font-size: 15px; font-weight: 700; color: var(--text-mute);
}

/* 급여 계산 표 */
.pay-table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 560px; }
.pay-table th, .pay-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pay-table thead th { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--line-2); }
.pay-table tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.pay-table td { color: var(--text-sub); }

/* --------------------------------------------------------------------------
   12. S7 신뢰지수
   -------------------------------------------------------------------------- */
.trust-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
@media (max-width: 700px) { .trust-compare { grid-template-columns: 1fr; } }

.trust-card {
  padding: 30px 26px; border-radius: var(--radius-lg); text-align: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
}
.trust-card .case { font-size: 17px; font-weight: 700; color: #CBD5E1; margin-bottom: 14px; }
.trust-card .score { font-size: 62px; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.04em; }
.trust-card .score .unit { font-size: 24px; font-weight: 800; margin-left: 4px; }
.trust-card .grade {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 800; background: rgba(14,159,110,.24); color: #8FE6C2;
}
.trust-card.dim .score { color: #FCD9A8; }
.trust-card.dim .grade { background: rgba(154,98,18,.32); color: #FCD9A8; }

.grade-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.grade-pill {
  padding: 10px 18px; border-radius: 999px; font-size: 16px; font-weight: 800;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: #E2E8F0;
}

/* --------------------------------------------------------------------------
   13. S8 근로자 앱
   -------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; } }

.shot figcaption {
  margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--text);
  text-align: center;
}
.shot figcaption small { display: block; font-weight: 600; color: var(--text-mute); font-size: 15px; margin-top: 2px; }
.shot img {
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #fff;
}

/* --------------------------------------------------------------------------
   14. S9 요금 안내 / S10 FAQ
   -------------------------------------------------------------------------- */
.pricing {
  padding: clamp(34px, 5vw, 52px); border-radius: var(--radius-lg);
  border: 2px solid var(--brand); background: var(--brand-tint);
  text-align: center;
}
.pricing h2 { margin-bottom: 16px; }
.pricing .lead { margin-left: auto; margin-right: auto; max-width: 40em; }
.pricing .btn-row { justify-content: center; margin-top: 30px; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  padding: 22px 26px; cursor: pointer;
  font-size: 18.5px; font-weight: 800; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
/* 여닫힘을 기호가 아니라 글자로 알린다 — 아이콘 단독 금지(PRD §8) */
.faq summary::after {
  content: "펼치기"; flex-shrink: 0;
  font-size: 15px; font-weight: 700; color: var(--brand-strong);
}
.faq details[open] summary::after { content: "접기"; }
.faq .answer { padding: 0 26px 24px; color: var(--text-sub); font-size: 17px; }
.faq .answer p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   15. S11 최종 CTA / S12 푸터
   -------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta .btn-row { justify-content: center; margin-top: 32px; }
.tel-big {
  display: inline-block; margin-top: 26px;
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.tel-big:hover { color: #8FE6C2; }
.tel-label { display: block; font-size: 15px; font-weight: 700; color: #94A3B8; letter-spacing: .04em; margin-bottom: 4px; }

.site-footer {
  padding: 56px 0 72px; background: #0B1220; color: #94A3B8; font-size: 16px;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #CBD5E1; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links a.strong { color: #fff; font-weight: 800; }
.site-footer .corp { margin-top: 28px; line-height: 1.9; }
.site-footer .corp b { color: #E2E8F0; }
.site-footer .copy { margin-top: 20px; font-size: 15px; color: #64748B; }

/* --------------------------------------------------------------------------
   16. 모바일 하단 고정 CTA
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, .07);
}
.mobile-cta .btn { flex: 1; min-height: 54px; font-size: 17px; padding: 0 12px; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  /* 하단바가 있는 페이지에만 여백을 준다 — 약관 페이지에는 바가 없다 */
  body:has(.mobile-cta) { padding-bottom: 84px; }
}

/* --------------------------------------------------------------------------
   17. 문의 폼 (contact.html)
   -------------------------------------------------------------------------- */
.form-page { padding-top: clamp(48px, 6vw, 76px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field.full { grid-column: 1 / -1; }

.field label, .fieldset-label {
  display: block; margin-bottom: 8px;
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.field .req { color: var(--red); margin-left: 3px; }
.field .hint { display: block; margin-top: 7px; font-size: 15px; color: var(--text-mute); font-weight: 500; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font-family: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 2px solid var(--line-2); border-radius: 11px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-strong); }

fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 54px; padding: 0 20px; margin: 0;
  border: 2px solid var(--line-2); border-radius: 11px; background: #fff;
  font-size: 17px; font-weight: 700; color: var(--text); cursor: pointer;
}
.radio-row input { width: 20px; height: 20px; accent-color: var(--brand-strong); }
.radio-row label:has(input:checked) { border-color: var(--brand-strong); background: var(--brand-tint); color: var(--brand-deep); }

.consent {
  grid-column: 1 / -1; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.consent label { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand-strong); }
.consent .detail { margin-top: 12px; font-size: 16px; color: var(--text-sub); line-height: 1.7; }

.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-note { font-size: 16px; color: var(--text-mute); }

.doc-body { max-width: 780px; }
.doc-body h2 { margin: 44px 0 14px; font-size: 26px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { margin: 14px 0; display: grid; gap: 8px; }
.doc-body ul li { padding-left: 20px; position: relative; color: var(--text-sub); }
.doc-body ul li::before { content: "·"; position: absolute; left: 6px; color: var(--brand); font-weight: 900; }
.callout {
  margin: 24px 0; padding: 22px 24px;
  border-left: 5px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-tint); color: var(--text);
}
.callout b { color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   18. 모션 축소
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   19. 인쇄
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-cta, .hero-shot, .btn-row { display: none !important; }
  body { padding-bottom: 0; font-size: 12pt; }
  section { padding: 18pt 0; }
  .ink, .payday, .site-footer { background: #fff !important; }
  .ink h2, .ink h3, .ink p, .ink .lead { color: #000 !important; }
}

/* --------------------------------------------------------------------------
   20. 약관·개인정보처리방침 (terms / privacy / location-terms)
   원본 .docx 를 구조 그대로 옮긴 페이지다. 조문 번호를 눈으로 좇기 쉽게
   들여쓰기와 줄 간격만 손봤다. 문장은 손대지 않는다.
   -------------------------------------------------------------------------- */
.legal { max-width: 860px; }
.legal h2 {
  margin: 52px 0 18px; padding-top: 24px;
  font-size: clamp(23px, 3vw, 28px); border-top: 2px solid var(--line-2);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin: 34px 0 12px; font-size: 20px; color: var(--brand-deep); }
.legal p { margin: 0 0 12px; font-size: 17px; color: var(--text); line-height: 1.85; }
/* 호(1. 2. …)로 시작하는 줄은 들여쓴다 — 조문 본문과 구분된다 */
.legal p { padding-left: 0; }
.legal .num { padding-left: 20px; text-indent: -20px; }

.doc-table {
  width: 100%; border-collapse: collapse; margin: 18px 0 26px;
  font-size: 16px; min-width: 480px;
}
.doc-table th, .doc-table td {
  padding: 13px 15px; border: 1px solid var(--line);
  text-align: left; vertical-align: top; line-height: 1.7;
}
.doc-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 800; }
.doc-table tbody th { font-weight: 700; color: var(--ink); background: #FCFDFD; white-space: normal; }
.doc-table td { color: var(--text-sub); }

.legal-meta {
  margin-bottom: 40px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
  font-size: 16px; color: var(--text-sub);
}
.legal-meta b { color: var(--ink); }

.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.legal-nav a {
  padding: 10px 18px; border: 2px solid var(--line-2); border-radius: 10px;
  font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; background: #fff;
}
.legal-nav a:hover { border-color: var(--text-mute); color: var(--ink); }
.legal-nav a[aria-current="page"] {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}

/* --------------------------------------------------------------------------
   21. 다중 페이지 구조 (2026-08-30)
   한 장 스크롤을 페이지 이동으로 바꾸면서 생긴 것들.
   -------------------------------------------------------------------------- */

/* 각 페이지 머리. 히어로보다 낮고 섹션보다 높다 */
.page-head {
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(900px 380px at 12% -20%, var(--brand-tint) 0%, rgba(232,246,239,0) 62%),
    var(--bg);
}
.page-head h1 { font-size: clamp(30px, 5vw, 46px); }

/* 홈에서 서비스 네 갈래로 보내는 카드 */
.link-card { display: block; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.link-card h3 { color: var(--ink); }
.link-card p { color: var(--text-sub); }
.link-card .more {
  display: inline-block; margin-top: 16px;
  font-size: 16px; font-weight: 800; color: var(--brand-strong);
}
.link-card .more::after { content: " →"; }
.link-card:hover .more { color: var(--brand-deep); }

/* 서비스 상세 — 앵커가 걸리는 단위 */
.svc-item { padding: clamp(40px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.svc-item:first-of-type { border-top: 0; }
.svc-item .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.svc-item.solo .wrap { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
@media (max-width: 900px) { .svc-item .wrap { grid-template-columns: 1fr; } }

.svc-item h2 { font-size: clamp(24px, 3vw, 31px); margin-bottom: 14px; }
.svc-item .lead { margin-top: 0; font-size: 18.5px; }
.svc-points { display: grid; gap: 10px; margin-top: 22px; }
.svc-points li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 13px; align-items: start;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.svc-points li::before {
  content: ""; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; background: var(--brand);
}
.svc-points b { color: var(--ink); font-weight: 800; }
.svc-points span { color: var(--text-sub); font-size: 16.5px; }

.svc-shot img {
  width: min(300px, 74vw); margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.svc-shot figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--text-mute); }

/* 다음 페이지로 넘기는 띠 */
.next-up { padding: clamp(40px, 5vw, 64px) 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.next-up .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.next-up p { font-size: 19px; font-weight: 800; color: var(--ink); }
.next-up p small { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--text-sub); }

/* --------------------------------------------------------------------------
   22. 콘솔 + 앱 짝 배치 (.duo)

   서비스 소개는 관리자가 보는 페이지다. 콘솔 화면이 주가 되고 앱 화면은
   "근로자 쪽에서는 이렇게 보인다"를 덧붙이는 자리로만 쓴다.

   지금 콘솔 캡처가 모바일 한 장뿐이라 둘 다 세로 화면으로 나란히 둔다.
   데스크톱 콘솔 캡처가 들어오면 .duo-main 을 넓은 이미지로 바꾸고
   .duo 의 grid-template-columns 를 1.6fr .8fr 정도로 키우면 된다.
   -------------------------------------------------------------------------- */
.duo { margin: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.duo figure { margin: 0; }
.duo img {
  width: 100%; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.duo .duo-sub img { border-radius: 14px; }
.duo figcaption {
  margin-top: 11px; font-size: 14.5px; line-height: 1.5; text-align: center; color: var(--text-mute);
}
.duo figcaption b { display: block; color: var(--text); font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.ink .duo figcaption { color: #94A3B8; }
.ink .duo figcaption b { color: #E2E8F0; }
.ink .duo img { border-color: rgba(255,255,255,.18); }

@media (max-width: 560px) { .duo { grid-template-columns: 1fr; gap: 22px; } }

/* --------------------------------------------------------------------------
   23. 데스크톱 콘솔 캡처 (2026-08-30)
   실제 콘솔 캡처가 1440x900 가로 이미지로 들어오면서, 세로 폰 기준으로
   잡아 둔 자리들을 넓은 이미지에 맞게 다시 잡는다.
   -------------------------------------------------------------------------- */

/* 히어로 — 오른쪽 칸을 넓혀 콘솔이 읽히게 한다. 넘치게 두면 가로 스크롤이 생긴다 */
.hero .wrap { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hero-shot img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot img { width: 100%; }
}

/* 콘솔 단독 — 본문 폭을 다 쓴다 */
.shot-wide { margin: 32px 0 0; }
.shot-wide img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.shot-wide figcaption {
  margin-top: 11px; font-size: 14.5px; line-height: 1.5; color: var(--text-mute);
}
.shot-wide figcaption b { color: var(--text); font-weight: 800; font-size: 15px; margin-right: 8px; }

/* 콘솔(넓은) + 앱(세로) 짝. 콘솔이 확실히 주가 되게 한다 */
.duo.wide { grid-template-columns: minmax(0, 1.72fr) minmax(0, .78fr); align-items: start; gap: 20px; }
.duo.wide .duo-main img { border-color: var(--line-2); }
.duo.wide .duo-sub img { max-width: 210px; margin: 0 auto; display: block; }
@media (max-width: 900px) { .duo.wide { grid-template-columns: 1fr; } .duo.wide .duo-sub img { max-width: 240px; } }

/* 서비스 상세에서 콘솔이 들어간 절은 한 칸으로 펴서 이미지를 크게 쓴다 */
.svc-item:has(> .wrap > .duo.wide) > .wrap,
.svc-item:has(.shot-wide) > .wrap { grid-template-columns: minmax(0, 1fr); max-width: 980px; }

/* --------------------------------------------------------------------------
   24. 아이콘 (2026-08-31)
   인라인 SVG stroke 아이콘. 색은 currentColor.
   아이콘 단독 금지 원칙(PRD §8)에 따라 항상 글자 옆에만 둔다.
   -------------------------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: -4px; }

/* 메가메뉴: 아이콘 + 글 2단 */
.mega li a { display: flex; gap: 11px; align-items: flex-start; }
.mega li a .mega-ic { width: 21px; height: 21px; margin-top: 3px; color: var(--brand-strong); }
.mega-txt { display: block; min-width: 0; }
.mega-txt b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.mega-txt span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-sub); line-height: 1.55; }
.mega li a:hover .mega-txt b { color: var(--brand-deep); }

/* 홈 서비스 카드 아이콘 */
.link-card .card-ic {
  width: 40px; height: 40px; margin-bottom: 14px; padding: 8px;
  color: var(--brand-strong); background: var(--brand-tint); border-radius: 11px;
  box-sizing: content-box; padding: 8px; width: 26px; height: 26px;
}

/* --------------------------------------------------------------------------
   25. 제품 둘러보기 (overview.html)
   레퍼런스의 교대 섹션 + 기능 그리드 구성.
   -------------------------------------------------------------------------- */
.ov-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 420px at 80% -10%, var(--brand-tint) 0%, rgba(232,246,239,0) 60%),
    var(--bg);
}
.ov-hero .eyebrow { letter-spacing: .08em; }
.ov-hero h1 { font-size: clamp(32px, 5.4vw, 52px); }
.ov-hero .lead { max-width: 34em; }

.ov-row { padding: clamp(48px, 6vw, 84px) 0; }
.ov-row.alt { background: var(--bg-soft); }
.ov-row .wrap {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.ov-row:nth-of-type(odd) .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.ov-row .wrap:has(.ov-three) { grid-template-columns: 1fr; }
.ov-row .wrap:not(:has(.ov-shot)) { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .ov-row .wrap, .ov-row:nth-of-type(odd) .wrap { grid-template-columns: 1fr; }
  .ov-shot { order: 2; }
}
.ov-copy h2 { margin-bottom: 14px; }
.ov-copy > p { color: var(--text-sub); font-size: 18px; max-width: 38em; }

.ov-points { display: grid; gap: 10px; margin-top: 22px; }
.ov-points li {
  position: relative; padding-left: 30px;
  font-size: 17px; color: var(--text);
}
.ov-points li::before {
  content: ""; position: absolute; left: 2px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-tint-2);
}
.ov-points li::after {
  content: ""; position: absolute; left: 6.5px; top: 9px;
  width: 7px; height: 4.5px;
  border-left: 2px solid var(--brand-deep); border-bottom: 2px solid var(--brand-deep);
  transform: rotate(-45deg);
}

.ov-two, .ov-three { display: grid; gap: 22px; margin-top: 26px; }
.ov-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .ov-two, .ov-three { grid-template-columns: 1fr; } }
.ov-two > div, .ov-three > div {
  padding: 22px 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.ov-row.alt .ov-two > div, .ov-row.alt .ov-three > div { background: #fff; }
.ov-two h3, .ov-three h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 18.5px; margin-bottom: 8px;
}
.ov-two h3 .icon, .ov-three h3 .icon { color: var(--brand-strong); }
.ov-two p, .ov-three p { font-size: 16px; color: var(--text-sub); }

.ov-shot { margin: 0; }
.ov-shot img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}

/* 기능 그리드 — "필요한 모든 기능을 하나로" */
.ov-grid-sec { padding: clamp(56px, 7vw, 96px) 0; background: var(--bg-soft); }
.ov-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 980px) { .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-grid a, .ov-envs a {
  display: block; padding: 22px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ov-grid a:hover, .ov-envs a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.ov-grid a .icon, .ov-envs a .icon {
  width: 26px; height: 26px; color: var(--brand-strong); margin-bottom: 12px; display: block;
}
.ov-grid a b, .ov-envs a b { display: block; font-size: 17.5px; font-weight: 800; color: var(--ink); }
.ov-grid a span, .ov-envs a span { display: block; margin-top: 5px; font-size: 15px; color: var(--text-sub); line-height: 1.6; }
.ov-grid a:hover b, .ov-envs a:hover b { color: var(--brand-deep); }
.ov-envs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px;
}
@media (max-width: 620px) { .ov-envs { grid-template-columns: 1fr; } }
.ov-envs a { background: var(--brand-tint); border-color: var(--brand-tint-2); }

/* --------------------------------------------------------------------------
   26. 고객센터 (faq.html)
   레퍼런스(help)의 짙은 히어로 + 검색 + 카테고리 + 지원 카드.
   -------------------------------------------------------------------------- */
.help-hero {
  padding: clamp(48px, 7vw, 88px) 0;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-strong) 70%);
  text-align: center;
}
.help-hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 44px); }
.help-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 28px auto 0; padding: 0 20px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.help-search .icon { color: var(--text-mute); }
.help-search input {
  flex: 1; min-height: 60px; border: 0; outline: none;
  font-family: inherit; font-size: 17px; color: var(--ink); background: none;
}
.help-search:focus-within { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }

.help-body { padding: clamp(40px, 5vw, 64px) 0; }
.help-cat { margin-bottom: clamp(32px, 4vw, 48px); }
.help-cat > h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 18px;
}
.help-cat > h2 .icon { color: var(--brand-strong); width: 25px; height: 25px; }
.help-empty { font-size: 17px; color: var(--text-sub); padding: 24px 0; }

.help-more { padding: clamp(48px, 6vw, 76px) 0; background: var(--bg-soft); }
.help-more h2 { margin-bottom: 24px; }
.help-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .help-cards { grid-template-columns: 1fr; } }
.help-card {
  display: block; padding: 26px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.help-card .icon { width: 26px; height: 26px; color: var(--brand-strong); margin-bottom: 12px; display: block; }
.help-card b { display: block; font-size: 18.5px; font-weight: 800; color: var(--ink); }
.help-card span { display: block; margin-top: 6px; font-size: 16px; color: var(--text-sub); }

/* 역할별 표 — 강조 행과 기호 열 */
.perm-table .hi-row th, .perm-table .hi-row td { background: var(--brand-tint); }
.perm-table th small { display: block; font-weight: 600; font-size: 13px; color: var(--text-mute); }
.perm-table .lv { font-size: 17px; }

/* --------------------------------------------------------------------------
   27. 히어로 콘솔 롤링 배너 (2026-08-31)
   콘솔이 잘 보여야 하는 페이지라 오른쪽 칸을 더 크게 잡았다.
   슬라이드는 겹쳐 두고 투명도만 바꾼다 — 높이가 널뛰지 않는다.
   -------------------------------------------------------------------------- */
/* 옆에 끼워 넣으면 콘솔 글자가 안 읽힌다(2026-08-31 피드백).
   카피를 위에, 롤링 배너를 본문 폭 전체로 아래에 둔다.
   슬라이드는 사이드바를 잘라낸 크롭본(hero-*.webp)이라 본문이 더 크게 보인다. */
.hero .wrap { display: block; position: relative; }
.hero-copy { max-width: 780px; }
/* 콘솔 로그인 상자. 카피 오른쪽 위 빈 자리에 띄운다(2026-09-22 사장님: 눈에 잘 띄게). 좁은 화면에서는 버튼 줄 아래로 내려온다 */
.hero-login {
  position: absolute; top: 4px; right: 0; width: 300px;
  padding: 22px 22px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.hero-login .hl-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.hero-login .hl-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--text-mute); }
.hero-login .hl-btn { width: 100%; justify-content: center; font-size: 18px; min-height: 52px; }
.hero-login .hl-help { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--brand-strong); }
.hero-login .hl-help:hover { text-decoration: underline; }
@media (max-width: 1180px) {
  .hero-login { width: 260px; padding: 18px 18px 14px; }
  .hero-copy { max-width: calc(100% - 290px); }   /* 상자와 겹치지 않게 카피 폭을 줄인다 */
}
@media (max-width: 900px) {
  .hero-login { position: static; width: 100%; max-width: 420px; margin-top: 22px; }
  .hero-copy { max-width: none; }   /* 위 1180 규칙이 좁은 화면까지 내려와 카피를 좁게 눌렀던 것을 되돌린다 */
}
.hero-copy .lead { max-width: 40em; }
.hero .tally { max-width: 640px; }
.hero-carousel { margin-top: clamp(30px, 4vw, 46px); }

.hero-carousel { position: relative; }
.hc-slide {
  margin: 0; position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.hc-slide.is-on { position: relative; opacity: 1; visibility: visible; }
.hc-slide img {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.hc-slide figcaption {
  margin-top: 12px; text-align: center;
  font-size: 15.5px; font-weight: 700; color: var(--text-sub);
}

.hc-dots { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
.hc-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px;
  background: var(--line-2); cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.hc-dots button[aria-current="true"] { width: 26px; background: var(--brand-strong); }
.hc-dots button:hover { background: var(--text-mute); }

/* 세로 배치라 모바일도 같은 흐름이다 */
/* 모션 축소 설정이면 전환 애니메이션 없이 즉시 바뀐다(자동 롤링은 JS 가 끈다) */
@media (prefers-reduced-motion: reduce) {
  .hc-slide { transition: none; }
}

/* --------------------------------------------------------------------------
   28. 헤더 반응형 (2026-08-31 복구)
   메가메뉴를 넣으며 헤더 구간을 재작성할 때 이 블록이 유실됐고,
   좁은 화면에서 메뉴·버튼이 한 줄에 억지로 남아 페이지 전체가 가로로 밀렸다.
   파일 끝에 두어 카스케이드에서 확실히 이기게 한다.
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .gnb a, .gnb .mega-toggle { padding: 10px 10px; font-size: 15.5px; }
  .header-cta .btn { padding: 0 13px; font-size: 15px; }
  .site-header .wrap { gap: 10px; }
}

@media (max-width: 900px) {
  /* 두 줄이 되면 로고 줄이 머리띠 위 가장자리에 붙는다. 위에 숨 쉴 틈을 준다(2026-09-22 사장님) */
  .site-header .wrap { min-height: 60px; flex-wrap: wrap; padding-top: 12px; row-gap: 4px; }
  /* 1줄: 로고 + [콘솔 로그인]. 도입 문의는 하단 고정바에 이미 있다 */
  .header-cta { margin-left: auto; }
  .header-cta .btn-primary { display: none; }
  /* 2줄: 메뉴가 로고 아래로 내려온다. 줄바꿈·가로 스크롤 없이 한 줄에 맞춘다(2026-09-22 사장님).
     폭이 좁아지면 글자와 여백을 화면 폭에 비례해 줄인다. */
  .gnb {
    order: 3; width: 100%; margin: 0; padding: 2px 0 8px;
    flex-wrap: nowrap; overflow: visible; gap: 0; justify-content: space-between;
  }
  .gnb a, .gnb .mega-toggle { flex: 0 1 auto; white-space: nowrap; font-size: clamp(12px, 3.6vw, 15.5px); padding: 8px clamp(3px, 1.2vw, 10px); }
  .gnb::-webkit-scrollbar { display: none; }
  .gnb a, .gnb .mega-toggle { flex-shrink: 0; }
  /* 메가메뉴는 흐름 안에서 한 열로 */
  .mega { position: static; box-shadow: none; border-top: 1px solid var(--line); }
  .mega .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; padding-bottom: 22px; }
  .mega-side { grid-column: auto; }
  /* 서브 앵커바 기준 높이(헤더가 2줄이 됨) */
  .subnav { top: auto; position: static; }
}

@media (max-width: 480px) {
  .brand-link { font-size: 23px; }
  .brand-link img, .brand-link .mark, .brand-link .mark img { width: 38px; height: 38px; }
  .header-cta .btn { min-height: 40px; padding: 0 11px; font-size: 14.5px; }
}


/* 콘솔 화면 그림 확대 보기(2026-09-22). console-, hero-, app- 그림. 주석 안에 별표와 빗금을 붙여 쓰면 주석이 끊기니 주의 */
img.can-zoom,
img[src*="assets/img/console-"], img[src*="assets/img/hero-"], img[src*="assets/img/app-"] { cursor: zoom-in; }
a img[src*="assets/img/console-"], a img[src*="assets/img/hero-"], a img[src*="assets/img/app-"] { cursor: pointer; }   /* 링크 카드 안 그림은 카드 이동 */
.img-lb {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 28px; background: rgba(10, 20, 16, .86); cursor: zoom-out;
}
.img-lb.is-on { display: flex; flex-direction: column; gap: 12px; }
/* 제목은 그림 위 별도 줄에. 그림과 겹치지 않게 그림 높이를 그만큼 줄인다(2026-09-22 사장님 지적) */
.img-lb img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.img-lb-t { flex: 0 0 auto; width: 100%; padding: 0 60px; text-align: center; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.4; }
.img-lb-x { position: absolute; top: 8px; right: 14px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 6px 10px; }

/* 문의 폼 honeypot — 화면·낭독기·탭에서 전부 숨긴다. 봇만 채운다 */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   29. 메인 전체 흐름(.cycle) + 배정 전 두 카드(.know-card)
   여섯 단계가 한 바퀴로 도는 것이 핵심이라, 마지막 칸(신뢰지수)만
   배경을 입혀 "여기서 다시 배정으로 돌아간다"가 눈에 걸리게 한다.
   -------------------------------------------------------------------------- */
.cycle {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  counter-reset: cyc;
}
.cycle li {
  position: relative; counter-increment: cyc;
  padding: 22px 22px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.cycle li::before {
  content: counter(cyc);
  position: absolute; top: 20px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  color: var(--brand-strong); background: var(--brand-tint);
}
.cycle-ic {
  display: block; width: 30px; height: 30px; margin-bottom: 12px;
  stroke: var(--brand-strong);
}
.cycle li > b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.cycle li > span { display: block; font-size: 16.5px; color: var(--text-sub); line-height: 1.55; }
.cycle .cycle-loop { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.cycle .cycle-loop::before { background: #fff; }
.cycle .cycle-loop > span b { color: var(--brand-deep); }
@media (max-width: 860px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

.know-card img {
  width: 100%; height: auto; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
