/* 개발 사이트 시안: A2 토큰·바·메뉴·시트·은하를 그대로 쓰고, 개발 쪽 내용만 더한다.
   노드 문법(포트 점·흐르는 점선·유리 카드)은 홍길동 기록 그래프·교재당 그래프와 같은 말투. */
.dev { --g-out: #4ade80; --card: rgba(18, 20, 26, .78); }
.dev main .frame *, .dev main .task, .dev main .result-cta, .dev main .result-cta * { text-shadow: none; }

/* ---------- 1. 첫 화면 ---------- */
.dev-hero { align-items: center; padding-bottom: 48px; flex-direction: column; justify-content: center; gap: 40px; }
.dev-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: end; }
.dev-hero .kicker { font-family: var(--f-ko); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-bottom: 22px; }
.dev-hero h1 { white-space: normal; max-width: 9.5em; }
.dev .hero h1 .lit { color: var(--biolume-hover); font-weight: 500; }
.dev-hero .lede { margin-top: 22px; max-width: 27em; }
.tasks { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 34em; }
.task {
  position: relative; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15.5px; color: var(--ink-2); background: rgba(21, 23, 29, .7);
  border: 1px solid var(--rule-strong); transition: border-color .3s var(--ease), color .3s, background .3s;
}
.task:hover { border-color: var(--rule-hover); color: var(--ink); }
.task[aria-checked="true"] { color: var(--ink); border-color: rgba(91, 156, 255, .8); background: rgba(49, 130, 246, .16); box-shadow: inset 0 0 0 1px rgba(91, 156, 255, .25); }
.task[aria-checked="true"]::before { content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ember); }
.task:focus-visible { outline: 2px solid var(--biolume-hover); outline-offset: 3px; }
.tasks-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* 결과 카드: 유리 노드 하나. 왼쪽 포트 점에서 고른 일이 들어온다 */
.result {
  position: relative; margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: end;
  width: min(100%, 540px); justify-self: end;
  padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.result-media { position: relative; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--rule-strong); aspect-ratio: 9 / 16; }
.result-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-media .badge { top: 10px; right: 10px; font-size: 12px; padding: 7px 10px; }
.result-media .vid-toggle { left: 8px; bottom: 8px; }
.node-port { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(34, 229, 255, .14); }
.node-port.in { left: -24px; top: 50%; margin-top: -5px; }
.result-copy { padding-bottom: 6px; }
.result-pick { font-size: 13.5px; color: var(--ink-3); }
.result-pick b { color: var(--ink); font-weight: 600; }
.result-line { margin-top: 10px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.result-cta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--abyss); font-weight: 600; font-size: 15.5px; transition: background .3s, transform .3s var(--ease);
}
.result-cta:hover { background: #fff; transform: translateY(-1px); }
.result-svc { display: flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; color: var(--biolume); }
.result-svc:hover { color: var(--biolume-hover); }
.result.swap .result-copy { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.proof { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.result-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.proof b { color: var(--ink); font-weight: 600; }

/* ---------- 공통 머리 ---------- */
.dev .band h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.24; letter-spacing: -0.025em; font-weight: 300; }
.dev .sub { margin-top: 18px; max-width: 40em; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 2. 이렇게 바뀝니다 ---------- */
.flows { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 28px; }
.flow-row { display: grid; grid-template-columns: minmax(0, .8fr) 110px minmax(0, 1.2fr); align-items: center; }
.fr-now { padding: 20px 22px; border-radius: 14px; border: 1px dashed var(--rule-hover); background: rgba(15, 17, 22, .7); }
.fr-tag { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.fr-now p:last-child { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.fr-wire { width: 100%; height: 20px; overflow: visible; }
.fr-wire path { fill: none; stroke: rgba(91, 156, 255, .4); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.fr-wire .flow-dash { stroke: var(--biolume); stroke-width: 2; stroke-dasharray: 2 14; stroke-linecap: round; }
.live .fr-wire .flow-dash { animation: current 2.4s linear infinite; }
.fr-after { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 18px; align-items: center; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid rgba(91, 156, 255, .35); }
.fr-after img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px; background: #0b0d12; }
.fr-after figcaption { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.fr-demo { display: inline-block; margin-bottom: 8px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--rule-hover); border-radius: 999px; padding: 3px 9px; }
.fr-after figcaption b { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink); font-weight: 600; }

/* ---------- 3. 맡길 일 ---------- */
.svc-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule-strong); transition: border-color .3s; }
.svc-card:hover { border-color: rgba(91, 156, 255, .6); }
.svc-k { font-family: var(--f-latin); font-size: 13px; letter-spacing: .06em; color: var(--biolume-hover); }
.svc-card h3 { font-size: 20px; font-weight: 600; }
.svc-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.svc-card .svc-eg { font-size: 13.5px; color: var(--ink-3); }
.svc-card a { margin-top: auto; padding-top: 8px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--biolume); }
.svc-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card a:focus-visible { outline: none; }
.svc-card:has(a:focus-visible) { outline: 2px solid var(--biolume-hover); outline-offset: 3px; }

/* ---------- 4. 데모 ---------- */
.demo-row { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, .62fr)) repeat(2, minmax(0, 1.2fr)); gap: 14px; align-items: end; }
.demo a { display: grid; gap: 6px; color: var(--ink); }
.demo img { width: 100%; height: auto; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--rule-strong); background: #0b0d12; transition: border-color .3s, transform .4s var(--ease); }
.demo.wide img { aspect-ratio: 16 / 13; }
.demo a:hover img { border-color: rgba(91, 156, 255, .7); transform: translateY(-3px); }
.demo b { margin-top: 6px; font-size: 16px; font-weight: 600; }
.demo small { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* ---------- 5. 사례·후기 ---------- */
.case-list { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--rule-strong); }
.case-who { font-size: 13.5px; color: var(--ink-3); }
.case-who span { color: var(--g-out); }
.case h3 { margin-top: 8px; font-size: 21px; font-weight: 600; }
.case dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.case dt { font-size: 13px; color: var(--biolume-hover); padding-top: 3px; white-space: nowrap; }
.case dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.reviews { margin-top: 56px; }
.reviews-head { font-size: 16px; color: var(--ink); }
.reviews ul { list-style: none; margin: 20px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reviews li { padding: 18px 20px; border-left: 2px solid rgba(91, 156, 255, .6); background: rgba(15, 17, 22, .6); border-radius: 0 12px 12px 0; }
.reviews blockquote { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.reviews cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--ink-3); }

