/* 제작 자료: 디자인 세트(design-dna·ui-ux-pro-max·motion-design) · kits-1006/claude-design-set-v4/PROMPTS.md 「2. 참고 화면의 짜임으로 만들기」「3. 움직임 넣기」「프롬프트를 고칠 때」 · forge/ref/design-refs/2026-10-14-violet-task-manager.jpg */
/* 쇼핑·백화점 앱 접속 안 될 때 자가진단(#2424) r3.
 * 색: design-dna.json(FORGE/2424/kit) 의 측정값을 그대로 쓴다(measure-colors.mjs 실행값). 측정 보라 #a168e9 는 흰 글자와 3.65:1 이라
 * 글자가 얹히는 보라 면만 같은 색상의 짙은 보라(--accent-strong, 파생, 6.56:1)로 칠한다. 다크는 같은 색상에서 파생.
 * 짜임(참고 화면): 진보라 머리 띠 위로 흰 판이 올라옴 · 날짜 칩 줄 → 기기 타일·순서 바로가기 · 시간대 체크리스트에서 지금 항목만 진보라 면
 * → 해결 순서 「지금 할 단계」 · 카테고리 목록(아이콘+개수+화살표) → 증상 줄.
 * 상태는 표가 아니라 선·색·배경: 대기 = 연보라 면, 지금 = 진보라 머리 + 굵은 왼쪽 선, 끝냄 = 흰 면 + 보라 선 + 취소선, 되돌릴 수 없음 = 주의색 점선.
 * 글꼴: ui-ux-pro-max 「Friendly SaaS」(Plus Jakarta Sans 단일) 를 바깥 글꼴 없이 시스템 산세리프 + 한글 폴백으로 대신한다. */
:root {
  --font: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  /* 측정값(design-dna.json measured_palette) */
  --bg: #e7d9fd; --paper: #fefdfe; --ink: #333035; --accent: #a168e9; --line: #d4c9e3; --line-strong: #b3a8bf;
  /* WCAG AA 용 파생(design-dna.json derived_for_wcag) */
  --surface: #e7d9fd; --surface-2: #f5f0fe; --ink-2: #5f5768;
  --accent-strong: #6e3fc2; --accent-ink: #fefdfe; --on-strong-2: #e7d9fd; --accent-text: #6e3fc2;
  --warn: #93590b; --warn-soft: #fbf0dc; --warn-ink: #fefdfe; --warn-stripe: #f0b552;
  --shadow: 0 6px 20px rgba(80, 40, 140, .10);
  --radius: 20px; --radius-sm: 10px;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15121c; --paper: #1e1a28; --ink: #f1ecf8; --line: #3a3348; --line-strong: #5a4f6e;
    --surface: #2a2338; --surface-2: #231d30; --ink-2: #b8afc6;
    --accent-strong: #b58af0; --accent-ink: #1a1124; --on-strong-2: #2e1f45; --accent-text: #c9a8ff;
    --warn: #f0b552; --warn-soft: #3a2c12; --warn-ink: #1a1124; --warn-stripe: #6b3f05;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--accent-text); } .skip:focus { left: 8px; top: 8px; background: var(--paper); z-index: 9; }
[hidden] { display: none !important; }
.wrap, .hero-in, .foot { max-width: 880px; margin: 0 auto; padding: 0 16px; }
/* 보이지 않게 하되 화면 읽기·키보드에는 남긴다(고른 상태는 면 색 + ✓ 로 보인다) */
.chip input, .opt input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 머리 띠: 진보라 면, 아래 흰 판이 겹쳐 올라온다 */
.hero { background: var(--accent-strong); color: var(--accent-ink); padding: 28px 0 60px; }
.eyebrow { margin: 0; color: var(--on-strong-2); font-weight: 700; font-size: 14px; }
h1 { font-size: clamp(27px, 7.4vw, 46px); line-height: 1.22; margin: 6px 0 12px; letter-spacing: -0.02em; font-weight: 800; }
.lede { margin: 0; max-width: 44em; }
.hero-nav { display: flex; gap: 8px; margin: 18px 0 0; }
.hero-nav a { flex: 1 1 0; min-width: 0; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; border: 1.5px solid var(--on-strong-2); border-radius: var(--radius-sm); color: var(--accent-ink); text-decoration: none; text-align: center; }
.hero-nav b { font-size: 20px; line-height: 1.1; }
.hero-nav span { font-size: 13px; font-weight: 600; line-height: 1.3; }
h2 { font-size: 20px; margin: 0 0 12px; line-height: 1.4; scroll-margin-top: 16px; font-weight: 800; }
h1, h2, h3 { text-wrap: balance; }
h2:focus { outline: none; }
main.wrap { position: relative; margin-top: -40px; }
.panel, .guide { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; margin: 16px 0; }
.grid > .col:first-child > .panel:first-child { margin-top: 0; }
.sub { margin: -4px 0 12px; color: var(--ink-2); font-size: 15px; }
.muted { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; }
.muted:empty { display: none; }
.nojs { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--warn); font-size: 14px; color: var(--ink-2); }
button, textarea, input, select { font: inherit; font-size: 16px; }
a { color: var(--accent-text); }
button:focus-visible, summary:focus-visible, a:focus-visible, textarea:focus-visible, input[type="text"]:focus-visible,
.opt:focus-within, .chip:focus-within, .step-check:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero-nav a:focus-visible { outline-color: var(--accent-ink); }

