/*
 * S/W 프로그램 소개 페이지(sw_store/info) 전용 디자인 CSS.
 *
 * 예전에는 이 CSS를 각 프로그램 소개 페이지("페이지 관리")의 content 안에 <style> 태그로
 * 직접 넣어뒀는데, TinyMCE 에디터가 저장할 때 <style>/<link> 태그를 body 콘텐츠에서
 * 유효하지 않은 요소로 보고 통째로 제거해버려서, 관리자가 텍스트를 한 글자만 고쳐도
 * 디자인이 전부 날아가는 문제가 있었다. 그래서 CSS를 DB content에서 완전히 분리해
 * 정적 파일로 빼고, sw_store/info.php 에서 <link>로 직접 불러오도록 했다.
 * (관리자는 이제 각 페이지의 class="apm-landing/skitch-landing/yt-landing" 래퍼와
 * 그 안의 구조만 건드리지 않으면, 본문 텍스트를 자유롭게 수정해도 디자인이 유지된다.)
 */

/* ===================== APM Control ===================== */
.apm-landing {
  --al-ground: #F3F5F8; --al-surface: #FFFFFF; --al-surface-2: #E9EDF3;
  --al-ink: #0F1D30; --al-muted: #56657A; --al-line: #D6DDE7;
  --al-navy: #17324F; --al-navy-ink: #FFFFFF;
  --al-amber: #E9A62B; --al-amber-ink: #3A2600; --al-amber-soft: #FBEFD6;
  --al-ok: #1E8A4C; --al-stop: #B3372E;
  --al-display: "IBM Plex Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;
  --al-mono: "IBM Plex Mono",ui-monospace,Consolas,"D2Coding",monospace;
  font-family: "Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;
  color: var(--al-ink); word-break: keep-all;
}
@media (prefers-color-scheme: dark) {
  .apm-landing {
    --al-ground:#0B1422; --al-surface:#111D31; --al-surface-2:#17263D;
    --al-ink:#E6ECF4; --al-muted:#97A6BA; --al-line:#253650;
    --al-navy:#9DB9DB; --al-navy-ink:#0B1422;
    --al-amber:#F0B447; --al-amber-ink:#2A1B00; --al-amber-soft:#2E2413;
    --al-ok:#4CC47F; --al-stop:#EE7D72;
  }
}
.apm-landing * { box-sizing: border-box; }
.apm-landing h3, .apm-landing h4 { font-family: var(--al-display); font-weight:700; }
.apm-landing .eyebrow { font-family: var(--al-mono); font-size:12.5px; letter-spacing:.04em; color:var(--al-muted); display:flex; flex-wrap:wrap; gap:6px 14px; margin-bottom:6px; }
.apm-landing .eyebrow span::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--al-amber); margin-right:6px; vertical-align:1px; }
.apm-landing .al-lede { color:var(--al-muted); font-size:15.5px; }
.apm-landing .al-section { margin-top:34px; padding-top:26px; border-top:1px solid var(--al-line); }
.apm-landing .al-kicker { font-family: var(--al-mono); font-size:12.5px; color:var(--al-muted); letter-spacing:.04em; }
.apm-landing .spec { margin-top:14px; overflow-x:auto; }
.apm-landing .spec table { width:100%; border-collapse:collapse; min-width:480px; }
.apm-landing .spec th, .apm-landing .spec td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--al-line); vertical-align:top; font-size:14.5px; }
.apm-landing .spec thead th { font-family:var(--al-mono); font-weight:500; font-size:12px; color:var(--al-muted); letter-spacing:.04em; border-bottom-color:var(--al-ink); }
.apm-landing .spec td:first-child { font-family:var(--al-display); font-weight:600; white-space:nowrap; }
.apm-landing .spec td:nth-child(2) { font-family:var(--al-mono); white-space:nowrap; }
.apm-landing .spec td:last-child { color:var(--al-muted); }
.apm-landing .life { margin-top:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid var(--al-line); border-radius:12px; background:var(--al-surface); overflow:hidden; }
.apm-landing .stage { padding:18px 16px 20px; border-right:1px solid var(--al-line); border-bottom:1px solid var(--al-line); margin:0 -1px -1px 0; }
.apm-landing .stage .when { font-family:var(--al-mono); font-size:12px; color:var(--al-muted); display:flex; align-items:center; gap:6px; }
.apm-landing .stage .when b { font-weight:500; color:var(--al-amber-ink); background:var(--al-amber); border-radius:4px; padding:0 6px; }
.apm-landing .stage h4 { font-size:16px; margin:10px 0 0; }
.apm-landing .stage ul { margin:10px 0 0; padding:0; list-style:none; display:grid; gap:8px; font-size:13.5px; }
.apm-landing .stage li { padding-left:14px; position:relative; color:var(--al-muted); }
.apm-landing .stage li::before { content:""; position:absolute; left:0; top:.7em; width:6px; height:2px; background:var(--al-muted); }
@media (max-width:820px) { .apm-landing .life { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .apm-landing .life { grid-template-columns:1fr; } }
.apm-landing .fact { margin-top:20px; display:flex; flex-wrap:wrap; gap:18px; align-items:center; background:var(--al-navy); color:var(--al-navy-ink); border-radius:14px; padding:20px 24px; }
.apm-landing .fact .num { font-family:var(--al-mono); font-size:26px; font-weight:500; white-space:nowrap; }
.apm-landing .fact .num s { opacity:.6; }
.apm-landing .fact p { margin:0; font-size:14px; opacity:.92; }
.apm-landing .upd-table { overflow-x:auto; margin-top:14px; }
.apm-landing .upd-table table { width:100%; border-collapse:collapse; min-width:420px; background:var(--al-surface); border-radius:10px; overflow:hidden; box-shadow:0 1px 2px rgba(15,29,48,.06),0 8px 20px rgba(15,29,48,.08); }
.apm-landing .upd-table th, .apm-landing .upd-table td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--al-line); font-size:14px; }
.apm-landing .upd-table tr:last-child td { border-bottom:0; }
.apm-landing .upd-table thead th { font-family:var(--al-mono); font-weight:500; font-size:12px; color:var(--al-muted); background:var(--al-surface-2); }
.apm-landing .pill { display:inline-block; font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; margin-right:6px; }
.apm-landing .pill.keep { background: rgba(30,138,76,.15); color:var(--al-ok); }
.apm-landing .pill.new { background:var(--al-amber-soft); color:var(--al-ink); }
.apm-landing .steps { display:grid; gap:0; counter-reset:s; margin:14px 0 0; padding:0; list-style:none; }
.apm-landing .steps li { counter-increment:s; display:grid; grid-template-columns:30px 1fr; gap:10px; padding-block:10px; border-bottom:1px dashed var(--al-line); font-size:14px; }
.apm-landing .steps li:last-child { border-bottom:0; }
.apm-landing .steps li::before { content:counter(s); font-family:var(--al-mono); font-weight:500; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--al-navy); color:var(--al-navy); display:grid; place-items:center; font-size:12px; }
.apm-landing .steps b { font-family:var(--al-display); }
.apm-landing .steps span { color:var(--al-muted); display:block; font-size:13px; margin-top:2px; }
.apm-landing .fit { margin-top:16px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.apm-landing .fit > div { background:var(--al-surface); border:1px solid var(--al-line); border-radius:12px; padding:18px 20px; }
.apm-landing .fit h4 { font-size:15.5px; margin:0; }
.apm-landing .fit ul { margin:10px 0 0; padding-left:18px; display:grid; gap:6px; font-size:14px; }
.apm-landing .fit .no h4 { color:var(--al-muted); }
@media (max-width:680px) { .apm-landing .fit { grid-template-columns:1fr; } }
.apm-landing .req dl { display:grid; grid-template-columns:max-content 1fr; gap:10px 18px; margin:14px 0 0; font-size:14px; }
.apm-landing .req dt { color:var(--al-muted); }
.apm-landing .req dd { margin:0; }
.apm-landing .faq { margin-top:12px; border-top:1px solid var(--al-line); max-width:820px; }
.apm-landing .faq details { border-bottom:1px solid var(--al-line); }
.apm-landing .faq summary { cursor:pointer; list-style:none; padding:14px 32px 14px 0; font-family:var(--al-display); font-weight:600; font-size:15px; position:relative; }
.apm-landing .faq summary::-webkit-details-marker { display:none; }
.apm-landing .faq summary::after { content:"+"; position:absolute; right:2px; top:11px; font-family:var(--al-mono); font-size:18px; color:var(--al-muted); transition:transform .2s ease; }
.apm-landing .faq details[open] summary::after { transform:rotate(45deg); }
.apm-landing .faq details p { padding-bottom:16px; margin:0; color:var(--al-muted); max-width:44em; font-size:14px; }

/* ===================== SkitchClone ===================== */
.skitch-landing {
  --sk-ground:#F5F4F7; --sk-surface:#FFFFFF; --sk-ink:#17151B; --sk-muted:#625D6B; --sk-line:#E2DEE7;
  --sk-accent:#E60064; --sk-accent-ink:#FFFFFF; --sk-accent-soft:#FCE4EF;
  --sk-panel:#141419; --sk-panel-ink:#F2F0F5; --sk-panel-muted:#C9C5CF;
  --sk-key-top:#FFFFFF; --sk-key-side:#CFCAD6; --sk-key-ink:#17151B;
  --sk-f-display:"Do Hyeon","IBM Plex Sans KR","Malgun Gothic",sans-serif;
  --sk-f-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  font-family:"IBM Plex Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;
  color: var(--sk-ink); word-break: keep-all;
}
@media (prefers-color-scheme: dark) {
  .skitch-landing {
    --sk-ground:#0F0E12; --sk-surface:#19171E; --sk-ink:#F1EEF4; --sk-muted:#A49EAE; --sk-line:#2C2934;
    --sk-accent:#FF3D8B; --sk-accent-ink:#1A0710; --sk-accent-soft:#3A1426;
    --sk-panel:#0A0A0D; --sk-panel-ink:#F1EEF4; --sk-panel-muted:#C9C5CF;
    --sk-key-top:#2A2731; --sk-key-side:#121016; --sk-key-ink:#F1EEF4;
  }
}
.skitch-landing * { box-sizing: border-box; }
.skitch-landing h3, .skitch-landing h4 { font-family: var(--sk-f-display); font-weight:400; }
.skitch-landing .eyebrow { font-family: var(--sk-f-mono); font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--sk-accent); }
.skitch-landing .al-lede { color:var(--sk-muted); font-size:15.5px; }
.skitch-landing .al-section { margin-top:34px; padding-top:26px; border-top:1px solid var(--sk-line); }
.skitch-landing kbd, .skitch-landing .key {
  font-family: var(--sk-f-mono); font-weight:600; font-size:.82em;
  display:inline-flex; align-items:center; justify-content:center; min-width:1.9em; height:1.9em; padding:0 .5em;
  border-radius:6px; background:var(--sk-key-top); color:var(--sk-key-ink); border:1px solid var(--sk-key-side);
  box-shadow:0 2px 0 var(--sk-key-side); line-height:1; white-space:nowrap; vertical-align:.1em;
}
.skitch-landing .combo { display:inline-flex; gap:4px; align-items:center; flex-wrap:wrap; }
.skitch-landing .combo .plus { color:var(--sk-muted); font-size:.8em; }
.skitch-landing .modes { border-top:1px solid var(--sk-line); margin-top:14px; }
.skitch-landing .mode { display:grid; grid-template-columns:200px minmax(0,1fr) minmax(0,1.2fr); gap:8px 24px; padding-block:16px; border-bottom:1px solid var(--sk-line); align-items:baseline; }
.skitch-landing .mode h4 { font-size:17px; font-weight:700; font-family:"IBM Plex Sans KR",sans-serif; }
.skitch-landing .mode p { color:var(--sk-muted); font-size:14px; margin:0; }
@media (max-width:760px) { .skitch-landing .mode { grid-template-columns:1fr; } }
.skitch-landing .tools { margin-top:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--sk-line); border:1px solid var(--sk-line); border-radius:14px; overflow:hidden; }
.skitch-landing .tool { background:var(--sk-surface); padding:16px 14px 18px; display:grid; gap:6px; align-content:start; }
.skitch-landing .tool-head { display:flex; align-items:center; gap:8px; }
.skitch-landing .tool-head h4 { font-size:15px; font-weight:700; font-family:"IBM Plex Sans KR",sans-serif; }
.skitch-landing .tool p { color:var(--sk-muted); font-size:13.5px; line-height:1.5; margin:0; }
@media (max-width:820px) { .skitch-landing .tools { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) { .skitch-landing .tools { grid-template-columns:1fr; } }
.skitch-landing .extras { margin-top:14px; display:flex; flex-wrap:wrap; gap:10px 24px; color:var(--sk-muted); font-size:14px; }
.skitch-landing .points { display:grid; gap:12px; margin:14px 0 0; padding:0; list-style:none; }
.skitch-landing .points li { display:grid; grid-template-columns:16px minmax(0,1fr); gap:10px; font-size:14.5px; }
.skitch-landing .points li::before { content:""; width:9px; height:9px; margin-top:.5em; border:2px solid var(--sk-accent); border-radius:50%; }
.skitch-landing .points b { font-weight:700; }
.skitch-landing .helppanel { margin-top:16px; background:var(--sk-panel); color:var(--sk-panel-ink); border:2px solid var(--sk-accent); padding:22px clamp(16px,3vw,28px) 26px; border-radius:12px; display:grid; gap:18px; }
.skitch-landing .helppanel-title { font-family:"IBM Plex Sans KR",sans-serif; font-weight:700; font-size:16px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.3); }
.skitch-landing .helpcols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 28px; }
.skitch-landing .helpcols h4 { color:#FF4D93; font-size:14px; font-weight:700; margin:0 0 8px; font-family:"IBM Plex Sans KR",sans-serif; }
.skitch-landing .helpcols dl { margin:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 12px; font-size:13.5px; align-items:center; }
.skitch-landing .helpcols dt { color:var(--sk-panel-ink); }
.skitch-landing .helpcols dd { margin:0; color:var(--sk-panel-muted); }
.skitch-landing .helppanel .key { background:#2A2731; color:#F2F0F5; border-color:#3E3A47; box-shadow:0 2px 0 #06050A; font-size:12px; }
@media (max-width:820px) { .skitch-landing .helpcols { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .skitch-landing .helpcols { grid-template-columns:1fr; } }
.skitch-landing .steps { counter-reset:sk-step; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:14px 0 0; padding:0; list-style:none; }
.skitch-landing .steps li { counter-increment:sk-step; display:grid; gap:6px; align-content:start; padding-top:14px; border-top:2px solid var(--sk-ink); }
.skitch-landing .steps li::before { content:counter(sk-step); font-family:var(--sk-f-display); font-size:28px; line-height:1; color:var(--sk-accent); }
.skitch-landing .steps h4 { font-size:15.5px; font-weight:700; font-family:"IBM Plex Sans KR",sans-serif; margin:0; }
.skitch-landing .steps p { color:var(--sk-muted); font-size:13.5px; margin:0; }
@media (max-width:820px) { .skitch-landing .steps { grid-template-columns:1fr 1fr; } }
@media (max-width:480px) { .skitch-landing .steps { grid-template-columns:1fr; } }
.skitch-landing .reqs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; margin:14px 0 0; padding:0; }
.skitch-landing .reqs div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:14px; padding-block:12px; border-bottom:1px solid var(--sk-line); }
.skitch-landing .reqs dt { color:var(--sk-muted); font-size:14px; }
.skitch-landing .reqs dd { margin:0; font-size:14px; }
@media (max-width:680px) { .skitch-landing .reqs { grid-template-columns:1fr; } .skitch-landing .reqs div { grid-template-columns:1fr; gap:2px; } }
.skitch-landing .faq { margin-top:12px; border-top:1px solid var(--sk-line); max-width:820px; }
.skitch-landing .faq details { border-bottom:1px solid var(--sk-line); }
.skitch-landing .faq summary { cursor:pointer; list-style:none; padding:14px 32px 14px 0; font-weight:700; font-size:15px; position:relative; }
.skitch-landing .faq summary::-webkit-details-marker { display:none; }
.skitch-landing .faq summary::after { content:"+"; position:absolute; right:2px; top:11px; font-family:var(--sk-f-mono); font-size:18px; color:var(--sk-accent); }
.skitch-landing .faq details[open] summary::after { content:"\2212"; }
.skitch-landing .faq details p { padding:0 0 16px; margin:0; color:var(--sk-muted); max-width:70ch; font-size:14px; }

/* ===================== YouTube 다운로더 ===================== */
.yt-landing {
  --yt-ground:#F2F4F3; --yt-surface:#FFFFFF; --yt-ink:#14201C; --yt-ink-soft:#4A5953; --yt-line:#D5DCD9;
  --yt-accent:#0E6E61; --yt-accent-ink:#FFFFFF; --yt-signal:#C98300;
  --yt-sans:"IBM Plex Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;
  --yt-mono:"Nanum Gothic Coding","D2Coding",Consolas,monospace;
  font-family: var(--yt-sans); color: var(--yt-ink); word-break: keep-all;
}
@media (prefers-color-scheme: dark) {
  .yt-landing {
    --yt-ground:#101815; --yt-surface:#17221E; --yt-ink:#E4ECE8; --yt-ink-soft:#9AABA4; --yt-line:#2B3A34;
    --yt-accent:#3FB8A4; --yt-accent-ink:#08201B; --yt-signal:#F0B43C;
  }
}
.yt-landing * { box-sizing: border-box; }
.yt-landing h3, .yt-landing h4 { font-family: var(--yt-sans); font-weight:700; }
.yt-landing .eyebrow { font-family: var(--yt-mono); font-size:13px; color:var(--yt-accent); letter-spacing:.04em; }
.yt-landing .al-lede { color:var(--yt-ink-soft); font-size:15.5px; }
.yt-landing .al-section { margin-top:34px; padding-top:26px; border-top:1px solid var(--yt-line); }
.yt-landing .mono { font-family: var(--yt-mono); }
.yt-landing .ways { margin-top:16px; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.yt-landing .way { background:var(--yt-surface); border:1px solid var(--yt-line); border-radius:10px; padding:18px 20px; display:grid; gap:8px; align-content:start; }
.yt-landing .way .btn-label { font-family:var(--yt-mono); font-size:12.5px; justify-self:start; border:1px solid var(--yt-line); background:var(--yt-ground); border-radius:4px; padding:3px 9px; }
.yt-landing .way h4 { font-size:16.5px; }
.yt-landing .way p { color:var(--yt-ink-soft); font-size:14px; margin:0; }
@media (max-width:820px) { .yt-landing .ways { grid-template-columns:1fr; } }
.yt-landing .specs { margin-top:16px; display:grid; grid-template-columns:repeat(2,1fr); gap:0 40px; padding:0; }
.yt-landing .spec { display:grid; grid-template-columns:128px 1fr; gap:14px; padding-block:14px; border-bottom:1px solid var(--yt-line); }
.yt-landing .spec dt { font-weight:700; font-size:14.5px; }
.yt-landing .spec dd { margin:0; color:var(--yt-ink-soft); font-size:14px; }
@media (max-width:760px) { .yt-landing .specs { grid-template-columns:1fr; } .yt-landing .spec { grid-template-columns:1fr; gap:2px; } }
.yt-landing .steps { margin-top:16px; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; counter-reset:yts; list-style:none; padding:0; }
.yt-landing .steps li { counter-increment:yts; display:grid; gap:6px; align-content:start; padding-top:14px; border-top:3px solid var(--yt-accent); }
.yt-landing .steps li::before { content:"STEP " counter(yts); font-family:var(--yt-mono); font-size:11.5px; color:var(--yt-accent); letter-spacing:.05em; }
.yt-landing .steps h4 { font-size:15.5px; }
.yt-landing .steps p { color:var(--yt-ink-soft); font-size:13.5px; margin:0; }
@media (max-width:820px) { .yt-landing .steps { grid-template-columns:1fr 1fr; } }
@media (max-width:480px) { .yt-landing .steps { grid-template-columns:1fr; } }
.yt-landing .license-facts { margin-top:20px; display:flex; flex-wrap:wrap; gap:12px; }
.yt-landing .fact { background:var(--yt-surface); border:1px solid var(--yt-line); border-radius:8px; padding:12px 16px; display:grid; gap:2px; flex:1 1 180px; }
.yt-landing .fact strong { font-size:19px; font-variant-numeric:tabular-nums; }
.yt-landing .fact span { color:var(--yt-ink-soft); font-size:13.5px; }
.yt-landing .table-wrap { overflow-x:auto; margin-top:14px; }
.yt-landing table { width:100%; border-collapse:collapse; font-size:14.5px; }
.yt-landing th, .yt-landing td { text-align:left; padding:11px 12px; border-bottom:1px solid var(--yt-line); vertical-align:top; }
.yt-landing th { width:160px; font-weight:500; color:var(--yt-ink-soft); }
.yt-landing .faq { margin-top:12px; max-width:820px; }
.yt-landing details { border-bottom:1px solid var(--yt-line); padding-block:14px; }
.yt-landing summary { font-weight:700; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; font-size:15px; }
.yt-landing summary::-webkit-details-marker { display:none; }
.yt-landing summary::after { content:"+"; font-family:var(--yt-mono); color:var(--yt-accent); }
.yt-landing details[open] summary::after { content:"\2212"; }
.yt-landing details p { margin-top:8px; color:var(--yt-ink-soft); max-width:70ch; font-size:14px; }
.yt-landing .notice { margin-top:16px; background:var(--yt-surface); border:1px solid var(--yt-line); border-left:4px solid var(--yt-signal); border-radius:6px; padding:18px 20px; display:grid; gap:8px; font-size:14.5px; }
.yt-landing .notice strong { font-size:15.5px; }
.yt-landing .notice p { color:var(--yt-ink-soft); margin:0; }
