/* (주)와파 홈페이지 공통 스타일 */
:root {
  --ink: #15212C;
  --muted: #4A5866;
  --line: #DDE2E6;
  --ground: #F5F6F3;
  --surface: #FFFFFF;
  --accent: #1D5FD1;
  --accent-dark: #15479E;
  --label: #A84A0C;
  --on-dark-muted: #D3DAE1;
  --on-dark-label: #9CC3FF;
  --radius: 8px;
  --head: 'IBM Plex Sans KR', 'Noto Sans KR', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  word-break: keep-all;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* 머리글 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.logo b { font-family: var(--head); font-size: 24px; letter-spacing: 0.04em; }
.logo span { font-size: 14px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 6px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid #6B7C8C; color: #fff; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.btn-remote { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); }
.btn-remote:hover { background: #E6EDF8; color: var(--ink); }

.label { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--label); }
.dark .label { color: var(--on-dark-label); }
.section { padding: 80px 0; }
.section h2 { margin: 0 0 28px; font-size: 34px; }
.dark { background: var(--ink); color: #fff; }
.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }

/* 홈 */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); }
.hero p { margin: 0; font-size: 18px; color: var(--on-dark-muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero figure { flex: 1 1 460px; min-width: 0; margin: 0; }
.hero figure img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); display: block; }
.hero figcaption { margin-top: 8px; font-size: 13px; color: #AEB9C4; }

.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--head); font-size: 32px; color: var(--accent); }
.stat span { font-size: 15px; color: var(--muted); }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 260px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card b { font-family: var(--head); font-size: 22px; }
.card span { font-size: 15px; color: var(--muted); }
.card .more { font-size: 14px; font-weight: 700; color: var(--accent); }
.card.wide { flex-basis: 360px; padding: 32px; }
.card h3 { margin: 0; font-size: 24px; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 15px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.books { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 12px; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list a { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list a:last-child { border-bottom: 0; }
.list a:hover { background: #F0F4FB; }
.list time { width: 110px; color: var(--muted); font-size: 15px; }
.list .t { flex: 1 1 300px; font-weight: 500; }
.list .v { color: var(--muted); font-size: 14px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.head-row h2 { margin: 0; }

.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.timeline li { flex: 1 1 300px; min-width: 0; border-top: 2px solid var(--accent); padding-top: 16px; }
.timeline b { font-family: var(--head); font-size: 22px; }
.timeline p { margin: 8px 0 0; color: var(--on-dark-muted); font-size: 15px; }

/* 교육·소식 */
.page-head { background: var(--ink); color: #fff; }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { margin: 0; font-size: 40px; }
.page-head p { margin: 12px 0 0; color: var(--on-dark-muted); }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.years a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; }
.years a:hover { border-color: var(--accent); }
.year-block { margin-bottom: 48px; scroll-margin-top: 16px; }
.year-block h2 { font-size: 26px; margin: 0 0 16px; }

.article { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.article h1 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.body { font-size: 17px; overflow-wrap: anywhere; }
.body img { display: block; margin: 16px 0; border-radius: 4px; }
.body p { margin: 0 0 4px; }
.body table { border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; max-width: 100%; }
.body td, .body th { border: 1px solid var(--line); padding: 8px 10px; font-size: 15px; }
.files { margin-top: 40px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.files h2 { font-size: 18px; margin: 0 0 8px; }
.prevnext { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.prevnext a { flex: 1 1 260px; text-decoration: none; padding: 12px 0; }
.prevnext small { display: block; color: var(--muted); }

/* 문의 */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-info a { color: var(--ink); text-decoration: none; padding: 4px 0; font-size: 16px; }
.form { flex: 1 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.form label { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form label.full, .form .full { flex: 1 1 100%; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid #B9C2CA; border-radius: 6px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; }
.form .status { margin: 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; }

/* 바닥글 */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); padding: 4px 0; }

/* 내용 페이지 */
.crumb { margin: 0 0 8px; font-size: 14px; }
.crumb a { color: var(--on-dark-label); }
.tbl-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 14px; caption-side: top; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: #EEF1F4; font-weight: 700; white-space: nowrap; }
.tbl tbody th { font-weight: 500; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.group th { background: #F6F8FA; font-weight: 700; color: var(--muted); font-size: 14px; }
.compare td { text-align: center; color: var(--accent); font-weight: 700; width: 64px; }
.compare thead th:not(:first-child) { text-align: center; }
.compare thead a { color: var(--ink); }
.pkg { padding-top: 56px; scroll-margin-top: 16px; }
.pkg > h2 { margin: 0 0 12px; font-size: 30px; }
.pkg-intro { max-width: 860px; color: var(--muted); margin-bottom: 24px; }
.feature { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature-text { flex: 1 1 420px; min-width: 0; }
.feature-text h3 { margin: 0 0 8px; font-size: 19px; }
.feature-text p { margin: 0 0 8px; }
.feature-text .video a { font-weight: 700; }
.feature-img { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-img img { border: 1px solid var(--line); border-radius: 4px; display: block; }
.feature-img .cover { display: block; width: 180px; }
.feature-img .cover img { border: 0; }
.top { text-align: right; font-size: 14px; }
.cards.cols2 > .card { flex-basis: 480px; }   /* 넓은 화면 2열: 설명이 한두 줄에 들어가게 */
.funcs { margin: 4px 0 0; }
.funcs dt { font-weight: 700; margin-top: 10px; }
.funcs dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 4px; display: block; }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; }
.history { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 32px; }
.history > li { border-top: 2px solid var(--accent); padding-top: 12px; }
.history b { font-family: var(--head); font-size: 22px; }
.history ul { margin: 8px 0 0; padding-left: 18px; color: var(--on-dark-muted); font-size: 15px; }
.checks { padding-left: 0; list-style: none; }
.checks li { padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: "?"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #FCE9DC; color: var(--label); font-weight: 700; font-size: 13px; text-align: center; line-height: 20px; }
.split img { max-width: 100%; }

.soon { max-width: 720px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.soon h1 { font-size: 32px; }

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section h2 { font-size: 28px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .hero figure img { height: 240px; }
  .list time { width: auto; }
}