/* 1. 나만 안 되나요? 질문마다 왼쪽 선: 답하면 보라 */
.questions { display: grid; gap: 16px; margin: 0 0 14px; }
.q { margin: 0; padding: 0 0 0 12px; border: 0; border-left: 4px solid var(--line); min-width: 0; }
.q:has(input:checked) { border-left-color: var(--accent); }
.q:has(input[value="skip"]:checked) { border-left-color: var(--line); }
.q legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 2px; }
.q .help { margin: 0 0 8px; }
.verdict { padding: 12px 14px; border-left: 8px solid var(--line-strong); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.verdict[data-verdict="service"] { border-left-color: var(--warn); background: var(--warn-soft); }
.verdict[data-verdict="device"] { border-left-color: var(--accent-strong); background: var(--surface); }
.v-title { margin: 0; font-weight: 800; font-size: 17px; }
.v-reasons { margin: 6px 0 0; padding-left: 20px; font-size: 15px; }
.v-reasons:empty { display: none; }
.v-notes { margin: 8px 0 0; padding-top: 6px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--ink-2); }
.v-notes-h { margin: 0; font-weight: 700; }
.v-notes ul { margin: 4px 0 0; padding-left: 20px; }
.v-next { margin: 8px 0 0; font-size: 15px; }
.v-next:empty { display: none; }
.v-next a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* 칩 줄(참고 화면 날짜 칩): 연보라 네모, 고르면 진보라 면 + ✓ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); color: var(--ink); font-weight: 600; }
.chip:has(input:checked) { background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; }
.chip:has(input:checked) span::before { content: "✓ "; }

/* 2. 고르기: 기기 = 날짜 칩 같은 타일 두 개, 증상 = 아이콘 + 이름 + 단계 수 + 화살표 줄 */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; cursor: pointer; background: var(--surface); color: var(--ink); border-radius: 12px; }
.opt.tile { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 68px; padding: 8px 10px; font-size: 18px; font-weight: 800; line-height: 1.25; }
.opt.tile small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt.tile:has(input:checked) span::before { content: "✓ "; }
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
.opt.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; grid-template-areas: "ico t chev" "ico c chev"; align-items: center; column-gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; font-weight: 700; }
.opt.row .ico { grid-area: ico; width: 44px; height: 44px; padding: 9px; border-radius: var(--radius-sm); background: var(--paper); color: var(--accent-strong); }
.opt.row input + span { grid-area: t; align-self: end; }
.opt.row .cnt { grid-area: c; align-self: start; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt.row .cnt:empty { display: none; }
.opt.row:has(.cnt:empty) input + span { align-self: center; grid-row: 1 / span 2; }
.chev { grid-area: chev; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); justify-self: center; }
.opt:has(input:checked) { background: var(--accent-strong); color: var(--accent-ink); }
.opt:has(input:checked) small, .opt:has(input:checked) .cnt { color: var(--on-strong-2); }
.opt.row:has(input:checked) .ico { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--on-strong-2); }

