@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root{
  --bg:#faf7f1;
  --surface:#ffffff;
  --ink:#241f18;
  --ink-2:#5f584c;
  --muted:#9a9284;
  --line:#efe9dd;
  --line-2:#e6ded0;
  --field:#ffffff;
  --primary:#242428;      /* 채널톡식 니어블랙 CTA */
  --primary-h:#3a3a42;
  --gold:#efa01c;         /* 브랜드 포인트(꿀벌) — 절제 */
  --gold-d:#c9800a;
  --gold-soft:#fdf0d1;
  --good:#1dab5b;
  --danger:#e5484d;
  --sans:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --mono:ui-monospace,"SFMono-Regular","Consolas",monospace;
}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;overflow-x:hidden;}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);line-height:1.55;font-size:14px;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;}
a{color:var(--ink);text-decoration:none;}
b,strong{font-weight:600;}

.logo-img{height:32px;width:auto;display:block;flex:none;}
.ic{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.14em;}
.ic-fill{fill:currentColor;stroke:none;}

/* ===== 상단바 (클린 화이트) ===== */
.topbar{height:62px;display:flex;align-items:center;gap:12px;padding:0 18px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 1px 3px rgba(20,20,30,.03);position:sticky;top:0;z-index:30;}
.logo{display:flex;align-items:center;gap:9px;font-weight:600;font-size:17px;letter-spacing:-.02em;color:var(--ink);}
.vr{width:1px;height:20px;background:var(--line-2);}
.site-ctx{display:flex;align-items:center;gap:9px;min-width:0;}
.site-ctx .nm{font-weight:600;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;}
.status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--good);background:#e7f7ee;border:1px solid #cdeedd;border-radius:20px;padding:4px 11px 4px 9px;white-space:nowrap;}
.status .dot{width:6px;height:6px;border-radius:50%;background:var(--good);}
/* 아직 공개 못 하는 상태(전화번호 없음) */
.status.pending{color:#8a6100;background:#fff8e6;border-color:#f0d98a;}
.status.pending .dot{background:#e0a800;}
.pub-warn{background:#fff8e6;border:1px solid #f0d98a;color:#8a6100;border-radius:10px;
  padding:11px 13px;font-size:13px;font-weight:600;line-height:1.65;margin-bottom:14px;}
.pub-warn a{color:#7a5320;}
.topbar .spacer{flex:1;}
.topbar .right{display:flex;align-items:center;gap:8px;}
.logout-form{margin:0;display:inline-flex;}

/* 기기 토글 */
.seg{display:inline-flex;background:#f3eee5;border-radius:10px;padding:3px;}
.seg button{font-family:inherit;font-size:12.5px;font-weight:500;color:var(--muted);background:transparent;border:none;padding:6px 13px;border-radius:8px;cursor:pointer;transition:.12s;}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(20,20,30,.12);}

/* ===== 버튼 ===== */
.btn{font-family:inherit;font-size:13.5px;font-weight:600;line-height:1;border-radius:10px;padding:9px 15px;cursor:pointer;border:1px solid transparent;display:inline-flex;align-items:center;gap:6px;text-decoration:none;white-space:nowrap;transition:background .13s,border-color .13s,color .13s,box-shadow .13s,transform .04s;}
.btn:active{transform:translateY(.5px);}
.btn:disabled{opacity:.5;cursor:default;}
.btn .ic{width:15px;height:15px;}
.btn-primary{background:var(--primary);color:#fff;}
.btn-primary:hover{background:var(--primary-h);}
.btn-accent{background:var(--gold);color:#fff;}
.btn-accent:hover{background:var(--gold-d);}
.btn-ghost{background:#f3eee4;color:var(--ink);border-color:transparent;}
.btn-ghost:hover{background:#ece5d8;}
.btn-quiet{background:transparent;color:var(--muted);border:none;padding:8px 11px;font-family:inherit;font-size:13.5px;font-weight:600;cursor:pointer;border-radius:9px;}
.btn-quiet:hover{color:var(--ink);background:#f3eee4;}

/* ===== 좌 패널 + 우 캔버스 ===== */
.editor{display:grid;grid-template-columns:452px 1fr;height:calc(100vh - 62px);}
.panel{background:var(--surface);border-right:1px solid var(--line);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#dcdde2 transparent;}
.panel::-webkit-scrollbar,.canvas-stage::-webkit-scrollbar{width:10px;height:10px;}
.panel::-webkit-scrollbar-track,.canvas-stage::-webkit-scrollbar-track{background:transparent;}
.panel::-webkit-scrollbar-thumb{background:#dcdde2;border-radius:10px;border:3px solid var(--surface);background-clip:padding-box;}
.panel::-webkit-scrollbar-thumb:hover{background:#c6c7cf;background-clip:padding-box;}
.canvas-stage::-webkit-scrollbar-thumb{background:rgba(20,20,30,.14);border-radius:10px;border:3px solid transparent;background-clip:padding-box;}

.sec{padding:22px 26px;border-bottom:1px solid var(--line);}
.sec-head{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.sec-ic{width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:var(--gold-soft);color:var(--gold-d);}
.sec-ic .ic{width:16px;height:16px;}
.sec-head h3{font-size:14.5px;font-weight:600;color:var(--ink);}
.sec-head .note{margin-left:auto;font-size:11.5px;color:var(--muted);font-weight:500;}

.field{margin-bottom:14px;}
.field:last-child{margin-bottom:0;}
.field > label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:7px;}
.field .hint{font-weight:500;color:var(--muted);font-size:11.5px;}
.field input,.field textarea,.icon-sel{width:100%;font-family:inherit;font-size:14px;color:var(--ink);background:var(--field);border:1px solid var(--line-2);border-radius:10px;padding:11px 13px;transition:border-color .12s,box-shadow .12s;}
.field input::placeholder,.field textarea::placeholder{color:#b6b9c1;}
.field input:focus,.field textarea:focus,.icon-sel:focus{outline:none;border-color:#c9a24a;box-shadow:0 0 0 3px rgba(239,160,28,.16);}
.field textarea{min-height:92px;resize:vertical;line-height:1.6;}
.row2{display:flex;gap:10px;}.row2 .field{flex:1;}
.err{color:var(--danger);font-size:12px;margin-top:6px;font-weight:500;}
.actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap;}

.addon{display:flex;}
.addon input{border-radius:10px 0 0 10px;}
.addon .suffix{display:flex;align-items:center;padding:0 13px;font-family:var(--mono);font-size:12.5px;color:var(--muted);background:#f4f5f7;border:1px solid var(--line-2);border-left:none;border-radius:0 10px 10px 0;white-space:nowrap;}

/* AI 도우미 */
.ai-box{border:1px solid var(--line-2);border-radius:12px;padding:14px;margin-bottom:14px;background:#fafbfc;}
.ai-box .ai-row{display:flex;align-items:center;gap:10px;}
.ai-box .ai-txt{flex:1;min-width:0;}
.ai-box .ai-txt b{display:block;font-size:13px;font-weight:600;}
.ai-box .ai-txt .hint{font-size:11.5px;color:var(--muted);}
.ai-msg{font-size:12px;color:var(--muted);margin-top:9px;display:none;}
.ai-msg.show{display:block;}
.ai-msg.ok-c{color:var(--good);font-weight:600;}
.ai-msg.err-c{color:var(--danger);font-weight:600;}

/* 업무 행 */
.svc-row{display:flex;gap:8px;align-items:center;margin-bottom:8px;}
.svc-prev{width:42px;height:42px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--line-2);border-radius:10px;background:#fafbfc;color:var(--ink);}
.svc-prev .ic{width:21px;height:21px;}
.icon-sel{width:134px;flex:none;height:42px;padding:0 11px;cursor:pointer;}
.svc-row input.name{flex:1;}
.linkbtn{background:none;border:none;color:var(--gold-d);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:8px 2px;}
.linkbtn:hover{text-decoration:underline;}

/* 색상 */
.colors{display:flex;gap:9px;flex-wrap:wrap;}
.swatch{position:relative;width:32px;height:32px;border-radius:9px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1);}
.swatch input{position:absolute;inset:0;opacity:0;cursor:pointer;}
.swatch.sel{box-shadow:0 0 0 2px var(--ink),0 0 0 4px #fff;}

/* ===== 캔버스 (클린) ===== */
.canvas{background:#f1ece2;display:flex;flex-direction:column;min-width:0;}
.canvas-stage{flex:1;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:34px 38px 0;}
.device{background:#fff;border-radius:16px;overflow:hidden;width:100%;max-width:1200px;
  box-shadow:0 2px 6px rgba(30,30,40,.05),0 16px 40px rgba(30,30,40,.10);transition:max-width .22s ease;}
iframe.preview{width:100%;height:calc(100vh - 62px - 34px - 44px - 26px);min-height:380px;border:none;background:#fff;display:block;}
.canvas-foot{text-align:center;padding:14px 0 18px;flex:none;}
.canvas-foot a{font-family:var(--mono);font-size:12px;color:var(--muted);}
.canvas-foot a:hover{color:var(--ink-2);}

/* ===== 인증 페이지 ===== */
.wrap{max-width:960px;margin:0 auto;padding:48px 20px 80px;}
.wrap.narrow{max-width:420px;}
.center{text-align:center;}
.muted{color:var(--muted);font-size:14px;}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 10px 34px rgba(30,30,45,.06);}
.card h2{font-size:23px;font-weight:600;letter-spacing:-.02em;margin-bottom:7px;}
.card .sub{color:var(--muted);font-size:14px;margin-bottom:24px;}
.section-title{font-size:12.5px;font-weight:600;color:var(--muted);margin:24px 0 12px;letter-spacing:.01em;}
.section-title:first-of-type{margin-top:0;}
.section-title .hint{font-weight:500;}
.alert{padding:12px 15px;border-radius:11px;font-size:13.5px;font-weight:500;margin-bottom:16px;}
.alert-ok{background:#e7f7ee;color:var(--good);border:1px solid #cdeedd;}
.alert-err{background:#fdecec;color:var(--danger);border:1px solid #f5cccd;}
.url-pill{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:12.5px;font-weight:500;background:#f4f5f7;border:1px solid var(--line-2);color:var(--ink-2);border-radius:8px;padding:5px 11px;}
.topbar .brand{display:flex;align-items:center;gap:9px;font-weight:600;font-size:17px;color:var(--ink);letter-spacing:-.02em;}

/* ===== 랜딩(메인) 페이지 ===== */
.lwrap{max-width:1040px;margin:0 auto;padding:0 22px;}
.hero{padding:66px 0 10px;text-align:center;}
.hero .badge{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--gold-d);background:var(--gold-soft);border:1px solid #f0dca8;border-radius:20px;padding:6px 14px;margin-bottom:22px;}
.hero .badge .ic{width:15px;height:15px;}
.hero h1{font-size:clamp(31px,5vw,48px);font-weight:700;letter-spacing:-.03em;line-height:1.16;margin-bottom:18px;}
.hero h1 .hl{color:var(--gold-d);}
.hero .lead{font-size:18px;color:var(--ink-2);max-width:600px;margin:0 auto 30px;line-height:1.6;}
.hero .cta{display:flex;gap:11px;justify-content:center;flex-wrap:wrap;}
.hero .cta .btn{font-size:15px;padding:13px 26px;border-radius:12px;}
.hero .subnote{margin-top:15px;font-size:13px;color:var(--muted);}

.mock-hero{max-width:900px;margin:46px auto 0;border-radius:15px 15px 0 0;overflow:hidden;border:1px solid var(--line);border-bottom:none;box-shadow:0 26px 60px rgba(70,50,15,.14);background:#fff;}
.mock-hero .bar{height:36px;background:#f6f1e8;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:6px;padding:0 14px;}
.mock-hero .bar i{width:10px;height:10px;border-radius:50%;background:#ddd4c4;}
.mock-hero .bar .u{margin-left:12px;font-family:var(--mono);font-size:11px;color:var(--muted);}
.mock-hero iframe{display:block;width:100%;height:430px;border:none;pointer-events:none;}

.sec-block{padding:66px 0;}
.sec-block.alt{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.sec-block .head{text-align:center;margin-bottom:46px;}
.sec-block .head .kick{font-size:13px;font-weight:700;color:var(--gold-d);letter-spacing:.06em;}
.sec-block .head h2{font-size:clamp(24px,3.4vw,33px);font-weight:700;letter-spacing:-.02em;margin-top:9px;}
.sec-block .head .desc{color:var(--muted);font-size:15px;margin-top:11px;}

.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px 22px;transition:transform .14s,box-shadow .14s;}
.sec-block.alt .feat{background:var(--bg);}
.feat:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(70,50,15,.1);}
.feat .fi{width:46px;height:46px;border-radius:13px;background:var(--gold-soft);color:var(--gold-d);display:flex;align-items:center;justify-content:center;margin-bottom:16px;}
.feat .fi .ic{width:23px;height:23px;}
.feat h3{font-size:16.5px;font-weight:600;margin-bottom:8px;letter-spacing:-.01em;}
.feat p{color:var(--ink-2);font-size:14px;line-height:1.62;}

.steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.step3{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px 22px;}
.sec-block.alt .step3{background:var(--bg);}
.step3 .num{width:36px;height:36px;border-radius:11px;background:var(--primary);color:#fff;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;margin-bottom:15px;}
.step3 h3{font-size:16.5px;font-weight:600;margin-bottom:7px;}
.step3 p{color:var(--ink-2);font-size:14px;line-height:1.62;}

.incl{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 28px;max-width:780px;margin:0 auto;padding:0;}
.incl li{display:flex;gap:12px;align-items:flex-start;list-style:none;}
.incl .ck{width:26px;height:26px;border-radius:50%;background:#e7f7ee;color:var(--good);flex:none;display:flex;align-items:center;justify-content:center;margin-top:1px;}
.incl .ck .ic{width:15px;height:15px;}
.incl b{font-weight:600;font-size:15px;display:block;}
.incl span{color:var(--muted);font-size:13px;}

.cta-band{background:var(--primary);color:#fff;text-align:center;padding:64px 22px;}
.cta-band h2{font-size:clamp(24px,3.6vw,35px);font-weight:700;letter-spacing:-.02em;margin-bottom:14px;}
.cta-band p{color:rgba(255,255,255,.72);font-size:16px;margin-bottom:28px;}
.cta-band .btn{font-size:16px;padding:14px 32px;border-radius:12px;}

.lfoot{text-align:center;padding:34px 22px;color:var(--muted);font-size:13px;background:var(--bg);border-top:1px solid var(--line);}
.lfoot b{color:var(--ink-2);}

/* 간단 진입 화면 (내부 영업용) */
.enter{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 24px;}
.enter .elogo{width:66px;height:66px;margin-bottom:22px;}
.enter h1{font-size:25px;font-weight:600;letter-spacing:-.02em;margin-bottom:12px;}
.enter .etag{color:var(--ink-2);font-size:15px;line-height:1.65;margin-bottom:28px;max-width:400px;}
.enter .ecta{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.enter .ecta .btn{padding:12px 26px;font-size:15px;border-radius:12px;}
.enter .ehint{margin-top:18px;font-size:12.5px;color:var(--muted);}

@media(max-width:760px){
  .feat-grid,.steps3{grid-template-columns:1fr;}
  .incl{grid-template-columns:1fr;}
  .mock-hero iframe{height:320px;}
}

@media(max-width:1240px){ .status{display:none;} }
@media(max-width:1080px){ .seg,#pvReload{display:none;} }

/* 모바일: 미리보기를 맨 위로 */
@media(max-width:900px){
  .editor{display:flex;flex-direction:column;height:auto;}
  .canvas{order:-1;height:46vh;border-bottom:1px solid var(--line);}
  .canvas-stage{padding:14px;}
  .device{max-width:100%;}
  iframe.preview{height:calc(46vh - 26px);min-height:260px;}
  .canvas-foot{display:none;}
  .panel{border-right:none;overflow:visible;}
}
