/* =========================================================
   Tabion 장애 관리 시스템 제품 페이지 — 전용 도식
   · 페이지 틀·카드는 제품 페이지 공통(style.css + yurika.css의 .yk)
   · SVG 도식 공통 부품(.ao-svg, .ao-feat, .ao-layers 등)은 aiops.css를 함께 쓴다
   · 여기에는 제품 색과 이 페이지에만 있는 도식만 둔다
   ========================================================= */

/* 제품 포인트 색 — 보라 #8B5BD6 (시안 단계 — AIOps 남보라와 비슷해 추후 조정 가능) */
.yk.ic {
  --yk-accent: #8B5BD6;
  --blue: #8B5BD6; --blue-deep: #5e35a3; --blue-mid: #9d72e0;
  --sky: #c6aef0; --sky-tint: #f5f0fd; --sky-2: #e4d8f8;
}

/* 첫 화면 제목 — 제품명이 길어 두 줄로 */
.yk .hero h1.ic-title { font-size: clamp(34px, 4.4vw, 62px); white-space: nowrap; }

/* ---------- 기존 방식 → 도입 후 ---------- */
.ic-ba { display: flex; flex-direction: column; gap: 10px; }
.ic-ba .hr, .ic-ba .r { display: grid; grid-template-columns: 104px 1fr 22px 1.25fr; gap: 14px; align-items: center; }
.ic-ba .hr { padding: 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.ic-ba .hr span:last-child { color: var(--blue); }
.ic-ba .r { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 15px 18px; animation: aoLift 8s var(--ease) infinite; }
.ic-ba .r:nth-child(3) { animation-delay: 2s; }
.ic-ba .r:nth-child(4) { animation-delay: 4s; }
.ic-ba .r:nth-child(5) { animation-delay: 6s; }
.ic-ba .lb { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ic-ba .bf { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.ic-ba .ar { color: var(--sky); font-weight: 700; animation: pnudge 2s var(--ease) infinite; }
.ic-ba .af { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ---------- 시스템 구성 ---------- */
.ic-sys { display: grid; grid-template-columns: 1fr 40px 1.7fr 40px 1fr; align-items: stretch; }
.ic-col { display: flex; flex-direction: column; gap: 8px; }
.ic-col .ct, .ic-gw .ct { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.ic-u { flex: 1; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; animation: aoLift 6s var(--ease) infinite; }
.ic-col .ic-u:nth-child(3) { animation-delay: 1.2s; }
.ic-col .ic-u:nth-child(4) { animation-delay: 2.4s; }
.ic-u b { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ic-u small { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
/* 칸 사이를 흐르는 점선 */
@keyframes icDash { to { background-position: 24px 0; } }
.ic-link { position: relative; }
.ic-link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 12px); animation: icDash 1s linear infinite; }
.ic-link.rev::before { animation-direction: reverse; }
.ic-core { border-radius: 10px; background: var(--blue-deep); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ic-core .hd { font-size: 14px; font-weight: 700; }
.ic-core .hd small { display: block; font-size: 11px; font-weight: 500; color: var(--sky); margin-top: 2px; }
.ic-core .grid3, .ic-core .grid2 { display: grid; gap: 8px; }
.ic-core .grid3 { grid-template-columns: repeat(3, 1fr); }
.ic-core .grid2 { grid-template-columns: 1fr 1fr; }
.ic-core span { font-size: 12px; font-weight: 700; line-height: 1.35; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 9px 10px; animation: pillGlow 5s var(--ease) infinite; }
.ic-core span small { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.ic-core .grid3 span:nth-child(2) { animation-delay: 0.5s; }
.ic-core .grid3 span:nth-child(3) { animation-delay: 1s; }
.ic-core .grid2 span:nth-child(2) { animation-delay: 1.5s; }
.ic-core .bar { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--blue-deep); background: #fff; border-radius: 8px; padding: 8px; }
.ic-gw { grid-column: 1 / -1; margin-top: 14px; display: grid; grid-template-columns: 1fr 40px 1fr 1.3fr; align-items: stretch; }
.ic-gw .g { border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; justify-content: center; }
.ic-gw .g small { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 3px; }
.ic-gw .gw { background: var(--sky-tint); border: 1px solid var(--sky); color: var(--ink); }
.ic-gw .in { background: #fff; border: 1px solid var(--line); color: var(--ink); margin-right: 10px; }
.ic-gw .out { background: #fff; border: 1px dashed var(--line-strong); color: var(--ink); }
.ic-gw .out .ct { color: var(--red-deep); margin-bottom: 4px; }

/* ---------- 접수 에이전트 대화 ---------- */
.ic-chat { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.ic-chat .top { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink); }
.ic-chat .top i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.ic-chat .body { padding: 16px 15px; display: flex; flex-direction: column; gap: 10px; min-height: 290px; }
@keyframes icMsg { 0% { opacity: 0; transform: translateY(8px); } 4%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.ic-chat .m { max-width: 82%; font-size: 12.5px; line-height: 1.55; border-radius: 10px; padding: 10px 13px; opacity: 0; animation: icMsg 11s var(--ease) infinite; }
.ic-chat .m.me { align-self: flex-end; background: var(--sky-tint); border: 1px solid var(--sky-2); color: var(--ink); font-weight: 600; }
.ic-chat .m.ai { align-self: flex-start; background: #f7f7f7; color: var(--ink); }
.ic-chat .m.ai b { color: var(--blue); }
.ic-chat .m:nth-child(2) { animation-delay: 1.3s; }
.ic-chat .m:nth-child(3) { animation-delay: 2.8s; }
.ic-chat .m:nth-child(4) { animation-delay: 4.1s; }
.ic-chat .ticket { opacity: 0; animation: icMsg 11s var(--ease) 5.4s infinite; display: flex; align-items: center; gap: 10px; border: 1px solid var(--blue); border-radius: 10px; background: var(--sky-tint); padding: 11px 13px; }
.ic-chat .ticket .ti { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.ic-chat .ticket .ti svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-chat .ticket b { display: block; font-size: 13px; color: var(--ink); }
.ic-chat .ticket small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; }

/* ---------- 분석·대응: 유사 사례 + 점검 절차 ---------- */
.ic-sim { display: flex; flex-direction: column; gap: 9px; }
.ic-sim .s { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.ic-sim .s small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.ic-sim .s i { display: block; height: 6px; border-radius: 3px; background: var(--sky-tint); position: relative; overflow: hidden; }
.ic-sim .s i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--blue); transform-origin: 0 50%; animation: aoFill 8s var(--ease) infinite; }
.ic-sim .s:nth-child(2) i::after { animation-delay: 0.3s; }
.ic-sim .s:nth-child(3) i::after { animation-delay: 0.6s; }
.ic-steps { display: flex; flex-direction: column; gap: 8px; }
.ic-steps .st { display: flex; align-items: center; gap: 11px; font-size: 12.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.ic-steps .st small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
@keyframes icCheck { 0%, 22% { background: #fff; border-color: var(--line-strong); } 28%, 88% { background: var(--blue); border-color: var(--blue); } 96%, 100% { background: #fff; border-color: var(--line-strong); } }
@keyframes icTick { 0%, 22% { opacity: 0; } 28%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.ic-steps .ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; animation: icCheck 8s var(--ease) infinite; }
.ic-steps .ck::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg); opacity: 0; animation: icTick 8s var(--ease) infinite; }
.ic-steps .st:nth-child(2) .ck, .ic-steps .st:nth-child(2) .ck::after { animation-delay: 0.9s; }
.ic-steps .st:nth-child(3) .ck, .ic-steps .st:nth-child(3) .ck::after { animation-delay: 1.8s; }
.ic-rec { margin-top: 12px; border-radius: 10px; background: var(--blue-deep); color: #fff; padding: 12px 14px; font-size: 12.5px; line-height: 1.55; }
.ic-rec small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--sky); margin-bottom: 3px; }

/* ---------- 보고서·통계: 막대 차트 ---------- */
@keyframes icBar { 0%, 12% { transform: scaleY(0); } 40%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.ao-svg .ic-b { transform-box: fill-box; transform-origin: 50% 100%; animation: icBar 7s cubic-bezier(0.6, 0.02, 0.2, 1) infinite; }
.ao-svg .ic-b.b2 { animation-delay: 0.12s; }
.ao-svg .ic-b.b3 { animation-delay: 0.24s; }
.ao-svg .ic-b.b4 { animation-delay: 0.36s; }
.ao-svg .ic-b.b5 { animation-delay: 0.48s; }
.ao-svg .ic-b.b6 { animation-delay: 0.6s; }
.ic-sched { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ic-sched span { font-size: 11.5px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--sky-2); border-radius: 8px; padding: 7px 11px; animation: aoLift 6s var(--ease) infinite; }
.ic-sched span:nth-child(2) { animation-delay: 1.5s; }
.ic-sched span:nth-child(3) { animation-delay: 3s; }

/* ---------- 역할별 워크스페이스 ---------- */
.ic-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ic-role { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 22px 22px 20px; display: flex; flex-direction: column; animation: aoLift 6s var(--ease) infinite; }
.ic-role:nth-child(2) { animation-delay: 3s; }
.ic-role .who { display: inline-flex; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 100px; padding: 5px 12px; }
.ic-role h3 { margin: 12px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ic-role dl { margin: 14px 0 0; display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; font-size: 13px; line-height: 1.55; }
.ic-role dt { font-weight: 700; color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.ic-role dd { margin: 0; color: var(--ink-2); }
.ic-role .val { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); }
.ic-role .val::before { content: "핵심 가치 · "; color: var(--blue); }

/* 높이가 낮은 노트북 화면 */
@media (min-width: 901px) and (max-height: 860px) {
  .yk.ic .yk-sec.yk-slide { padding-top: 28px; padding-bottom: 60px; }
  .yk.ic .full-head { margin-bottom: 16px; }
  .yk.ic .full-head .sub { margin-top: 10px !important; font-size: 14px; }
  .yk.ic .qbar { margin-top: 14px; padding: 12px 18px; }
  .ic-ba .r { padding: 11px 16px; }
  .ic-chat .body { min-height: 250px; }
}

/* 모바일 */
@media (max-width: 900px) {
  .ic-sys, .ic-gw, .ic-roles { grid-template-columns: 1fr; }
  .ic-link { height: 22px; }
  .ic-link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky) 0 6px, transparent 6px 12px); }
  .ic-gw .in { margin-right: 0; margin-bottom: 8px; }
  .ic-ba .hr { display: none; }
  .ic-ba .r { grid-template-columns: 1fr; gap: 6px; }
  .ic-ba .ar { display: none; }
  .ic-core .grid3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ic-ba .r, .ic-u, .ic-link::before, .ic-core span, .ic-sched span, .ic-role, .ao-svg .ic-b { animation: none !important; }
  .ic-chat .m, .ic-chat .ticket { animation: none; opacity: 1; }
  .ic-steps .ck { animation: none; background: var(--blue); border-color: var(--blue); }
  .ic-steps .ck::after { animation: none; opacity: 1; }
  .ic-sim .s i::after { animation: none; }
}
