﻿:root {
    --bg: #f2f3f5;
    --panel: #ffffff;
    --panel2: #f7f8fa;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(0,0,0,.08);
    --accent: #3b82f6;
    --accent2: #6366f1;
    --mint: #10b981;
    --violet: #7c3aed;
    --danger: #ef4444;
    --radius: 18px;
    --shadow: 0 6px 18px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--text);
    line-height: 1.45;
    font-family: ui-sans-serif,system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",Roboto,Arial,"맑은 고딕","Malgun Gothic",sans-serif;
    /*    background: linear-gradient(180deg,#f7f8fa 0%,#f2f3f5 60%,#edf0f4 100%);*/
    background-color: #f3f4f6; /* 단색 그레이 */
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 14px 120px
}

/* 상단바 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(120%) blur(6px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 5px
}

    .brand img {
        width: 90px;
        height: 60px;
        border-radius: 4px
    }

    .brand b {
        font-weight: 800
    }

.statbar {
    margin-left: auto;
    display: flex;
    gap: 8px;
    font-variant-numeric: tabular-nums
}

.pill {
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    gap: 6px;
    align-items: center
}

    .pill small {
        color: var(--muted)
    }

/* 히어로 & 폼 */
.hero {
    margin-top: 14px
}

.hero-inner {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    background: var(--panel);
    box-shadow: var(--shadow)
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffeeee;
    color: #a11;
    border: 1px solid #f5c2c2;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .9rem
}

.hero h1 {
    margin: 10px 0 6px;
    font-size: 1.36rem
}

.hero p {
    margin: 0;
    color: #4b5563
}

/* 폼 카드 */
.form {
    display: grid;
    gap: 10px;
    background: var(--panel2);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 16px
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.input {
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .input label {
        font-size: .86rem;
        color: #6b7280
    }

    .input input, .input select {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #dfe3ea;
        background: #fff;
        color: var(--text);
        font-size: 1rem;
        outline: none;
    }

    .input select {
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="%239aa4b2"><path d="M5 7l5 6 5-6"/></svg>');
        background-repeat: no-repeat;
        background-position: right 10px center
    }

.form .agree {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: .9rem
}

.btn {
    appearance: none;
    border: 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 800;
    background: linear-gradient(90deg,var(--accent),var(--accent2));
    color: #fff;
    box-shadow: 0 8px 18px rgba(99,102,241,.18);
    cursor: pointer
}

    .btn:active {
        transform: translateY(1px)
    }

/* 섹션 공통 */
.section {
    margin: 22px 0
}

    .section h2 {
        font-size: 1.12rem;
        margin: 0 0 10px
    }

    .section small {
        color: var(--muted)
    }

/* 이용후기 */
.stories {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.story {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel)
}

    .story img {
        width: 100%;
        aspect-ratio: 16/11;
        object-fit: cover;
        display: block
    }

    .story .txt {
        padding: 10px
    }

    .story b {
        display: block;
        font-size: .95rem;
        margin-bottom: 4px
    }

    .story p {
        margin: 0;
        color: var(--muted);
        font-size: .88rem
    }

/* 진행현황 */
.progress-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    overflow: hidden
}

.progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border)
}

    .progress-head b {
        font-size: 1rem
    }

    .progress-head small {
        color: var(--muted)
    }

.ticker-viewport {
    height: 264px;
    overflow: hidden;
    position: relative
}

.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 44px;
    padding: 0 12px;
    border-bottom: 1px dashed var(--border);
    background: #fff
}

.left, .tl {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent)
}

.title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.meta, .tr {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.badge-new {
    font-size: .75rem;
    font-weight: 900;
    color: #052012;
    background: #a7f3d0;
    padding: 2px 8px;
    border-radius: 999px
}

.badge-gray {
    font-size: .75rem;
    color: #4b5563;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 999px
}

.time {
    color: var(--muted);
    font-variant-numeric: tabular-nums
}

/* 푸터 & 도크 */
footer {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff
}

    footer p {
        margin: .2rem 0;
        color: #4b5563;
        font-size: .9rem
    }

    footer .muted {
        color: var(--muted)
    }

.dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: linear-gradient(180deg,rgba(242,243,245,0),rgba(242,243,245,.95));
    padding: 12px 14px 14px
}

    .dock .cta {
        max-width: 560px;
        margin: 0 auto;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 10px;
        display: flex;
        gap: 8px;
        align-items: center;
        box-shadow: var(--shadow)
    }

.call {
    white-space: nowrap;
    padding: 12px 14px;
    border-radius: 12px;
    background: #10b981;
    color: #052012;
    font-weight: 900
}

.dock input {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid #dfe3ea;
    background: #fff;
    color: var(--text);
    padding: 12px
}

.dock button {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #eef2ff;
    color: #111827;
    font-weight: 800
}

.legal {
    margin-top: 6px;
    text-align: center;
    color: var(--muted);
    font-size: .8rem
}


.memo-box {
    border: 1px solid #ccc; /* input과 동일한 테두리 */
    border-radius: 12px; /* input 박스와 같은 라운드 */
    padding: 10px 14px; /* 내부 여백 */
    min-height: 60px; /* 기본 높이 */
    font-size: 1rem; /* 글씨 크기 동일 */
    resize: vertical; /* 사용자가 세로로 크기 조절 가능 */
    outline: none; /* 포커스 시 기본 테두리 제거 */
    box-sizing: border-box; /* 크기 계산 동일 */
}
