/* 쿠폰브리프 — 짙은 청록 + 종이색, Noto Sans KR, 한 장 브리핑 첫 화면, 번호 목록, 해요체 */
:root {
  --ink: #1b2422;
  --ink-soft: #3f4a47;
  --muted: #56615e;
  --teal: #0f5e57;
  --teal-deep: #0a4842;
  --teal-tint: #e3efec;
  --paper: #f6f4ee;
  --rule: #dcdcd3;
  --radius: 8px;
  --wrap: 1100px;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.8; color: var(--ink); background: #fff; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-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: 800; }
h2 { font-size: clamp(22px, 2.4vw, 29px); 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: 60px 0; }
.section.tint, .section.alt { background: var(--paper); }
.prose { color: var(--ink-soft); }

/* 버튼 */
.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(--teal); cursor: pointer; white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-line { background: #fff; color: var(--teal); }
.btn-line:hover { background: var(--teal-tint); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.promo-code { font-family: var(--mono); font-weight: 500; font-size: .95em; color: var(--teal-deep); background: var(--teal-tint); padding: 1px 7px; border-radius: 4px; letter-spacing: .02em; }
.text-link { font-weight: 700; }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 2px solid var(--ink); }
.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: 30px; height: 30px; }
.logo-mark .lm-page { fill: var(--teal); }
.logo-mark .lm-line { stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.logo-text { font-weight: 800; font-size: 20px; display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; }
.main-nav a:hover { color: var(--teal); }
.main-nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.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: 56px 0; border-bottom: 2px solid var(--ink); }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { font-weight: 700; color: var(--teal); margin: 0 0 6px; font-size: 16px; }
.hero h1 { white-space: nowrap; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; margin-bottom: .3em; }
.hero-lead { font-size: 18px; color: var(--ink-soft); max-width: 30em; margin: 0; }
.brief-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); }
.brief-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 2px solid var(--ink); }
.brief-nums div { padding: 14px 16px; }
.brief-nums div + div { border-left: 2px solid var(--rule); }
.brief-nums dt { font-size: 15px; color: var(--muted); }
.brief-nums dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.picker { padding: 18px 18px 20px; }
.picker label { display: block; font-weight: 700; margin-bottom: 6px; }
.pk-row { display: flex; align-items: center; gap: 8px; }
.pk-row input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; font: inherit; font-size: 20px; font-family: var(--mono); border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: #fff; }
.pk-row input:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.pk-row span { font-weight: 700; }
.pk-out { margin: 12px 0 0; color: var(--muted); display: flex; flex-direction: column; gap: 2px; min-height: 3.4em; }
.pk-out.set { color: var(--ink); }
.pk-code { font-family: var(--mono); font-size: 26px; color: var(--teal); font-weight: 500; }
.pk-next { color: var(--muted); font-size: 16px; }

/* 섹션 머리 */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 24px; }
.sec-head h2, .sec-head p { margin: 0; }
.sec-head p { color: var(--muted); }

/* 코드 목록: 번호 줄 */
.coupon-numbered { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.coupon-numbered li { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--rule); }
.cn-no { font-family: var(--mono); font-size: 28px; color: var(--teal); }
.cn-body h3 { margin: 0 0 2px; font-size: 19px; }
.cn-body h3 a { color: var(--ink); text-decoration: none; }
.cn-body h3 a:hover { text-decoration: underline; }
.cn-rate { margin: 0; font-weight: 700; }
.cn-brief { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.extras-head { margin-top: 32px; }
.x-go { margin-top: 8px; }
.table-note { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* 두 칸 */
.two { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }

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

/* 단계·점검·질문 */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--rule); }
.steps li:first-child { padding-top: 0; }
.step-no { flex-shrink: 0; width: 34px; height: 34px; border: 2px solid var(--teal); color: var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 16px; }
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.step-list { padding-left: 1.3em; }
.step-list li { margin-bottom: .5em; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checklist li { padding: 14px 0; border-top: 2px solid var(--ink); }
.checklist h3 { margin-bottom: 4px; }
.checklist p { margin: 0; color: var(--muted); }
.faq { border-bottom: 2px solid var(--rule); }
.faq-list { border-top: 2px solid var(--ink); }
.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(--ink-soft); }
.plain-list { padding-left: 1.2em; margin: 0 0 1em; }
.plain-list li { margin-bottom: .55em; }
.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; }
.directory li { padding: 12px 0; border-bottom: 2px solid var(--rule); }
.directory a { font-weight: 700; color: var(--ink); }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.link-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.link-rows a { display: block; padding: 16px 0; border-top: 3px solid var(--teal); text-decoration: none; color: var(--ink); }
.link-rows strong { display: block; font-size: 19px; }
.link-rows span { color: var(--muted); font-size: 15px; }
.link-rows a:hover strong { color: var(--teal); text-decoration: underline; }

