/* 직구쿠폰 app.css — 회색 바탕 + 흰 패널, 파란 상단 띠 */
:root {
  --blue: #1a56b8;
  --blue-900: #113d86;
  --blue-50: #e8f0fc;
  --bg: #edf1f6;
  --card: #ffffff;
  --text: #141c28;
  --text-2: #364152;
  --sub: #5a6677;
  --div: #e0e6ee;
  --r: 14px;
  --r-btn: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: "SUIT Variable", SUIT, system-ui, -apple-system, "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.72; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.32; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
table { width: 100%; border-collapse: collapse; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.box { width: min(1180px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }

/* 버튼 */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--r-btn); border: 0; font: inherit; font-weight: 800; font-size: 16px; line-height: 1.3; text-align: center; cursor: pointer; }
.buttonBlue { background: var(--blue); color: #fff; }
.buttonBlue:hover { background: var(--blue-900); }
.buttonLight { background: var(--blue-50); color: var(--blue-900); }
.buttonLight:hover { background: #d7e4f8; }
.buttonSm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.txtLink { color: var(--blue); font-weight: 700; text-decoration: underline; }
.copyNote { display: inline-block; margin-left: 10px; font-size: 15px; font-weight: 700; color: #0f7a3c; }
.codeRows li > .copyNote { grid-column: 2 / -1; margin: -8px 0 0; }

/* 상단 바 */
.topBar { position: sticky; top: 0; z-index: 20; background: var(--blue); color: #fff; }
.topInner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 900; white-space: nowrap; }
.brandMark { width: 30px; height: 30px; }
.brandMark .lm-bg { fill: #fff; }
.brandMark .lm-cut { stroke: var(--blue); stroke-width: 3.4; stroke-linecap: round; }
.brandMark .lm-dot { fill: var(--blue); }
.menuLinks { display: flex; gap: 4px; margin-left: auto; }
.menuLinks a { padding: 8px 12px; border-radius: var(--r-btn); font-weight: 600; font-size: 16px; }
.menuLinks a:hover { background: rgba(255, 255, 255, .14); }
.menuLinks a[aria-current="page"] { background: var(--blue-900); }
.menuShop { display: none !important; }
.topShop { padding: 8px 16px; border-radius: var(--r-btn); background: #fff; color: var(--blue-900); font-weight: 800; font-size: 15px; white-space: nowrap; }
.topShop:hover { background: var(--blue-50); }
.menuBtn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 2px solid rgba(255, 255, 255, .6); border-radius: var(--r-btn); background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.burger { position: relative; width: 16px; height: 2px; background: currentColor; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }

/* 파란 띠 (첫 화면 · 메뉴 머리 · 쿠폰 상세) */
.intro, .docHead, .viewIntro { background: var(--blue); color: #fff; }
.intro { padding: 36px 0 104px; }
.introKicker { display: inline-block; font-size: 15px; font-weight: 700; color: #d6e4fb; }
.intro h1 { margin-top: 6px; white-space: nowrap; font-size: clamp(22px, 7vw, 60px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.1; }
.introLead { margin-top: 14px; max-width: 40em; font-size: 18px; color: #e9f0fc; }
.docHead { padding: 22px 0 36px; }
.docHead h1 { margin-top: 10px; font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; }
.docLead { margin-top: 10px; max-width: 46em; color: #e3ecfb; font-size: 18px; }
.docActions { margin-top: 18px; }
.docHead .buttonLight { background: #fff; }
.crumbs { font-size: 15px; color: #c9daf7; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* 패널: 섹션마다 흰 판 한 겹 */
.sec { padding: 10px 0; }
.sec > .box, .card { background: var(--card); border-radius: var(--r); padding: 38px 44px; }
.codesHome { margin-top: -78px; }
main > .sec:last-of-type { padding-bottom: 48px; }
.sec h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; margin-bottom: 20px; }
.sec h2 small { margin-left: 8px; font-size: 15px; font-weight: 600; color: var(--sub); }
.note { margin-top: 14px; color: var(--text-2); max-width: 70ch; }
.twoUp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 10px 0; }
.twoUp .sec { padding: 0; }
.twoUp .card { height: 100%; }

/* 코드 목록 (번호) */
.codeRows li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-top: 2px solid var(--div); }
.codeRows li:first-child { border-top: 0; padding-top: 4px; }
.crNo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--blue-50); color: var(--blue-900); font-size: 22px; font-weight: 900; }
.crBody h3 { font-size: 18px; font-weight: 800; }
.crBody h3 a:hover { color: var(--blue); }
.crRate { font-size: 21px; font-weight: 900; color: var(--blue); }
.crBrief { font-size: 15px; color: var(--sub); }
.codeCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cdPhoto img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }
.cdBody { padding-top: 12px; }
.cdRate { font-size: 21px; font-weight: 900; color: var(--blue); }
.cdBrief { color: var(--sub); font-size: 15px; }
.cdBody .button { margin-top: 10px; }
.tblScroll { overflow-x: auto; }
.codeTbl th, .codeTbl td { padding: 14px 10px; text-align: left; border-bottom: 2px solid var(--div); }
.codeTbl thead th { font-size: 14px; color: var(--sub); }
.ctRate { color: var(--blue); font-weight: 800; white-space: nowrap; }
.ctGo { text-align: right; white-space: nowrap; width: 1%; }

/* 글 */
.txtBlock + .txtBlock { margin-top: 40px; }
.txtBlock h2 { margin-bottom: 6px; }
.plainList { margin-top: 12px; max-width: 70ch; }
.plainList li { position: relative; padding: 7px 0 7px 18px; color: var(--text-2); }
.plainList li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.stepList { margin-top: 12px; padding-left: 20px; list-style: decimal; max-width: 70ch; }
.stepList li { padding: 5px 0; color: var(--text-2); }
.dataTbl { margin-top: 14px; font-variant-numeric: tabular-nums; }
.dataTbl th, .dataTbl td { padding: 12px 10px; text-align: left; border-bottom: 2px solid var(--div); overflow-wrap: normal; }
.dataTbl thead th { background: var(--bg); color: var(--sub); font-size: 14px; border-bottom: 0; }
.dataTbl thead th:first-child { border-radius: 8px 0 0 8px; }
.dataTbl thead th:last-child { border-radius: 0 8px 8px 0; }
.mathTbl th, .mathTbl td:last-child { white-space: nowrap; }

.steps li { padding: 14px 0; border-top: 2px solid var(--div); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.stepNo { font-size: 14px; color: var(--blue); }
.steps h3 { font-size: 18px; font-weight: 800; }
.steps p { color: var(--text-2); }
.sec > .box > .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.sec > .box > .steps li { border-top: 0; padding: 0; }
.troubles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.troubles li { padding: 14px 0; border-top: 2px solid var(--div); }
.troubles h3 { font-size: 17px; font-weight: 800; }
.troubles p { color: var(--text-2); margin-top: 2px; }

.qa { border-top: 2px solid var(--div); }
.qa:first-child { border-top: 0; }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 17px; font-weight: 800; }
.qa summary::after { content: "열기"; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--blue); }
.qa[open] summary::after { content: "닫기"; }
.qaA { padding: 0 0 18px; color: var(--text-2); max-width: 70ch; }

.postLinks li a { display: block; padding: 14px 0; border-top: 2px solid var(--div); }
.postLinks li:first-child a { border-top: 0; padding-top: 0; }
.postLinks strong { display: block; font-size: 18px; font-weight: 800; }
.postLinks span { color: var(--sub); font-size: 15px; }
.postLinks a:hover strong { color: var(--blue); }

/* 메뉴 페이지 */
.helpTxt .box { padding-top: 34px; }
.ctaStrip > .box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ctaStrip p { font-size: 18px; font-weight: 800; }
.moreMenu ul { display: flex; flex-wrap: wrap; gap: 8px; }
.moreMenu a { display: inline-block; padding: 8px 14px; border-radius: var(--r-btn); background: var(--blue-50); color: var(--blue-900); font-weight: 700; }
.moreMenu h2 { font-size: 20px; margin-bottom: 14px; }

/* 쿠폰 상세 */
.viewIntro { padding: 22px 0 44px; }
.viewIntroInner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 44px; align-items: center; }
.viewIntro .crumbs { grid-column: 1 / -1; }
.viewIntro h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.viewAmount { margin-top: 8px; font-size: 24px; font-weight: 900; }
.viewIntro .promoCode { background: #fff; color: var(--blue-900); }
.viewSum { margin: 8px 0 20px; color: #e3ecfb; }
.viewIntro .buttonBlue { background: #fff; color: var(--blue-900); }
.viewIntro .buttonBlue:hover { background: var(--blue-50); }
.viewIntroImg { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.termsTbl th, .termsTbl td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--div); }
.termsTbl th { width: 130px; color: var(--sub); font-weight: 700; }
.othersList { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.othersList a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 2px solid var(--div); }
.othersList span { color: var(--blue); font-weight: 800; white-space: nowrap; }
.othersList a:hover strong { color: var(--blue); }
.homeLink { margin-top: 24px; }
.homeLink a { color: var(--blue); font-weight: 800; }

.fixedDoc h1, .err404 h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 14px 0 18px; }
.fixedDoc .crumbs, .fixedDoc .crumbs a { color: var(--sub); }
.fixedPart { margin-top: 36px; }
.err404 { padding-top: 40px; }
.err404 p { margin: 6px 0 20px; color: var(--text-2); }
.reachMail { margin: 16px 0; font-size: 20px; font-weight: 800; }

.pageIndex li { padding: 12px 0; border-bottom: 2px solid var(--div); }
.pageIndex a { font-size: 18px; font-weight: 800; color: var(--blue); }
.pageIndex p { color: var(--text-2); }
.sumTbl a { color: var(--blue); font-weight: 800; }
.recapItem { padding: 16px 0; border-bottom: 2px solid var(--div); }
.recapItem h3 { font-size: 18px; font-weight: 800; }
.recapItem h3 span { color: var(--blue); margin-left: 6px; }
.recapItem p { margin-top: 4px; color: var(--text-2); }
.recapItem .recapMeta { font-size: 15px; color: var(--sub); }

.promoCode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 800; font-size: .92em; padding: 2px 7px; border-radius: 6px; background: var(--blue-50); color: var(--blue-900); }
.won { color: var(--sub); font-size: .88em; font-weight: 500; }
.tblNote { margin-top: 12px; font-size: 15px; color: var(--sub); }

/* 하단 */
.bottomArea { margin-top: 28px; padding: 48px 0 36px; background: #fff; border-top: 4px solid var(--blue); }
.bottomGrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.bottomName { font-size: 20px; font-weight: 900; color: var(--blue-900); }
.bottomBrand p { margin-top: 8px; color: var(--text-2); font-size: 15px; max-width: 28ch; }
.bottomCol { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.bottomCol strong { margin-bottom: 4px; font-size: 16px; }
.bottomCol a { color: var(--text-2); }
.bottomCol a span { color: var(--sub); }
.bottomCol a:hover { color: var(--blue); text-decoration: underline; }
.bottomCol a.isBold { font-weight: 800; color: var(--text); }
.bottomNotes { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--div); font-size: 14px; color: var(--sub); }
.bottomNotes p + p { margin-top: 6px; }

@media (max-width: 1080px) {
  .topInner { gap: 10px; }
  .topShop { margin-left: auto; }
  .menuBtn { display: inline-flex; }
  .menuLinks { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--blue-900); }
  .menuLinks a { padding: 12px 4px; border-radius: 0; border-bottom: 2px solid rgba(255, 255, 255, .12); font-size: 17px; }
  .menuLinks a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 6px; }
  .hasJs .menuLinks { display: none; }
  .hasJs .menuOpen .menuLinks { display: flex; }
}
@media (max-width: 900px) {
  .twoUp, .viewIntroInner { grid-template-columns: minmax(0, 1fr); }
  .viewIntroImg { order: -1; }
  .sec > .box > .steps, .troubles { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sec > .box > .steps li { padding: 12px 0; border-top: 2px solid var(--div); }
  .sec > .box > .steps li:first-child { border-top: 0; }
  .bottomGrid { grid-template-columns: 1fr 1fr; }
  .othersList, .codeCards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .box { width: calc(100% - 24px); }
  .topInner, .intro > .box, .docHead > .box, .viewIntro > .box { width: calc(100% - 32px); }
  .sec > .box, .card { padding: 26px 18px; border-radius: 12px; }
  .codeRows li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; }
  .crNo { width: 40px; height: 40px; font-size: 17px; border-radius: 9px; }
  .codeRows .button { grid-column: 2; justify-self: start; }
  .codeTbl thead { display: none; }
  .codeTbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 2px solid var(--div); }
  .codeTbl th, .codeTbl td { padding: 0; border: 0; }
  .codeTbl .ctGo { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .dataTbl { font-size: 15px; }
  .dataTbl th, .dataTbl td { padding: 10px 6px; }
  .sumTbl thead { display: none; }
  .sumTbl, .sumTbl tbody, .sumTbl tr, .sumTbl th, .sumTbl td { display: block; }
  .sumTbl tr { padding: 12px 0; border-bottom: 2px solid var(--div); }
  .sumTbl th, .sumTbl td { padding: 0; border: 0; }
  .sumTbl td:nth-child(3), .sumTbl td:nth-child(4) { display: inline; color: var(--sub); font-size: 15px; }
  .sumTbl td:nth-child(4)::before { content: " · "; }
  .bottomGrid { grid-template-columns: minmax(0, 1fr); }
  .copyNote { display: block; margin: 6px 0 0; }
}
@media (max-width: 379px) {
  .topShop { display: none; }
  .menuBtn { margin-left: auto; }
  .menuLinks .menuShop { display: block !important; margin-top: 10px; padding: 12px; border: 0; border-radius: var(--r-btn); background: #fff; color: var(--blue-900); font-weight: 800; text-align: center; }
}
