:root {
    --wall: #1c1f1d;
    --wall-2: #161916;
    --pane: #242824;
    --pane-2: #2b302b;
    --tube: #e8f0d8;
    --tube-dim: #c5d4ae;
    --lime: #a4d65e;
    --lime-deep: #7eae3c;
    --lime-glow: rgba(164, 214, 94, 0.28);
    --delay: #e0c36a;
    --closed: #8a9380;
    --line: rgba(232, 240, 216, 0.12);
    --line-strong: rgba(164, 214, 94, 0.35);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
    background: var(--wall);
    color: var(--tube);
    line-height: 1.75;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    vertical-align: top;
}

th {
    font-weight: 600;
    color: var(--lime);
    background: rgba(164, 214, 94, 0.06);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

caption {
    caption-side: top;
    text-align: left;
    font-size: 0.82rem;
    color: var(--tube-dim);
    margin-bottom: 0.55rem;
}

/* 상단 형광등 */
.tube {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 14px;
    background: linear-gradient(90deg, #6f8660 0%, var(--tube) 18%, #fffef4 48%, #f3f8e6 52%, var(--tube) 82%, #6f8660 100%);
    box-shadow: 0 12px 32px rgba(232, 240, 216, 0.28), 0 0 48px rgba(164, 214, 94, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.booth {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem 4.5rem;
}

.stamp {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem 1.4rem;
    padding: 1.35rem 0 1.1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--tube-dim);
}

.stamp b {
    color: var(--lime);
    font-weight: 600;
}

.booth-no {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: var(--tube);
}

.sec {
    padding: 3.4rem 0 3.1rem;
    border-bottom: 1px solid var(--line);
}

.sec:last-of-type {
    border-bottom: 0;
}

.kicker {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: none;
    color: var(--lime);
    margin-bottom: 0.7rem;
    font-weight: 500;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.35;
    color: var(--tube);
}

h1 {
    font-size: clamp(2rem, 4.2vw, 3.05rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
}

h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    margin-bottom: 0.85rem;
}

h3 {
    font-size: 1.05rem;
    margin: 1.15rem 0 0.4rem;
}

h4 {
    font-size: 0.92rem;
    color: var(--lime);
    margin: 0.7rem 0 0.3rem;
    font-weight: 500;
}

.lead,
.intro {
    color: var(--tube-dim);
    max-width: 40rem;
}

.lead + .lead,
.intro + .intro {
    margin-top: 0.85rem;
}

.mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 8px var(--lime);
    display: inline-block;
}

.status.is-delay i {
    background: var(--delay);
    box-shadow: 0 0 8px var(--delay);
}

.status.is-closed i {
    background: var(--closed);
    box-shadow: none;
}

/* 이미지 자리 */
.slot {
    margin: 0;
}

.slot img {
    display: block;
    width: 100%;
    object-fit: cover;
    background: var(--pane);
    border: 1px solid var(--line);
}

.slot figcaption {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--closed);
}

.slot-portrait-lg img {
    max-width: 420px;
    height: 560px;
}

.slot-portrait-sm img {
    max-width: 280px;
    height: 420px;
}

.slot-phone img {
    max-width: 280px;
    height: 520px;
}

.slot-clock img {
    max-width: 300px;
    height: 480px;
}

.slot-square img {
    width: 160px;
    height: 160px;
}

.slot-square-sm img {
    width: 120px;
    height: 120px;
}

.slot-banner img {
    height: 160px;
}

.slot-wide img {
    height: 180px;
}

.slot-billwide img {
    height: 280px;
}

/* 1. 고지서 자리 — 부스 창 */
.sec-bill-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 420px);
    gap: 2.4rem 2.8rem;
    align-items: start;
}

.sec-bill .pane-note {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    background: var(--pane);
    border-left: 3px solid var(--lime);
}

/* 2. 금액 카운터 */
.counter-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.counter {
    background: var(--pane);
    padding: 1.05rem 0.9rem 1.15rem;
    min-height: 8.5rem;
    box-shadow: var(--shadow);
}

.counter h3 {
    margin-top: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.35rem;
    color: var(--lime);
}

.counter p {
    font-size: 0.84rem;
    color: var(--tube-dim);
}

.counter.is-closed {
    opacity: 0.55;
}

.counter.is-closed h3 {
    color: var(--closed);
}

/* 3. 갈리는 지점 */
.sec-split-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem 2.4rem;
    align-items: start;
}

.table-stack {
    display: grid;
    gap: 1.4rem;
}

.table-wrap {
    overflow-x: auto;
    background: var(--pane);
    padding: 0.9rem 0.4rem 0.4rem;
}

/* 4. 통신사 현황판 */
.carrier-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.3rem;
}

.carrier {
    background: var(--pane-2);
    padding: 1.2rem 1.15rem 1.3rem;
    border-top: 3px solid var(--lime);
}

.carrier.is-delay {
    border-top-color: var(--delay);
}

