/* 무쿠폰 — 택배 송장 콘셉트: 먹녹색 + 귤색 면, 2px 줄, 코드는 고정폭, 해요체 */
:root {
  --ink: #14211c;
  --ink-2: #24342d;
  --muted: #4a5550;
  --paper: #f2f3ef;
  --bg: #ffffff;
  --line: #14211c;
  --rule: #dde1da;
  --tang: #ff6b1a;
  --tang-soft: #ffe6d6;
  --radius: 6px;
  --wrap: 1140px;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tang); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.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: 60px 0; }
.section + .section { border-top: 2px solid var(--rule); }
.mono { font-family: var(--mono); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-main { background: var(--ink); color: #fff; }
.btn-main:hover { background: var(--ink-2); color: #fff; }
.btn-line { background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.kcode { font-family: var(--mono); font-size: .95em; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: var(--tang-soft); padding: 1px 7px; border-radius: 4px; }
.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: 36px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--paper); }
.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: 2px 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-mark { width: 34px; height: 34px; }
.logo-mark .box { fill: var(--tang); stroke: var(--ink); stroke-width: 2.4; }
.logo-mark .tape { fill: var(--ink); }
.logo-text { font-weight: 800; 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: 2px; margin-left: auto; }
.main-nav a { padding: 8px 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--tang); }
.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 { background: var(--paper); padding: 52px 0 56px; border-bottom: 2px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { white-space: nowrap; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; margin-bottom: .35em; }
.hero-lead { font-size: 18px; max-width: 32em; }
.hero-code { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 18px; }
.hc-code { font-family: var(--mono); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: .02em; background: var(--tang); color: var(--ink); padding: 4px 16px; border-radius: var(--radius); }
.hero-go { margin: 0; }
.waybill { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
.waybill div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 13px 20px; border-bottom: 2px dashed var(--rule); }
.waybill div:last-child { border-bottom: 0; }
.waybill dt { font-weight: 700; color: var(--muted); font-size: 16px; }
.waybill dd { margin: 0; font-weight: 700; }
.waybill dd.mono { font-size: 19px; }

/* 혜택 목록: 송장 줄 */
.tickets { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--line); }
.ticket { display: grid; grid-template-columns: 168px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--rule); }
.tk-photo { display: block; border-radius: var(--radius); overflow: hidden; }
.tk-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tk-amount { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.tk-body h3 { margin: 4px 0 2px; }
.tk-body h3 a { text-decoration: none; }
.tk-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--tang); }
.tk-brief { margin: 0; color: var(--muted); font-size: 16px; }
.tk-code { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tk-code-row { display: flex; align-items: center; gap: 8px; }
.tk-code .kcode { font-size: 17px; }
.tk-code .btn { min-width: 170px; }

/* 어떤 코드 */
.pick-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; }
.pick-body > p { color: var(--muted); }

/* 표 */
.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-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; }
.ct-go { text-align: right; }
.spec-table tbody th { width: 8em; color: var(--muted); white-space: nowrap; }

/* 마감일 계산 */
.dl-sec { background: var(--tang); }
.section + .dl-sec, .dl-sec + .section { border-top: 0; }
.dl-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.dl-head p { font-size: 17px; }
.deadline { background: #fff; border: 2px solid var(--line); 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(--tang); 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 dashed var(--rule); align-items: center; }
.dl-name { grid-area: name; font-weight: 700; }
.dl-days { grid-area: days; color: var(--muted); font-size: 15px; }
.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: #a3271b; }
.text-block .deadline { max-width: 560px; margin-top: 8px; }

/* 단계·체크·질문 */
.steps, .checklist { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 2px solid var(--rule); }
.step-no { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 800; font-family: var(--mono); display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0; }
.steps p { margin: 0; color: var(--muted); }
.checklist { counter-reset: ck; }
.checklist li { padding: 14px 0; border-bottom: 2px solid var(--rule); }
.checklist h3 { margin-bottom: 4px; }
.checklist p { margin: 0; color: var(--muted); }
.faq { border-bottom: 2px solid var(--rule); }
.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: 18px; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; margin: 0; color: var(--muted); }
.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: 2px solid var(--line); }
.directory li { padding: 14px 0; border-bottom: 2px solid var(--rule); }
.directory a { font-weight: 800; font-size: 18px; text-decoration: none; }
.directory a:hover { text-decoration: underline; text-decoration-color: var(--tang); }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

/* 안쪽 페이지 */
.breadcrumb { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 24px 0 40px; border-bottom: 2px solid var(--line); }
.page-head-in { display: grid; grid-template-columns: 1fr; gap: 32px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.2fr .8fr; align-items: center; }
.page-lead { font-size: 18px; color: var(--muted); 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: 24px; }
.detail-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.detail-rate .kcode { font-size: 22px; }
.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; }
.block-go { margin-top: 12px; }
.cta-strip { background: var(--paper); }
.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: #d5dcd7; padding: 48px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--tang); }
.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: 800; color: #fff; margin: 0 0 4px; font-size: 16px; }
.footer-nav .strong { font-weight: 800; }
.disclaimer { font-size: 15px; color: #c3cbc6; margin: 0 0 8px; }
.to-top { display: inline-block; margin-top: 12px; font-weight: 700; }

.hero-in > *, .pick-in > *, .dl-in > *, .page-head-in > *, .detail-head-in > *, .ticket > *, .footer-top > * { min-width: 0; }

/* 메뉴 7개가 들어가지 않는 폭부터 펼침 메뉴 */
@media (max-width: 1060px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 2px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 2px solid var(--rule); }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-in, .pick-in, .dl-in, .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: 1fr; }
  .hero-in { gap: 32px; }
  .waybill { max-width: 560px; }
  .directory { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ticket { grid-template-columns: 140px 1fr; }
  .tk-code { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .logo-sub { display: none; }
  .section { padding: 44px 0; }
  .hero { padding: 32px 0 36px; }
  .hero h1 { font-size: clamp(30px, 10.5vw, 44px); }
  .hero-lead { font-size: 17px; }
  .hc-code { font-size: clamp(26px, 8.4vw, 34px); }
  .hero-go .btn { width: 100%; }
  .waybill div { grid-template-columns: 6em 1fr; padding: 11px 14px; }
  .ticket { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; }
  .tk-amount { font-size: 22px; }
  .tk-code { flex-direction: column; align-items: stretch; }
  .tk-code-row { justify-content: space-between; }
  .tk-code .btn { width: 100%; min-width: 0; }
  .directory { grid-template-columns: 1fr; }
  .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"; }
  .stack-sm thead { display: none; }
  .stack-sm, .stack-sm tbody, .stack-sm tr { display: block; width: 100%; }
  .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.6em; 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: 800; }
  .logo-text { font-size: 18px; }
}
