/* Wild Fishing 배포 사이트. 색은 앱(MainWindow.xaml)과 같은 계열 */
:root {
  --bg: #16161b;
  --bg-2: #1c1c21;
  --card: #23232a;
  --card-2: #2a2a32;
  --line: #34343d;
  --text: #ececf1;
  --sub: #a3a3b0;
  --muted: #7d7d8a;
  --accent: #3a7bd5;
  --accent-2: #5b95e6;
  --green: #3fb950;
  --red: #e5534b;
  --amber: #d29922;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 var(--font); word-break: keep-all; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd {
  font-family: Consolas, "D2Coding", monospace; font-size: .9em;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 5; background: rgba(22, 22, 27, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 18px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--sub); padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.btn { color: #fff; margin-left: 4px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; border-radius: 10px;
  padding: 13px 22px; font-size: 17px; border: 0; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn svg { width: 20px; height: 20px; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background:
  radial-gradient(900px 420px at 80% 0%, rgba(58, 123, 213, .22), transparent 60%),
  radial-gradient(700px 380px at 0% 100%, rgba(229, 83, 75, .10), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--accent-2); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.hero p.lead { font-size: 19px; color: var(--sub); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.cta-note { color: var(--muted); font-size: 14px; }
.shot { position: relative; justify-self: center; max-width: 440px; width: 100%; }
.shot img { display: block; width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.shot .badge { position: absolute; left: -18px; bottom: 120px; background: var(--red); color: #fff; font-weight: 750; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(229, 83, 75, .4); font-size: 15px; }

/* 구역 */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { max-width: 46em; margin-bottom: 36px; }
.sec-h p { color: var(--sub); font-size: 17px; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--sub); margin: 0; font-size: 15.5px; }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(58, 123, 213, .14); color: var(--accent-2); }
.ico svg { width: 22px; height: 22px; }

.scene { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.scene figcaption { padding: 14px 16px; font-size: 15px; color: var(--sub); }
.scene figcaption b { color: var(--text); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--sub); margin: 0; font-size: 15.5px; }

/* 요금 (worker.js 가 실제 상품으로 채운다) */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.price { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.price .tag { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.price .name { color: var(--sub); font-weight: 600; }
.price .won { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price .won span { font-size: 17px; font-weight: 600; margin-left: 2px; }
.price .per { color: var(--muted); font-size: 14px; }
.free-note { margin-top: 18px; color: var(--sub); }
.free-note b { color: var(--text); }

/* 자주 묻는 질문 */
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.qa summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; position: relative; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--muted); }
details.qa[open] summary::after { content: "−"; }
details.qa > div { padding: 0 18px 16px; color: var(--sub); }
details.qa > div p:last-child { margin-bottom: 0; }

/* 내려받기 */
.dl { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 22px; font-size: 15px; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; }
.hash { font-family: Consolas, monospace; font-size: 12.5px; word-break: break-all; color: var(--sub); }
.req li { margin-bottom: 6px; }

/* 사용 설명서 */
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.toc { position: sticky; top: 84px; align-self: start; }
.toc-h { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; }
.toc a { color: var(--sub); padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.toc a[aria-current] { background: rgba(58, 123, 213, .16); color: var(--text); font-weight: 650; }
.doc { min-width: 0; max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 24px; margin-top: 44px; padding-top: 8px; }
.doc h3 { margin-top: 28px; }
.doc .lead { font-size: 18px; color: var(--sub); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc figure { margin: 22px 0; }
.doc figure img { border-radius: 12px; border: 1px solid var(--line); }
.doc figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--sub); font-weight: 650; background: var(--card); white-space: nowrap; }
.doc td:first-child { white-space: nowrap; font-weight: 600; }
.note { border-radius: 12px; padding: 14px 16px; margin: 18px 0; border: 1px solid var(--line); background: var(--card); }
.note.tip { border-left: 4px solid var(--green); }
.note.warn { border-left: 4px solid var(--amber); }
.note.bad { border-left: 4px solid var(--red); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note b:first-child { display: block; margin-bottom: 4px; }
.menu-path { font-weight: 650; color: var(--text); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); min-width: 0; }
.pager a span { color: var(--muted); font-size: 13px; }
.pager a:hover { background: var(--card); text-decoration: none; }
.pager .next { text-align: right; margin-left: auto; }
.diagram { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fade-bottom { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }

/* 꼬리말 */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1fr 2fr; gap: 20px 40px; }
.foot-brand p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; font-size: 15px; }
.foot-nav a { color: var(--sub); }
.foot-nav span { color: var(--muted); }
.fine { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.cta-band { text-align: center; }
.cta-band .cta { justify-content: center; }
.center { text-align: center; }

@media (max-width: 900px) {
  .hero-in, .dl { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .shot { max-width: 360px; }
  .shot .badge { left: -6px; }
  .g3, .steps { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .toc { position: static; }
  .toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); font-size: 14px; padding: 5px 10px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .g2 { grid-template-columns: 1fr; }
  .top-in { padding: 8px 0; min-height: 56px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .sec { padding: 52px 0; }
  .btn { width: 100%; }
  .nav a.btn, .dl-card .btn.inline { width: auto; }
  .pager { flex-direction: column; }
  .pager .next { margin-left: 0; }
}

/* 설명서 안의 앱 스크린샷: 넓은 화면에서는 420px, 좁은 화면에서는 화면 폭에 맞춘다 */
img.narrow { display: block; width: 100%; max-width: min(100%, 420px); height: auto; }
