/* ⑱ 창업비용표 — 초록 커튼 위 흰 둥근 카드 + 아래 커튼 물결 끝 (시안 y 16433~17720, 카드 16433~17539) */
.s18 {
  --s18-green: #005633;
  --s18-bg: #06180c;
  --s18-paper: #f5efda;
  --s18-line: #d9d9d9;
  --s18-foot: #737373;
  --s18-badge-gold: #e3c77c;
  background: var(--s18-bg) url(../assets/s18/curtain.png) center top / 1920px 100% repeat-x;
  color: var(--c-black);
  z-index: 1;
}
.s18::before, .s18::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.s18::before { height: 140px; background: var(--s18-paper) url(../assets/s19/paper.jpg) center bottom / 460px auto repeat; }
.s18::after { z-index: 1; height: 164px; background: url(../assets/s18/wave.png) center bottom / 1920px 164px repeat-x; }
.s18-card { position: relative; z-index: 2; background: var(--c-white); margin: 0 auto; }
.s18-kicker { font-weight: 500; letter-spacing: -0.05em; text-align: center; color: #000; }
.s18-title { text-align: center; color: #000; letter-spacing: -0.04em; }
.s18-green { color: var(--s18-green); }

/* 표 */
.s18-table { border-collapse: collapse; table-layout: fixed; color: #1a1a1a; }
.s18-table th, .s18-table td { padding: 0 8px; text-align: center; font-weight: 400; letter-spacing: -0.05em; vertical-align: middle; }
.s18-table thead th { border-top: 1px solid #000; border-bottom: 1px solid #000; }
.s18-table tbody tr + tr { border-top: 1px solid var(--s18-line); }
.s18-amt s { text-decoration-thickness: 1.5px; color: #1a1a1a; white-space: nowrap; }
.s18-tag {
  display: flex; align-items: center; justify-content: center;
  background: var(--s18-green); color: var(--c-white); font-weight: 700; letter-spacing: -0.05em; white-space: nowrap;
  border-radius: 8px; box-shadow: 0 3px 6px rgba(0, 0, 0, .22); transform: rotate(-2.5deg);
}
/* 강조모션: 표가 화면에 들어오면 초록 알약이 하나씩 튀어나온다 */
.js .s18-table.in .s18-tag { animation: s18-tag .55s cubic-bezier(.3,1.5,.5,1) both; }
.js .s18-table.in tr:nth-child(2) .s18-tag { animation-delay: .08s; }
.js .s18-table.in tr:nth-child(3) .s18-tag { animation-delay: .16s; }
.js .s18-table.in tr:nth-child(4) .s18-tag { animation-delay: .24s; }
.js .s18-table.in tr:nth-child(5) .s18-tag { animation-delay: .32s; }
.js .s18-table.in tr:nth-child(6) .s18-tag { animation-delay: .40s; }
.js .s18-table.in tr:nth-child(7) .s18-tag { animation-delay: .48s; }
.js .s18-table.in tr:nth-child(8) .s18-tag { animation-delay: .56s; }
@keyframes s18-tag { 0% { transform: translateX(36px) rotate(4deg) scale(.86); } 100% { transform: rotate(-2.5deg); } }
.js .s18-table.in .s18-amt s { animation: s18-strike .5s ease-out both; }
@keyframes s18-strike { from { text-decoration-color: transparent; } to { text-decoration-color: currentColor; } }

/* 합계 띠 + 금색 배지 */
.s18-sum { position: relative; display: flex; align-items: center; background: #000; color: var(--c-white); }
.s18-total { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.s18-total-k { font-weight: 500; letter-spacing: -0.04em; }
.s18-total-v { font-weight: 900; letter-spacing: -0.03em; }
.s18-zero { color: #ff3b30; }  /* 10-27 대표님: 합계 0원 빨간 강조 (검은 띠 위 대비 5.6:1) */
.s18 .s18-badge { position: absolute; text-align: center; color: var(--s18-badge-gold); }
.s18-badge-rim { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.s18-badge-t { position: absolute; left: 0; right: 0; top: 24%; letter-spacing: -0.04em; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.s18-badge-s { position: absolute; left: 0; right: 0; bottom: 19%; font-size: 10px; line-height: 1; letter-spacing: 3px; color: var(--s18-badge-gold); }
.s18-badge-s i { font-style: normal; }
.s18-badge-s .s18-big { font-size: 14px; }
.js .s18-badge.in { animation: s18-badge .8s cubic-bezier(.3,1.4,.5,1) both, s18-pulse 2.6s ease-in-out 1.2s infinite; }
@keyframes s18-badge { 0% { transform: rotate(-35deg) scale(.6); } 100% { transform: none; } }
@keyframes s18-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.06) rotate(-3deg); } }
.s18-foot { color: var(--s18-foot); letter-spacing: -0.04em; text-align: left; }

/* ---------- PC: 시안 좌표 ---------- */
@media (min-width: 1280px) {
  .s18 { padding-bottom: 181px; }
  .s18-card { width: min(1684px, calc(100% - 80px)); border-radius: 60px; padding: 152px 0 98px; }
  .s18-kicker { font-size: 21px; line-height: 30px; }
  .s18-title { margin-top: 15px; font-size: 62px; line-height: 73px; }
  .s18-body { width: 1113px; margin: 51px 0 0 calc(50% - 535px); }
  .s18-table { width: 1066px; font-size: 17px; }
  .s18-c1 { width: 364px; } .s18-c2 { width: 352px; } .s18-c3 { width: 247px; } .s18-c4 { width: 103px; }
  .s18-table th, .s18-table td { font-size: 17px; }
  .s18-table thead tr { height: 50px; }
  .s18-table tbody tr { height: 50px; }
  .s18-table tbody tr:first-child { height: 51px; }
  .s18-th-amt { padding-right: 42px !important; }
  .s18-tagc { position: relative; }
  .s18-tag { position: absolute; left: -69px; top: 50%; width: 219px; height: 43px; margin-top: -25.5px; font-size: 17px; }
  .s18-table tbody tr:first-child .s18-tag { transform: rotate(-3.5deg); }
  .s18-sum { margin-top: 22px; width: 1109px; height: 72px; border-radius: 18px; justify-content: flex-end; padding-right: 492px; }
  .s18-total-k { font-size: 19px; }
  .s18-total-v { font-size: 40px; line-height: 1; }
  .s18-badge { left: 631px; top: -30px; width: 152px; height: 152px; }
  .s18-badge-t { font-size: 26px; line-height: 29px; }
  .s18-foot { margin-top: 20px; font-size: 16px; line-height: 25px; }
}

/* ---------- 태블릿 ---------- */
@media (min-width: 769px) and (max-width: 1279px) {
  .s18 { padding-bottom: 150px; }
  .s18-card { width: calc(100% - 48px); border-radius: 40px; padding: 96px 32px 60px; }
  .s18-kicker { font-size: 19px; line-height: 1.5; }
  .s18-title { margin-top: 10px; font-size: clamp(40px, 5.4vw, 60px); line-height: 1.2; }
  .s18-body { max-width: 1000px; margin: 40px auto 0; }
  .s18-table { width: 100%; }
  .s18-c1 { width: 29%; } .s18-c2 { width: 33%; } .s18-c3 { width: 15%; } .s18-c4 { width: 23%; }
  .s18-table th, .s18-table td { font-size: 16px; }
  .s18-table thead tr { height: 48px; }
  .s18-table tbody tr { height: 54px; }
  .s18-tag { min-height: 38px; padding: 6px 10px; font-size: 15px; }
  .s18-sum { margin-top: 22px; height: 72px; border-radius: 18px; justify-content: center; padding-right: 150px; }
  .s18-total-k { font-size: 18px; }
  .s18-total-v { font-size: 36px; line-height: 1; }
  .s18-badge { right: 18px; top: -28px; width: 128px; height: 128px; }
  .s18-badge-t { font-size: 22px; line-height: 25px; }
  .s18-foot { margin-top: 18px; font-size: 15px; line-height: 1.6; }
}

/* ---------- 휴대폰: 표를 카드형으로 ---------- */
@media (max-width: 768px) {
  .s18 { padding-bottom: 96px; }
  .s18::before { height: 70px; }
  .s18::after { height: 82px; background-size: 960px 82px; }
  .s18-card { width: calc(100% - 24px); border-radius: 28px; padding: 64px 16px 36px; }
  .s18-kicker { font-size: 15px; line-height: 1.5; }
  .s18-title { margin-top: 8px; font-size: clamp(28px, 8vw, 40px); line-height: 1.22; }
  .s18-body { margin-top: 28px; }
  .s18-table, .s18-table tbody, .s18-table tr { display: block; width: 100%; }
  .s18-table colgroup, .s18-table thead { display: none; }
  .s18-table { border-top: 1px solid #000; border-bottom: 1px solid #000; }
  .s18-table tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 14px 2px; }
  .s18-table th, .s18-table td { display: block; padding: 0; text-align: left; font-size: 15px; }
  .s18-table tbody th { grid-column: 1; grid-row: 1; font-weight: 700; font-size: 16px; line-height: 1.4; }
  .s18-desc { grid-column: 1; grid-row: 2; color: #555; font-size: 14px !important; line-height: 1.45; }
  .s18-amt { grid-column: 2; grid-row: 1; text-align: right !important; font-size: 15px; }
  .s18-tagc { grid-column: 2; grid-row: 2; }
  .s18-tag { min-height: 32px; padding: 4px 12px; font-size: 14px; border-radius: 7px; transform: rotate(-2deg); }
  @keyframes s18-tag { 0% { transform: translateX(24px) rotate(4deg) scale(.86); } 100% { transform: rotate(-2deg); } }
  .s18-sum { margin-top: 30px; min-height: 64px; border-radius: 14px; padding: 0 104px 0 18px; justify-content: flex-start; }
  .s18-total-k { font-size: 15px; }
  .s18-total-v { font-size: clamp(26px, 7vw, 32px); line-height: 1; }
  .s18-badge { right: 4px; top: 50%; margin-top: -48px; width: 96px; height: 96px; }
  .s18-badge-t { font-size: 16px; line-height: 18px; top: 26%; }
  .s18-badge-s { font-size: 8px; letter-spacing: 2px; }
  .s18-badge-s .s18-big { font-size: 11px; }
  .s18-foot { margin-top: 16px; font-size: 14px; line-height: 1.6; }
}