.carrier h3 {
    margin-top: 0.35rem;
    font-size: 1.2rem;
}

/* 5. 비율표 4장 */
.rate-head {
    margin-bottom: 1rem;
}

.rate-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.1rem;
}

.rate-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--tube-dim);
}

.apply-time {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--lime);
    font-size: 0.84rem;
    margin-top: 0.5rem;
}

/* 6. 세로 동선 */
.rail {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
    margin-top: 1.2rem;
}

.rail-steps {
    display: grid;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.35rem 0 1.15rem;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--lime);
    color: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.85rem;
    position: relative;
    background: var(--wall);
}

.step:not(:last-child) .step-num::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 50%;
    width: 1px;
    height: calc(100% + 0.8rem);
    background: var(--line-strong);
}

.step h3 {
    margin-top: 0.15rem;
}

.step p {
    color: var(--tube-dim);
    font-size: 0.92rem;
}

/* 7. 문자 확인 */
.sec-sms-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem 2.4rem;
    align-items: start;
}

.sms-block {
    background: var(--pane);
    padding: 0.95rem 1rem;
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--tube-dim);
}

.sms-block strong {
    display: block;
    color: var(--tube);
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

/* 8. 조건 격자 */
.cond-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.cond {
    background: var(--pane);
    padding: 1rem 1rem 1.15rem;
    min-height: 10.5rem;
}

.cond h3 {
    margin-top: 0;
    font-size: 1rem;
}

.cond p {
    font-size: 0.86rem;
    color: var(--tube-dim);
}

/* 9. 시간대 메모 */
.sec-memo-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.memo-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.memo {
    background: #2a3324;
    padding: 0.9rem 1rem;
    min-height: 7rem;
}

.memo h4 {
    margin-top: 0;
}

.memo p {
    font-size: 0.86rem;
    color: var(--tube-dim);
}

/* 10. 게시판 */
.board {
    width: 100%;
    margin-top: 1.15rem;
}

.board th:nth-child(1),
.board td:nth-child(1) {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    white-space: nowrap;
}

.board td:last-child {
    color: var(--lime);
}

/* 11. 비교 표 3장 */
.compare-block + .compare-block {
    margin-top: 1.8rem;
}

.compare-block h3 {
    margin-top: 0;
}

/* 12. 네 창구 */
.band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}

.band {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    background: var(--pane);
    padding: 1rem;
    align-items: start;
}

.band h3 {
    margin-top: 0;
}

.band ul {
    margin: 0.45rem 0 0 1.05rem;
    color: var(--tube-dim);
    font-size: 0.9rem;
}

.band li + li {
    margin-top: 0.25rem;
}

/* 13. 청구서 흔적 */
.bill-center {
    margin: 1.2rem 0 1.6rem;
}

.trace-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.trace-cols article {
    background: var(--pane);
    padding: 1rem 1.05rem 1.15rem;
}

.trace-cols h3 {
    margin-top: 0;
}

.trace-cols p {
    font-size: 0.9rem;
    color: var(--tube-dim);
}

/* 14. 열린 창 */
.open-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.open-card {
    background: var(--pane-2);
    padding: 1.15rem 1.1rem 1.3rem;
    border-bottom: 3px solid var(--lime);
}

.open-card h3 {
    margin-top: 0;
}

.open-card p {
    color: var(--tube-dim);
    font-size: 0.92rem;
}

.open-time {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.55rem;
    color: var(--lime);
    margin: 0.35rem 0 0.55rem;
}

.site-foot {
    background: var(--wall-2);
    border-top: 1px solid var(--line);
    padding: 2.5rem 1.25rem 2.8rem;
}

.site-foot-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.site-foot p {
    color: var(--tube-dim);
    font-size: 0.9rem;
    max-width: 44rem;
    line-height: 1.8;
}

.site-foot .kicker {
    color: var(--lime);
    margin-bottom: 0.85rem;
}

.site-foot p + p {
    margin-top: 0.75rem;
}

.site-copy {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--closed);
}

@media (max-width: 980px) {
    .sec-bill-grid,
    .sec-split-grid,
    .sec-sms-grid,
    .sec-memo-grid,
    .rail,
    .band {
        grid-template-columns: 1fr;
    }

    .slot-portrait-lg img,
    .slot-portrait-sm img,
    .slot-phone img,
    .slot-clock img {
        height: 360px;
        max-width: none;
    }

    .counter-row,
    .carrier-row,
    .cond-grid,
    .open-grid,
    .trace-cols {
        grid-template-columns: 1fr 1fr;
    }

    .rate-tables,
    .band-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .counter-row,
    .carrier-row,
    .cond-grid,
    .open-grid,
    .trace-cols,
    .memo-cards {
        grid-template-columns: 1fr;
    }

    .slot-square img,
    .slot-square-sm img {
        width: 100%;
        max-width: 160px;
        height: 160px;
    }

    .sec {
        padding: 2.4rem 0;
    }
}
