/* 쿠폰박스 — 코발트 블루 + 흰 바탕, IBM Plex Sans KR, 코드판 첫 화면, 표 위주, 짧은 해요체 */
:root {
  --ink: #16181d;
  --ink-soft: #3d424c;
  --muted: #555b66;
  --blue: #1e4fd6;
  --blue-deep: #173fae;
  --blue-tint: #e9effd;
  --line: #16181d;
  --rule: #dfe3ea;
  --soft: #f4f6f9;
  --radius: 6px;
  --wrap: 1120px;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75; color: var(--ink); background: #fff; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.32; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow > * { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid transparent; }
.mono { font-family: var(--mono); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-main { background: var(--blue); color: #fff; }
.btn-main:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-line { background: #fff; color: var(--blue); }
.btn-line:hover { background: var(--blue-tint); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 18px; }
.kcode { font-family: var(--mono); font-size: .92em; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--blue); padding: 0 1px; }
.copy-btn { font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); min-height: 40px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--soft); }
.nocode { font-weight: 700; color: var(--muted); font-size: 15px; }
.text-link { font-weight: 700; }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.logo-mark .lb-body { fill: var(--blue); }
.logo-mark .lb-lid { fill: var(--ink); }
.logo-mark .lb-slot { stroke: #fff; stroke-width: 3; stroke-linecap: round; fill: none; }
.logo-text { font-weight: 700; font-size: 20px; display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.main-nav { display: flex; gap: 0; margin-left: auto; }
.main-nav a { padding: 8px 11px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; }
.main-nav a:hover { color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.main-nav .nav-cta { display: none; }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 2px solid var(--ink); background: #fff; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; display: block; }

/* 첫 화면: 코드판 */
.hero { padding: 44px 0 40px; border-bottom: 3px solid var(--line); }
.hero h1 { white-space: nowrap; font-size: clamp(34px, 5vw, 56px); margin-bottom: .25em; }
.hero-lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 24px; }
.board { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--line); }
.board-row { display: grid; grid-template-columns: 44px 1.2fr 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--rule); }
.board-row.is-main { background: var(--blue-tint); padding-left: 14px; padding-right: 14px; margin: 0 -14px; }
.br-no { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--blue); }
.br-what strong { display: block; font-size: 19px; }
.br-what span { color: var(--muted); font-size: 15px; }
.br-code { font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .01em; }
.br-act { display: flex; gap: 8px; }
.hero-foot { margin: 18px 0 0; font-size: 16px; color: var(--ink-soft); }

/* 표 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table thead th { text-align: left; font-size: 15px; font-weight: 700; padding: 10px 12px; border-top: 3px solid var(--line); border-bottom: 2px solid var(--line); white-space: nowrap; }
.info-table td, .info-table tbody th { padding: 13px 12px; border-bottom: 2px solid var(--rule); text-align: left; vertical-align: middle; overflow-wrap: normal; }
.info-table tbody th { font-weight: 700; }
.info-table tbody th a { color: var(--ink); }
.ct-go { text-align: right; }
.spec-table tbody th { width: 8em; color: var(--muted); white-space: nowrap; }
.spec-table { border-top: 3px solid var(--line); }
.table-note { color: var(--muted); font-size: 15px; }

/* 넣는 곳 */
.where { background: var(--soft); }
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 8px; }
.where-grid h3 { padding-top: 14px; border-top: 3px solid var(--blue); }
.where-note { max-width: 760px; font-weight: 600; }