/* ---------- 6. 만드는 사람·진행 방식 ---------- */
.maker-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.maker-grid > div p { margin-top: 18px; font-size: 16.5px; line-height: 1.8; color: var(--ink-2); max-width: 30em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--biolume), rgba(74, 222, 128, .8)); opacity: .6; }
.steps li { position: relative; padding: 0 0 22px 40px; display: grid; gap: 4px; }
.steps li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--abyss); border: 1.5px solid var(--biolume); }
.steps li:last-child::before { border-color: var(--g-out); background: var(--g-out); }
.steps b { font-size: 17px; font-weight: 600; }
.steps span { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 7. 끝 ---------- */
.end-sub { margin-top: 18px; font-size: 15.5px; color: var(--ink-3); }

/* ---------- 레시 자리: 카톡 문의 ---------- */
.kakao-btn {
  position: fixed; z-index: var(--z-fab);
  right: calc(40px + env(safe-area-inset-right)); bottom: calc(44px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #fee500; color: #191919; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 10px 30px -8px #000; transition: transform .4s var(--ease);
}
.kakao-btn svg { width: 22px; height: 22px; fill: #191919; }
.kakao-btn:hover { transform: translateY(-2px); }
.kakao-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- 폭 ---------- */
@media (max-width: 1100px) {
  .demo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo.wide { grid-column: span 3; }
  .demo.wide img { aspect-ratio: 16 / 8; }
}
@media (max-width: 979px) {
  .dev-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .dev-hero { padding-top: 38svh; }
  .result { max-width: 620px; }
  .node-port.in { display: none; }
  .flow-row { grid-template-columns: 1fr; }
  .fr-wire { width: 20px; height: 44px; margin-left: 24px; transform: rotate(90deg); transform-origin: 10px 10px; }
  .svc-grid, .case-list, .reviews ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maker-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 639px) {
  .dev-hero { padding-top: 42svh; gap: 28px; }
  .dev-hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .task { font-size: 15px; padding: 0 15px; }
  .result { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; gap: 0 16px; padding: 12px; align-items: start; }
  .result-copy { display: contents; }
  .result-media { grid-row: 1 / 5; }
  .result-pick, .result-line, .result-svc, .result-note { grid-column: 2; }
  .result-cta { grid-column: 1 / -1; grid-row: 5; justify-content: center; margin-top: 14px; }
  .result-media .vid-toggle b { display: none; }
  .result-media .vid-toggle { padding: 0; min-width: 44px; justify-content: center; }
  .result-line { font-size: 16.5px; }
  .result-cta { padding: 0 16px; font-size: 14.5px; }
  .fr-after { grid-template-columns: 1fr; }
  .svc-grid, .case-list, .reviews ul { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .demo small { display: none; }
  .demo b { font-size: 14px; }
  /* 휴대폰: 글자를 가리지 않게 동그란 아이콘 버튼으로 작게, 바닥은 버튼만큼 비워 둔다 */
  .kakao-btn { right: calc(16px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; }
  .kakao-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kakao-btn svg { width: 24px; height: 24px; }
  .foot { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .fr-wire .flow-dash { animation: none !important; } .result.swap .result-copy { animation: none; } }