/* 해결 순서: 진보라 머리(지금 할 일·진행 띠) + 시간대 체크리스트 짜임의 단계 줄 */
.plan { padding: 0 0 16px; overflow: hidden; }
.plan-head { background: var(--accent-strong); color: var(--accent-ink); padding: 16px 18px 16px; }
.v-kicker { margin: 0; font-size: 14px; color: var(--on-strong-2); font-weight: 600; }
.plan h2 { font-size: 22px; margin: 2px 0 4px; }
.progress { margin: 0 0 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan.all-done .progress::before { content: "✓ "; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.track li { flex: 1; height: 6px; border-radius: 3px; background: var(--on-strong-2); opacity: .45; }
.track li.done { background: var(--accent-ink); opacity: 1; }
.track li.now { background: var(--accent-ink); opacity: 1; height: 10px; margin-top: -2px; border-radius: 5px; }
.track li.destructive:not(.done) { background: repeating-linear-gradient(90deg, var(--warn-stripe) 0 6px, transparent 6px 9px); opacity: 1; }
.plan .steps { padding: 14px 14px 0; }
.plan > .btn { margin: 12px 14px 0; width: calc(100% - 28px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.step { counter-increment: st; padding: 4px 12px 10px; background: var(--surface); border-left: 4px solid var(--line-strong); border-radius: 0 12px 12px 0; }
.step-check { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: center; column-gap: 10px; min-height: 52px; padding: 6px 0; cursor: pointer; font-weight: 700; line-height: 1.4; }
.step-check::before { content: counter(st); grid-column: 1; grid-row: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--paper); color: var(--accent-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.step-check input { grid-column: 3; grid-row: 1; width: 24px; height: 24px; margin: 0; justify-self: end; accent-color: var(--accent-strong); }
.step-check .t { grid-column: 2; grid-row: 1; min-width: 0; }
/* 지금 할 단계만 진보라 면 + 굵은 왼쪽 선(참고 화면 「지금 항목」) */
.step.now { border-left: 6px solid var(--accent-strong); }
.step.now .step-check { background: var(--accent-strong); color: var(--accent-ink); margin: 6px 0 8px; padding: 6px 10px 6px 6px; border-radius: var(--radius-sm); }
.step.now .step-check input { accent-color: var(--accent-ink); }
.step.now .t::after { content: "지금 할 단계"; display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--paper); color: var(--accent-text); font-size: 12px; font-weight: 700; line-height: 22px; vertical-align: 1px; }
.step.done { background: var(--paper); border-left: 4px solid var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); }
.step.done .step-check::before { content: "✓"; background: var(--accent); color: var(--paper); }
.step.done .step-check .t { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent); }
.step.destructive { background: var(--warn-soft); border-left: 4px dashed var(--warn); }
.step.destructive.now { border-left: 6px dashed var(--warn); }
.step.destructive.now .step-check { background: var(--warn); color: var(--warn-ink); }
.step.destructive.now .t::after { color: var(--warn); background: var(--paper); }
.step.destructive.done { background: var(--paper); border-left: 4px solid var(--accent); }
.step-divider { margin: 6px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--warn); color: var(--warn); font-weight: 700; font-size: 14px; }
.step-body { margin: 0 0 6px 50px; font-size: 15px; }
.step.done .step-body { color: var(--ink-2); }
.step-warn { margin: 0 0 6px 50px; padding: 6px 10px; border-left: 4px solid var(--warn); background: var(--paper); font-size: 14px; border-radius: 0 8px 8px 0; }
.step-src { margin: 0 0 0 50px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; column-gap: 12px; align-items: center; }
.step-src a { display: inline-flex; align-items: center; min-height: 44px; }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field > label, .field legend, .lbl { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.field input[type="text"] { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: 8px; background: var(--paper); color: var(--ink); -webkit-appearance: none; appearance: none; }
.help { margin: 0; font-size: 13px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: 1fr; gap: 0 16px; }

/* 3. 문의 */
.warn-line { margin: 0 0 14px; padding: 8px 12px; border-left: 4px solid var(--warn); background: var(--warn-soft); font-size: 14px; border-radius: 0 8px 8px 0; }
.warn-line:empty { display: none; }
.msg { display: block; width: 100%; min-width: 0; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 16px; line-height: 1.55; resize: vertical; }
.btn { min-height: 48px; padding: 10px 18px; border: 0; border-radius: var(--radius-sm); background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; cursor: pointer; width: 100%; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); font-weight: 600; margin-top: 8px; }
.btn.ghost.now { margin: -6px 0 16px; color: var(--accent-text); border-color: var(--accent-strong); }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.08); }
  .chip:hover, .opt:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .hero-nav a:hover { background: var(--on-strong-2); color: var(--accent-strong); }
}