/* 단계: 가로 4칸 */
.steps-sec .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: block; padding: 16px 0; border-top: 3px solid var(--line); }
.steps-sec .steps li { padding-top: 14px; }
.step-no { display: block; font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--blue); margin-bottom: 4px; }
.step-no::before { content: "STEP "; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.coupon-page .steps li, .menu-page .steps li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; border-top: 0; border-bottom: 2px solid var(--rule); }
.menu-page .part-steps .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.menu-page .part-steps .steps li { display: block; border-top: 3px solid var(--line); border-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; counter-reset: ck; }
.checklist li { counter-increment: ck; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 14px 0; border-bottom: 2px solid var(--rule); }
.checklist li::before { content: counter(ck, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-weight: 700; color: var(--blue); padding-top: 2px; }
.checklist h3 { margin-bottom: 2px; }
.checklist p { margin: 0; color: var(--muted); }
.faq { border-bottom: 2px solid var(--rule); }
.faq-list { border-top: 3px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17.5px; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; margin: 0; color: var(--ink-soft); }
.digest-item { padding: 14px 0; border-bottom: 2px solid var(--rule); }
.digest-item h3 { margin: 0 0 4px; }
.digest-item p { margin: 0; color: var(--muted); }
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; border-top: 3px solid var(--line); }
.directory li { padding: 14px 0; border-bottom: 2px solid var(--rule); }
.directory a { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.directory a:hover { color: var(--blue); text-decoration: underline; }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

/* 마감일 계산 */
.dl-sec { background: var(--blue); color: #fff; }
.dl-sec h2 { color: #fff; }
.dl-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.deadline { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; }
.dl-input span { display: block; font-weight: 700; margin-bottom: 6px; }
.dl-input input { width: 100%; max-width: 280px; height: 48px; padding: 0 12px; font: inherit; font-size: 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.dl-input input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.dl-out { list-style: none; margin: 16px 0 0; padding: 0; }
.dl-out li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name date" "days date"; gap: 0 12px; padding: 12px 0; border-top: 2px solid var(--rule); align-items: center; }
.dl-name { grid-area: name; font-weight: 700; }
.dl-days { grid-area: days; color: var(--muted); font-size: 15px; font-family: var(--mono); }
.dl-date { grid-area: date; font-size: 15px; font-weight: 600; color: var(--muted); text-align: right; }
.dl-date.set { font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 700; color: var(--ink); }
.dl-date.past { color: #b42318; }
.dl-d, .dl-left { white-space: nowrap; }
.dl-left::before { content: " / "; }
.text-block .deadline, .part-deadline .deadline { max-width: 560px; margin-top: 8px; border: 2px solid var(--line); }

/* 안쪽 페이지 */
.breadcrumb { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 20px 0 36px; border-bottom: 3px solid var(--line); }
.page-head-in { display: grid; grid-template-columns: 1fr; gap: 28px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.2fr .8fr; align-items: center; }
.page-lead { font-size: 18px; color: var(--ink-soft); max-width: 40em; }
.page-head-photo, .detail-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.detail-head-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.detail-head.no-photo .detail-head-in { grid-template-columns: 1fr; }
.detail-head { padding-top: 20px; border-bottom: 3px solid var(--line); }
.detail-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; }
.detail-rate .kcode { font-size: 24px; }
.page-actions { margin-top: 18px; }
.text-block { margin-bottom: 40px; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .5em; }
.num-list li::marker { font-family: var(--mono); font-weight: 700; color: var(--blue); }
.block-go { margin-top: 12px; }
.cta-strip { background: var(--soft); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-strip p { margin: 0; font-weight: 700; font-size: 18px; }
.more-menu ul, .related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-menu a { font-weight: 700; }
.related-list { flex-direction: column; }
.related-list span { color: var(--muted); font-size: 15px; margin-left: 6px; }
.back-link { margin-top: 20px; font-weight: 700; }
.static-page h1 { margin-top: 12px; }
.notfound { text-align: center; padding: 100px 0; }
.notfound .wrap.narrow > * { margin-left: auto; margin-right: auto; }

/* 꼬리말 */
.site-footer { background: var(--ink); color: #cfd3da; padding: 48px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 28px; margin-bottom: 28px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 15px; margin-top: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 4px; font-size: 16px; }
.footer-nav .strong { font-weight: 700; }
.disclaimer { font-size: 15px; color: #c3c8d0; margin: 0 0 8px; }
.to-top { display: inline-block; margin-top: 12px; font-weight: 700; }

.board-row > *, .where-grid > *, .dl-in > *, .page-head-in > *, .detail-head-in > *, .footer-top > * { min-width: 0; }

@media (max-width: 1060px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 24px 16px; border-bottom: 3px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 2px solid var(--rule); }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .board-row { grid-template-columns: 36px 1fr auto; }
  .br-act { grid-column: 2 / -1; }
  .br-act .btn { flex: 1; }
  .steps-sec .steps, .menu-page .part-steps .steps { grid-template-columns: 1fr 1fr; }
  .dl-in, .page-head.has-photo .page-head-in, .detail-head-in, .where-grid { grid-template-columns: 1fr; }
  .where-grid { gap: 8px; }
  .directory { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .logo-sub { display: none; }
  .section { padding: 42px 0; }
  .hero { padding: 28px 0 30px; }
  .hero h1 { font-size: clamp(28px, 9.4vw, 40px); }
  .hero-lead { font-size: 16.5px; }
  .board-row { grid-template-columns: 28px 1fr; gap: 6px 10px; }
  .board-row.is-main { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
  .br-code { grid-column: 2; font-size: 24px; }
  .br-act { grid-column: 1 / -1; margin-top: 6px; }
  .steps-sec .steps, .menu-page .part-steps .steps, .directory { grid-template-columns: 1fr; gap: 0; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .deadline { padding: 16px; }
  .dl-out li { grid-template-areas: "name name" "days date"; }
  .dl-left { display: block; font-size: 15px; }
  .dl-left::before { content: none; }
  .coupon-page .steps li { grid-template-columns: 1fr; }
  .stack-sm thead { display: none; }
  .stack-sm, .stack-sm tbody, .stack-sm tr { display: block; width: 100%; }
  .stack-sm { border-top: 3px solid var(--line); }
  .stack-sm tr { padding: 10px 0 12px; border-bottom: 2px solid var(--rule); }
  .stack-sm tbody th, .stack-sm td { display: flex; gap: 12px; width: 100%; padding: 3px 0; border: 0; white-space: normal; }
  .stack-sm tbody th { font-size: 18px; padding-bottom: 6px; }
  .stack-sm td::before { content: attr(data-label); flex: 0 0 5.2em; font-weight: 700; color: var(--muted); }
  .stack-sm td.ct-go::before { content: none; }
  .stack-sm .ct-go .btn { width: 100%; }
  .info-table td, .info-table th { padding-left: 10px; padding-right: 10px; }
  .stack-sm tbody th, .stack-sm td { padding-left: 0; padding-right: 0; }
}
@media (max-width: 379px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; font-weight: 700; }
  .logo-text { font-size: 18px; }
}