/* 안쪽 페이지 */
.breadcrumb { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 20px 0 40px; border-bottom: 2px solid var(--ink); }
.page-lead { font-size: 18px; color: var(--ink-soft); max-width: 40em; }
.page-actions { margin-top: 16px; }
.text-block { margin-bottom: 40px; }
.text-block:last-child { margin-bottom: 0; }
.detail-hero { padding: 20px 0 48px; background: var(--paper); border-bottom: 2px solid var(--ink); }
.detail-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.detail-amount { font-size: 22px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-amount .promo-code { font-size: 20px; }
.detail-summary { color: var(--ink-soft); font-size: 18px; }
.detail-hero-img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.related-list a { display: block; padding: 12px 0; border-bottom: 2px solid var(--rule); text-decoration: none; color: var(--ink); }
.related-list strong { display: block; }
.related-list span { color: var(--muted); font-size: 15px; }
.back-link { margin-top: 20px; font-weight: 700; }
.cta-strip { background: var(--teal); color: #fff; }
.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; }
.cta-strip .btn-primary { background: #fff; color: var(--teal-deep); border-color: #fff; }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.more-menu a { font-weight: 700; }
.static-page h1 { margin-top: 12px; }
.notfound { text-align: center; padding: 100px 0; }

/* 꼬리말 */
.site-footer { background: var(--ink); color: #d3dad8; padding: 48px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo-mark .lm-page { fill: #5fb3a8; }
.site-footer .logo-mark .lm-line { stroke: var(--ink); }
.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: #c3cbc8; margin: 0 0 8px; }
.to-top { display: inline-block; margin-top: 12px; font-weight: 700; }

.hero-in > *, .two > *, .detail-hero-inner > *, .footer-top > *, .sec-head > *, .coupon-numbered li > * { 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: 2px solid var(--ink); }
  .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: 900px) {
  .hero-in, .two, .detail-hero-inner, .sec-head { grid-template-columns: 1fr; }
  .hero-in { gap: 28px; }
  .two { gap: 8px; }
  .sec-head { gap: 8px; }
  .checklist, .link-rows, .related-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .coupon-numbered li { grid-template-columns: 48px 1fr; }
  .coupon-numbered li > .btn { grid-column: 2; justify-self: start; }
}
@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(32px, 11vw, 44px); }
  .hero-lead { font-size: 17px; }
  .brief-nums dd { font-size: 18px; }
  .brief-nums div { padding: 12px 10px; }
  .brief-nums dt { font-size: 15px; }
  .coupon-numbered li { grid-template-columns: 36px 1fr; gap: 12px; }
  .cn-no { font-size: 22px; }
  .coupon-numbered li > .btn { grid-column: 1 / -1; width: 100%; }
  .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%; }
  .calc-table thead, .summary-table thead { display: none; }
  .calc-table, .calc-table tbody, .calc-table tr, .summary-table, .summary-table tbody, .summary-table tr { display: block; width: 100%; }
  .calc-table tr, .summary-table tr { padding: 10px 0; border-bottom: 2px solid var(--rule); }
  .calc-table th, .calc-table td, .summary-table th, .summary-table td { display: flex; gap: 12px; border: 0; padding: 2px 0; }
  .calc-table td::before { content: attr(data-label); flex: 0 0 6em; font-weight: 700; color: var(--muted); }
  .spec-table th { width: 6.5em; white-space: normal; }
  .info-table td, .info-table th { padding-left: 8px; padding-right: 8px; }
}
@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; }
}