/* 기기별 전체 단계·질문·출처 */
.dev-all { border-top: 1px solid var(--line); }
.dev-all > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.all-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.all-steps strong { display: block; }
.all-steps span { color: var(--ink-2); font-size: 14px; }
.all-steps a { display: inline-flex; align-items: center; min-height: 44px; }
.all-steps li.destructive { padding-left: 8px; border-left: 3px dashed var(--warn); }
.src-list { margin: 0; padding-left: 20px; }
.src-list a { display: inline-flex; align-items: center; min-height: 44px; }
.guide details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.guide summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.guide details.faq p { margin: 0 0 10px; color: var(--ink-2); }
.disclaimer { margin: 8px 0 8px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.asof { margin: 0 0 24px; font-size: 14px; color: var(--ink-2); }
.foot { padding-bottom: 32px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0 0 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* 1279px 까지는 좁은 화면 = 한 칸(갤럭시 Z 폴드5 접힘 360·펼침 1100, 카톡 인앱 360~412·1066 포함). 1280px 부터 두 칸 */
@media (max-width: 1279px) {
  .grid { display: block; }
}
@media (min-width: 600px) and (max-width: 1279px) {
  .opts { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .btn { width: auto; min-width: 220px; }
  .plan > .btn { width: auto; }
}
@media (min-width: 1280px) {
  .wrap, .hero-in, .foot { max-width: 1180px; }
  .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .grid > .col > .panel:first-child { margin-top: 0; }
}
@media (max-width: 380px) {
  .step-body, .step-warn, .step-src { margin-left: 0; }
  .hero-nav span { font-size: 12px; }
}

/* 움직임(PROMPTS 「3. 움직임 넣기」 원칙, 바깥 파일 금지라 GSAP 대신 CSS). 폭은 작게, 위치·크기 + 색을 함께(색만 바뀌는 상태 변화 없음).
 * 1층 지금 단계 강조가 옆에서 밀려 들어옴 · 2층 체크한 단계 번호 칸이 살짝 튀며 ✓ 로 바뀜, 진행 띠 칸이 차오름 · 3층 「지금 할 단계」 표가 느리게 숨 쉼.
 * 움직임 줄이기를 켜면 아래 reduce 블록이 전부 끈다. 처음부터 투명하게 시작하는 내용은 없다. */
@media (prefers-reduced-motion: no-preference) {
  .opt, .chip, .step, .step-check, .track li, .q, .verdict, .hero-nav a, .opt .ico, .chev {
    transition: background-color .22s var(--ease-out), border-color .22s var(--ease-out), color .22s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
  }
  .opt:has(input:checked) .chev { transform: translateX(3px) rotate(-45deg); }
  .plan:not([hidden]) { animation: plan-rise .32s var(--ease-out); }
  .step.now { animation: step-now .32s var(--ease-out); }
  .step.done .step-check::before { animation: step-tick .3s var(--ease-back); }
  .track li.now, .track li.done { animation: seg-fill .32s var(--ease-out); transform-origin: left center; }
  .step.now .t::after { animation: now-breathe 2.4s ease-in-out infinite; }
  @keyframes plan-rise { from { transform: translateY(10px); } to { transform: none; } }
  @keyframes step-now { from { transform: translateX(-8px); } to { transform: none; } }
  @keyframes step-tick { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
  @keyframes seg-fill { from { transform: scaleX(.2); } to { transform: none; } }
  @keyframes now-breathe { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--on-strong-2); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
