@font-face { font-family: Pretendard; src: url(/fonts/PretendardVariable.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f3f6f5; --panel: #fff; --line: #dbe3e0; --line-2: #ecf1ef; --text: #12201b; --muted: #66756f; --soft: #f7faf9;
  --pri: #0e9f7a; --pri-2: #0b8565; --pri-3: #e3f6f0; --ink: #0f2a22; --ink-2: #1c3d33;
  --blue: #2563eb; --blue-3: #e8effe; --ok: #16a34a; --ok-3: #e5f6eb; --warn: #c27a0a; --warn-3: #fcf2de; --red: #d63a2f; --red-3: #fdecea; --gray-3: #edf1ef;
  --font: Pretendard, "Noto Sans KR", system-ui, sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #f3a43b; outline-offset: 1px; }
.n, td.n { font-variant-numeric: tabular-nums; }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 틀 */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.hd .in { max-width: 1120px; margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.logo { font-weight: 900; font-size: 21px; letter-spacing: -.6px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: var(--pri); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 17px; }
.logo small { font-size: 11px; font-weight: 800; color: var(--pri-2); background: var(--pri-3); border-radius: 6px; padding: 2px 6px; }
.hd nav { display: none; gap: 4px; margin-left: 14px; }
.hd nav a { padding: 8px 12px; border-radius: 9px; font-weight: 700; font-size: 15px; color: #42514b; }
.hd nav a.on, .hd nav a:hover { background: var(--soft); color: var(--text); }
.hd .r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icb { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; position: relative; color: #3a4a44; }
.icb:hover { background: var(--soft); }
.icb .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.rolesw { display: flex; background: var(--gray-3); border-radius: 11px; padding: 3px; }
.rolesw button { height: 34px; padding: 0 11px; border-radius: 8px; font-size: 13.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.rolesw button.on { background: #fff; color: var(--pri-2); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 18px 16px 110px; }
.narrow { max-width: 620px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 800; color: #8a9893; position: relative; }
.tabbar a svg { font-size: 24px; }
.tabbar a.on { color: var(--pri-2); }

/* 공통 요소 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 15.5px; white-space: nowrap; border: 1px solid transparent; transition: transform .08s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.pri { background: var(--pri); color: #fff; } .btn.pri:hover:not(:disabled) { background: var(--pri-2); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.line { background: #fff; border-color: var(--line); } .btn.line:hover:not(:disabled) { background: var(--soft); }
.btn.ghost { color: var(--muted); }
.btn.danger { background: #fff; border-color: #f2c6c2; color: var(--red); }
.btn.kakao { background: #fee500; color: #191600; }
.btn.lg { height: 56px; font-size: 17px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.inp, select.inp, textarea.inp { height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; min-width: 0; width: 100%; }
textarea.inp { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.inp:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-3); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 800; color: #33433d; }
label.f > small, .lb small { font-weight: 500; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.fgrid .full { grid-column: 1 / -1; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chk input { width: 19px; height: 19px; accent-color: var(--pri); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.card > .h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); font-weight: 900; font-size: 16px; }
.card > .h .r { margin-left: auto; display: flex; gap: 6px; font-weight: 600; }
.card > .b { padding: 14px 16px; } .card > .b.p0 { padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--gray-3); color: #55645e; }
.pill.ok { background: var(--ok-3); color: var(--ok); } .pill.warn { background: var(--warn-3); color: var(--warn); } .pill.red { background: var(--red-3); color: var(--red); } .pill.blue { background: var(--blue-3); color: var(--blue); } .pill.pri { background: var(--pri-3); color: var(--pri-2); } .pill.ink { background: var(--ink); color: #fff; }
.ph { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.ph .sub { color: var(--muted); font-size: 14px; width: 100%; margin-top: -6px; }
.ph .r { margin-left: auto; display: flex; gap: 8px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; } .crumb a { text-decoration: underline; }
.note { background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; font-size: 14px; color: #44534d; line-height: 1.6; }
.note.pri { background: var(--pri-3); border-color: #bfe8da; color: #0b5d48; } .note.warn { background: var(--warn-3); border-color: #f1ddb4; color: #7a4d06; }
.err { background: var(--red-3); color: var(--red); border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: 14px; margin-top: 10px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--pri); border-radius: 50%; animation: sp .8s linear infinite; margin: 60px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: rgba(15,30,25,.94); color: #fff; padding: 13px 22px; border-radius: 12px; font-weight: 700; z-index: 200; animation: tst 2.6s forwards; max-width: calc(100% - 32px); text-align: center; }
@keyframes tst { 0% { opacity: 0; transform: translate(-50%, 8px); } 8% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { height: 44px; padding: 0 14px; font-weight: 800; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--pri); }

/* 표 (관리자) */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.t th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 800; padding: 10px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; } table.t td.c, table.t th.c { text-align: center; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f6faf8; }
table.t tr.dim td { color: #9aa7a2; }
table.t tfoot td { font-weight: 900; background: var(--soft); }
table.t td .sub { display: block; font-size: 12.5px; color: var(--muted); }

/* 목록 카드 */
.list { display: grid; gap: 10px; }
.qc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; }
.qc:hover { border-color: #b6d9cd; }
.qc img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: var(--gray-3); }
.qc .t { flex: 1; min-width: 0; }
.qc .t b { font-size: 17px; font-weight: 900; display: block; letter-spacing: -.3px; }
.qc .t .m { font-size: 14px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.qc .t .m span { display: inline-flex; align-items: center; gap: 4px; }
.qc .side { text-align: right; flex: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.slots { display: inline-flex; gap: 3px; } .slots i { width: 12px; height: 12px; border-radius: 4px; background: var(--pri); } .slots i.e { background: var(--gray-3); border: 1px solid var(--line); }
.big-slots { display: flex; gap: 8px; align-items: center; }
.big-slots i { width: 34px; height: 34px; border-radius: 10px; background: var(--pri); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.big-slots i.e { background: #fff; border: 2px dashed #b9cdc6; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; font-size: 15px; }
.kv > span { color: var(--muted); font-weight: 700; }
.lock { display: flex; align-items: center; gap: 10px; background: repeating-linear-gradient(45deg, #f3f6f5, #f3f6f5 8px, #fafcfb 8px, #fafcfb 16px); border: 1px dashed #b9cdc6; border-radius: 12px; padding: 12px 14px; color: #56665f; font-weight: 700; font-size: 14.5px; }
.lock svg { font-size: 22px; color: var(--pri-2); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.photos .add { width: 96px; height: 96px; border-radius: 12px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.photos .add svg { font-size: 24px; }
.ph-x { position: relative; } .ph-x button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline > div { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 12px; position: relative; font-size: 14px; }
.timeline > div::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pri); margin-top: 5px; }
.timeline > div::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline > div:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; }
.party { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.party .h { display: flex; align-items: center; gap: 8px; } .party .h b { font-size: 16px; }
.party.won { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-3); }
.member { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.member:last-child { border-bottom: 0; }
.av { width: 38px; height: 38px; border-radius: 12px; background: var(--pri-3); color: var(--pri-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex: none; }

/* 첫 화면 */
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; margin-bottom: 18px; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,30,22,.05), rgba(5,30,22,.82)); }
.hero .c { position: relative; z-index: 1; padding: 26px 22px; }
.hero h1 { font-size: 32px; line-height: 1.25; letter-spacing: -1px; margin: 8px 0 10px; font-weight: 900; }
.hero p { margin: 0 0 18px; color: #d9efe8; font-size: 16px; line-height: 1.6; }
.hero .a { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .badge { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc a { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; color: #fff; display: flex; align-items: flex-end; padding: 10px; font-weight: 900; font-size: 14.5px; }
.svc a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.72)); }
.svc a span { position: relative; z-index: 1; }
.three { display: grid; gap: 12px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.feat img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.feat .t { padding: 14px 16px 16px; } .feat b { font-size: 18px; font-weight: 900; display: block; margin-bottom: 4px; } .feat p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.how { display: grid; gap: 10px; counter-reset: s; }
.how > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 14px 56px; position: relative; font-size: 15px; line-height: 1.55; }
.how > div::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 9px; background: var(--pri); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.how b { display: block; font-size: 16px; }
.sec { margin-top: 28px; } .sec > h2 { font-size: 21px; font-weight: 900; margin: 0 0 12px; letter-spacing: -.5px; }
.steps { display: flex; gap: 5px; margin: 6px 0 16px; } .steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--pri); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.dock > div { max-width: 620px; margin: 0 auto; display: flex; gap: 8px; } .dock .btn { flex: 1; }

/* 모달 */
.ov { position: fixed; inset: 0; background: rgba(10,25,20,.5); z-index: 100; display: flex; align-items: flex-end; justify-content: center; overflow-y: auto; }
.modal { background: #fff; border-radius: 22px 22px 0 0; width: 100%; max-width: 640px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: up .18s; max-height: 94vh; overflow-y: auto; }
.modal.wide { max-width: 900px; } .modal.mid { max-width: 760px; }
.modal > .h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); font-weight: 900; font-size: 17px; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal > .h .x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); }
.modal > .b { padding: 16px 18px; }
.modal > .f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--soft); position: sticky; bottom: 0; }
.modal > .f .btn { height: 46px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 관리자 */
.adm { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-nav { background: var(--ink); color: #cfe0da; border-radius: 16px; padding: 10px; position: sticky; top: 78px; display: flex; flex-direction: column; gap: 2px; }
.adm-nav a { padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.adm-nav a.on, .adm-nav a:hover { background: var(--ink-2); color: #fff; }
.adm-nav a .c { margin-left: auto; background: var(--red); color: #fff; font-size: 11.5px; border-radius: 999px; padding: 0 7px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 800; } .kpi b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.funnel { display: grid; gap: 6px; }
.funnel > div { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.funnel .bar { height: 26px; background: var(--gray-3); border-radius: 8px; overflow: hidden; } .funnel .bar i { display: block; height: 100%; background: var(--pri); border-radius: 8px; }
.login { max-width: 440px; margin: 20px auto; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo button { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 12px; text-align: left; }
.demo button b { display: block; font-size: 15px; } .demo button small { color: var(--muted); font-size: 12.5px; }
.demo button:hover { border-color: var(--pri); }

@media (min-width: 760px) {
  .hd nav { display: flex; }
  .tabbar { display: none; }
  .wrap { padding-bottom: 60px; }
  .hero { min-height: 480px; align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(5,30,22,.85), rgba(5,30,22,.15) 70%); }
  .hero .c { padding: 50px; max-width: 600px; }
  .hero h1 { font-size: 44px; }
  .svc { grid-template-columns: repeat(6, 1fr); }
  .three { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: repeat(4, 1fr); }
  .list.g2 { grid-template-columns: 1fr 1fr; }
  .ov { align-items: center; padding: 16px; } .modal { border-radius: 20px; }
  .modal > .f { border-radius: 0 0 20px 20px; }
  .dock { position: static; background: none; padding: 16px 0 0; }
}
@media (max-width: 900px) { .adm { grid-template-columns: 1fr; } .adm-nav { position: static; flex-direction: row; overflow-x: auto; } .adm-nav a { white-space: nowrap; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } .hd .logo small { display: none; } .rolesw button { padding: 0 8px; font-size: 12.5px; } }
