/* 디지털 명함 만들기 화면 */
:root { --ink: #14161b; --text: #2a2e35; --muted: #666c76; --line: #e2e5ea; --bg: #f5f6f8; --gold: #b08a3c; --main: #14161b; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.ctop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #0f1114; color: #fff; }
.ctop__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 18px; line-height: 1.2; }
.ctop__brand img { border-radius: 10px; display: block; }
.ctop__brand small { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65); }
.ctop__nav { display: flex; gap: 6px; }
.ctop__nav a { padding: 9px 14px; border-radius: 10px; text-decoration: none; font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; }
.ctop__nav a:hover { background: rgba(255,255,255,.1); }

.cwrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 120px; }
.chero { padding: 46px 0 30px; max-width: 760px; }
.chero__eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.chero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.chero h1 u { text-decoration: none; background: linear-gradient(transparent 62%, #ecdcb4 62%); }
.chero p { margin: 16px 0 0; font-size: 19px; color: var(--muted); }

.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.cform { display: grid; gap: 18px; min-width: 0; }
.csec { margin: 0; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: grid; gap: 16px; min-width: 0; }
.csec legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 22px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.csec legend + * { clear: both; }
.csec legend i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 16px; flex: none; }
.csec legend small { font-size: 15px; font-weight: 500; color: var(--muted); }
.csec--req { border-color: #d9c79a; background: #fffdf7; }

.cf { display: grid; gap: 7px; min-width: 0; }
.cf > span { font-size: 16px; font-weight: 700; color: var(--ink); }
.cf > span small { font-weight: 500; color: var(--muted); font-size: 14px; }
.cf b, .ccheck b { color: #b3261e; }
.cf input, .cf textarea, .csvc input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfd4db; border-radius: 12px; background: #fff; font-size: 17px; }
.cf textarea { resize: vertical; line-height: 1.6; }
.cf input:focus, .cf textarea:focus, .csvc input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.cf input::placeholder, .cf textarea::placeholder, .csvc input::placeholder { color: #a3a9b3; }
.cf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.csvc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-bottom: 8px; }
.chint { margin: 0; font-size: 15px; color: var(--muted); }
.cwarn { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff6dd; color: #5c4400; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 18px; border-radius: 99px; border: 1px solid #cfd4db; background: #fff; font-size: 16.5px; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; }
.theme { display: grid; gap: 6px; justify-items: center; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.theme::before { content: ""; width: 58px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--a), var(--b)); }
.theme.is-on { border-color: var(--ink); color: var(--ink); }

.cphoto { display: flex; align-items: center; gap: 18px; }
.cphoto__img { width: 88px; height: 88px; border-radius: 50%; background: #e8ebf0; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #8a909a; overflow: hidden; flex: none; }
.cphoto__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; text-decoration: none; }
.cbtn--line { background: #fff; color: var(--ink); }
.cbtn--main { background: var(--main); color: #fff; min-height: 60px; font-size: 19px; width: 100%; }
.cbtn[disabled] { opacity: .5; cursor: default; }
.clink { padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 15px; text-decoration: underline; cursor: pointer; }

.cslug { display: flex; align-items: center; border: 1px solid #cfd4db; border-radius: 12px; background: #fff; overflow: hidden; }
.cslug em { padding: 0 4px 0 14px; font-style: normal; color: var(--muted); font-size: 15.5px; white-space: nowrap; }
.cslug input { border: 0; padding-left: 2px; min-width: 0; }
.cslug input:focus { outline: none; }
.cslug:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.ccheck { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 600; cursor: pointer; }
.ccheck input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.cmore { font-size: 15px; color: var(--muted); }
.cmore summary { cursor: pointer; text-decoration: underline; margin-bottom: 6px; }
.cmsg { margin: 0; padding: 12px 14px; border-radius: 12px; background: #eef1f5; font-weight: 600; }
.cmsg.is-bad { background: #fdecea; color: #8c1d18; }

.cstatus { padding: 18px 20px; border-radius: 16px; background: #eef3fb; border: 1px solid #c9d8ef; display: grid; gap: 6px; }
.cstatus b { font-size: 19px; color: var(--ink); }
.cstatus p { margin: 0; font-size: 15.5px; }
.cstatus a { font-weight: 700; word-break: break-all; }
.cstatus.is-live { background: #e9f6ef; border-color: #b9dfc9; }

.cprev { position: sticky; top: 84px; }
.cprev__bar { display: none; }
.cphone { height: min(760px, calc(100vh - 120px)); border: 10px solid #0b0c10; border-radius: 40px; overflow: hidden; background: #f6f7f9; box-shadow: 0 24px 60px rgba(15, 20, 30, .22); }
.cphone iframe { width: 100%; height: 100%; border: 0; display: block; }
.cfab { display: none; }
.ctoast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }

@media (max-width: 980px) {
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .cprev { display: none; position: fixed; inset: 0; top: 0; z-index: 50; background: #e9edf2; padding: 0 14px 14px; }
  body.is-prev { overflow: hidden; }
  body.is-prev .cprev { display: flex; flex-direction: column; }
  .cprev__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px; font-size: 18px; }
  .cphone { flex: 1; height: auto; max-width: 440px; width: 100%; margin: 0 auto; border-width: 8px; border-radius: 32px; }
  .cfab { display: block; position: fixed; right: 16px; bottom: 18px; z-index: 40; min-height: 56px; padding: 12px 24px; border-radius: 99px; border: 0; background: var(--gold); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 10px 26px rgba(0,0,0,.28); cursor: pointer; }
  body.is-prev .cfab { display: none; }
}
@media (max-width: 560px) {
  .ctop { padding: 10px 14px; }
  .ctop__brand span { display: none; }
  .ctop__nav a { padding: 8px 10px; font-size: 15px; }
  .cwrap { padding: 0 14px 110px; }
  .chero { padding: 30px 0 22px; }
  .chero p { font-size: 17.5px; }
  .csec { padding: 22px 16px; border-radius: 16px; }
  .csec legend { font-size: 20px; }
  .cf2, .csvc { grid-template-columns: minmax(0, 1fr); }
  .csvc { margin-bottom: 14px; }
}
[hidden] { display: none !important; }

/* 예시 시안 */
.csamples { margin: 0 0 34px; }
.csamples__head h2 { margin: 0; font-size: 26px; color: var(--ink); }
.csamples__head p { margin: 6px 0 0; font-size: 17px; color: var(--muted); max-width: 760px; }
.csamples__row { display: flex; gap: 18px; margin-top: 20px; padding: 4px 2px 14px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.csample { flex: none; width: 216px; display: grid; gap: 4px; justify-items: start; scroll-snap-align: start; }
.csample b { margin-top: 8px; font-size: 18px; color: var(--ink); }
.csample small { font-size: 14.5px; color: var(--muted); }
.csample__view { position: relative; display: block; padding: 0; border: 6px solid #0b0c10; border-radius: 26px; background: #f6f7f9; overflow: hidden; cursor: pointer; box-shadow: 0 14px 34px rgba(15, 20, 30, .18); }
.csample__frame { display: block; width: 204px; height: 400px; overflow: hidden; }
.csample__frame iframe { width: 375px; height: 736px; border: 0; transform: scale(.544); transform-origin: 0 0; pointer-events: none; display: block; }
.csample__view em { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: rgba(15, 17, 20, .82); color: #fff; font-style: normal; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.csample__view:hover em, .csample__view:focus-visible em { opacity: 1; }
.csample__view:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.csample__use { margin-top: 8px; width: 100%; min-height: 46px; padding: 8px 10px; font-size: 16px; }
.cmodal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 14px; background: rgba(15, 17, 20, .62); }
.cmodal__in { display: flex; flex-direction: column; gap: 12px; width: min(440px, 100%); height: min(860px, 100%); padding: 0 14px 14px; border-radius: 22px; background: #e9edf2; }
.cmodal .cprev__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; font-size: 17px; }
.cmodal .cphone { flex: 1; min-height: 0; height: auto; border-width: 8px; border-radius: 32px; }
body.is-modal { overflow: hidden; }
@media (hover: none) { .csample__view em { opacity: 1; } }
@media (max-width: 560px) { .csamples__head h2 { font-size: 23px; } .csamples__row { margin-right: -14px; padding-right: 14px; } }
