/* 홈페이지 전용 스타일 */
:root{
  --bg:#f4f6fa; --ink:#131a2b; --sub:#56607a; --line:#d9deea;
  --blue:#2b5cff; --yellow:#ffd43b; --ok:#19a974; --card:#fff;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink); line-height:1.55;
  font-family:"Pretendard","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",-apple-system,sans-serif;
}
a{color:inherit}
.inner{max-width:1180px; margin:0 auto; padding:0 28px}
:focus-visible{outline:3px solid var(--blue); outline-offset:3px}

/* 맨 위 */
.site-head{display:flex; align-items:center; justify-content:space-between; height:76px}
.logo{font-size:26px; font-weight:900; letter-spacing:-.03em; text-decoration:none; display:flex; align-items:center; gap:8px}
.logo i{width:14px; height:14px; border-radius:7px; background:var(--yellow); box-shadow:0 0 0 3px var(--ink)}
.site-head nav{display:flex; gap:28px; font-size:16px; font-weight:600}
.site-head nav a{text-decoration:none; padding:8px 0}
.site-head nav a:hover{color:var(--blue)}

/* 첫 화면 */
.hero{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:32px; align-items:center; padding:28px 0 72px}
.hero h1{margin:0; font-weight:900; letter-spacing:-.045em; line-height:1.04; font-size:clamp(64px,9.6vw,150px)}
.hero h1 span{display:block}
.lead{font-size:19px; color:var(--sub); margin:22px 0 26px}
.lead,.steps p,.site-foot{word-break:keep-all} /* 낱말 중간에서 줄이 끊기지 않게 */
.code-form{display:flex; gap:10px; max-width:520px}
.code-form input{
  flex:1; min-width:0; height:62px; border:2.5px solid var(--ink); border-radius:14px; background:#fff;
  font-weight:800; font-size:24px; font-family:inherit; letter-spacing:.1em; padding:0 18px; text-transform:uppercase; color:var(--ink);
}
.code-form input::placeholder{letter-spacing:0; font-weight:600; font-size:17px; color:#9aa3b8}
.code-form button{
  height:62px; padding:0 28px; border:0; border-radius:14px; background:var(--ink); color:#fff;
  font-weight:800; font-size:18px; font-family:inherit; cursor:pointer; white-space:nowrap;
}
.code-form button:hover{background:var(--blue)}
.hint{font-size:14px; color:var(--sub); margin:10px 0 0}

/* 움직이는 그림: 폰에서 찍은 사진이 PC로 넘어갑니다 */
.stage-wrap{display:flex; justify-content:center}
.stage{position:relative; width:480px; height:420px; flex:none}
.blob{position:absolute; left:70px; top:40px; width:340px; height:340px; border-radius:50%; background:var(--yellow)}
.arc{position:absolute; inset:0; width:100%; height:100%}
.monitor{position:absolute; right:0; top:10px; width:270px; height:180px; border:6px solid var(--ink); border-radius:18px; background:#fff}
.monitor::before{content:""; position:absolute; left:50%; bottom:-34px; width:22px; height:28px; margin-left:-11px; background:var(--ink)}
.monitor::after{content:""; position:absolute; left:50%; bottom:-40px; width:120px; height:8px; margin-left:-60px; border-radius:4px; background:var(--ink)}
.phone{position:absolute; left:10px; bottom:0; width:130px; height:230px; border:6px solid var(--ink); border-radius:28px; background:#fff; overflow:hidden}
.phone .shutter{position:absolute; left:50%; bottom:14px; width:34px; height:34px; margin-left:-17px; border-radius:50%; border:5px solid var(--ink)}
.phone .view{position:absolute; left:12px; right:12px; top:16px; bottom:62px; border-radius:10px; background:#e6ebf5}
.phone .flash{position:absolute; inset:0; background:#fff; opacity:0}
.photo{position:absolute; left:33px; top:262px; width:84px; height:64px; border-radius:10px; background:#fff; border:4px solid var(--ink); overflow:hidden; opacity:0}
.photo::before{content:""; position:absolute; inset:0; background:linear-gradient(#9cc4ff 0 58%, #19a974 58%)}
.photo::after{content:""; position:absolute; right:10px; top:8px; width:16px; height:16px; border-radius:50%; background:var(--yellow)}
.check{position:absolute; right:-14px; top:-8px; width:60px; height:60px; border-radius:50%; background:var(--ok); border:5px solid var(--ink); transform:scale(0)}
.check::after{content:""; position:absolute; left:17px; top:11px; width:14px; height:24px; border:solid #fff; border-width:0 6px 6px 0; transform:rotate(42deg)}

/* 문구와 그림이 같은 박자로 움직입니다 (한 바퀴 4.8초) */
.hero h1 .w1{animation:w1 4.8s infinite}
.hero h1 .w2{animation:w2 4.8s infinite}
.hero h1 .w3{animation:w3 4.8s infinite}
@keyframes w1{0%,3%{color:var(--ink)} 6%,24%{color:var(--blue)} 28%,100%{color:var(--ink)}}
@keyframes w2{0%,24%{color:var(--ink)} 28%,64%{color:var(--blue)} 68%,100%{color:var(--ink)}}
@keyframes w3{0%,64%{color:var(--ink)} 68%,94%{color:var(--blue)} 98%,100%{color:var(--ink)}}
.phone .flash{animation:flash 4.8s infinite}
@keyframes flash{0%,8%{opacity:0} 13%{opacity:.95} 22%,100%{opacity:0}}
.photo{animation:fly 4.8s infinite cubic-bezier(.45,.05,.3,1)}
@keyframes fly{
  0%,18%{opacity:0; transform:translate(0,0) scale(.5) rotate(0)}
  26%{opacity:1; transform:translate(0,0) scale(1) rotate(0)}
  46%{opacity:1; transform:translate(105px,-185px) scale(1.05) rotate(-16deg)}
  66%,92%{opacity:1; transform:translate(266px,-196px) scale(1.25) rotate(0)}
  100%{opacity:0; transform:translate(266px,-196px) scale(1.25) rotate(0)}
}
.check{animation:pop 4.8s infinite}
@keyframes pop{0%,66%{transform:scale(0)} 72%{transform:scale(1.2)} 78%,92%{transform:scale(1)} 100%{transform:scale(0)}}
@media (prefers-reduced-motion:reduce){
  .hero h1 span,.phone .flash,.photo,.check{animation:none}
  .photo{opacity:1; transform:translate(266px,-196px) scale(1.25)}
  .check{transform:scale(1)}
}

/* 사용 순서 */
.how{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:64px 0}
.how h2{font-size:34px; font-weight:900; letter-spacing:-.03em; margin:0 0 28px}
.steps{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; list-style:none; margin:0; padding:0; counter-reset:s}
.steps li{counter-increment:s; border:2.5px solid var(--ink); border-radius:18px; padding:22px}
.steps li::before{content:counter(s); display:block; width:40px; height:40px; border-radius:50%; background:var(--yellow); border:2.5px solid var(--ink); font-weight:900; font-size:19px; text-align:center; line-height:35px; margin-bottom:14px}
.steps b{display:block; font-size:21px; font-weight:800; margin-bottom:6px}
.steps p{margin:0; color:var(--sub); font-size:16px}
.phone-link{margin-top:28px; display:flex; flex-wrap:wrap; gap:8px 14px; align-items:baseline; font-size:17px}
.phone-link a{font-weight:800; color:var(--blue); word-break:break-all}

/* 맨 아래 */
.site-foot{padding:36px 0 48px; font-size:14px; color:var(--sub)}
.site-foot .row{display:flex; flex-wrap:wrap; gap:6px 28px; margin-bottom:10px}
.site-foot b{color:var(--ink)}
.legal{border-top:1px solid var(--line); padding-top:14px; margin-top:4px}
.legal ul{margin:8px 0 0; padding-left:18px; max-width:62em}
.legal li{margin:3px 0}

@media (max-width:900px){
  .hero{grid-template-columns:1fr; padding-bottom:48px}
  .steps{grid-template-columns:1fr}
  .site-head nav{gap:18px; font-size:15px}
}
@media (max-width:560px){
  .inner{padding:0 18px}
  .site-head nav a.opt{display:none}
  .code-form{flex-direction:column}
  .code-form input{flex:none; width:100%}
  .stage-wrap{height:300px; overflow:hidden}
  .stage{transform:scale(.7); transform-origin:top center}
}

/* ── 사용방법 페이지 ───────────────────── */
.page-title{padding:36px 0 8px}
.page-title h1{margin:0; font-size:clamp(44px,6vw,84px); font-weight:900; letter-spacing:-.04em; line-height:1.05}
.page-title p{margin:14px 0 0; font-size:19px; color:var(--sub); word-break:keep-all}
.site-head nav a[aria-current]{color:var(--blue)}
.guide{list-style:none; margin:0; padding:20px 0 40px; counter-reset:g}
.guide > li{counter-increment:g; display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:center; padding:44px 0; border-top:1px solid var(--line)}
.guide > li:first-child{border-top:0}
.guide h2{margin:0 0 12px; font-size:32px; font-weight:900; letter-spacing:-.03em; display:flex; align-items:center; gap:14px}
.guide h2::before{content:counter(g); flex:none; width:46px; height:46px; border-radius:50%; background:var(--yellow); border:2.5px solid var(--ink); font-size:22px; text-align:center; line-height:41px}
.guide p{margin:0 0 10px; font-size:18px; word-break:keep-all}
.guide ul{margin:0; padding-left:20px; color:var(--sub); font-size:16px; word-break:keep-all}
.guide li li{margin:4px 0}
.guide .where{display:inline-block; font-size:14px; font-weight:800; padding:3px 10px; border-radius:20px; background:var(--ink); color:#fff; margin-bottom:12px}

/* 화면 그림 */
.mock{justify-self:center; position:relative; background:#fff; border:5px solid var(--ink); font-size:12px; line-height:1.3}
.mock.ph{width:210px; border-radius:30px; padding:18px 14px 22px}
.mock.pc{width:330px; border-radius:16px; padding:16px; margin-bottom:26px}
.mock.pc::after{content:""; position:absolute; left:50%; bottom:-27px; width:110px; height:22px; margin-left:-55px; background:linear-gradient(var(--ink),var(--ink)) center top/18px 16px no-repeat, linear-gradient(var(--ink),var(--ink)) center bottom/110px 6px no-repeat}
.m-row{display:flex; gap:6px}
.m-box{border:1.5px solid var(--line); border-radius:8px; padding:8px; margin-bottom:8px}
.m-label{color:var(--sub); font-size:10px}
.m-code{font-weight:900; font-size:19px; letter-spacing:.06em}
.m-btn{flex:1; text-align:center; font-weight:800; padding:9px 4px; border-radius:8px; background:var(--ink); color:#fff}
.m-btn.line{background:#fff; color:var(--ink); border:1.5px solid var(--ink)}
.m-btn.blue{background:var(--blue)}
.m-tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin:8px 0}
.m-tile{position:relative; aspect-ratio:1; border-radius:6px; overflow:hidden; background:linear-gradient(#9cc4ff 0 58%, #19a974 58%)}
.m-tile b{position:absolute; left:0; right:0; bottom:0; font-size:9px; text-align:center; color:#fff; padding:2px 0; background:rgba(19,26,43,.7)}
.m-tile.ok b{background:var(--ok)}
.m-tile.bad b{background:#d83a34}
.m-bar{height:6px; border-radius:3px; background:#e6ebf5; overflow:hidden}
.m-bar i{display:block; width:62%; height:100%; background:var(--blue)}
.m-input{flex:1; border:1.5px solid var(--ink); border-radius:8px; padding:8px; font-weight:900; letter-spacing:.08em; font-size:14px}
.m-cards{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:10px}
.m-card{border:1.5px solid var(--line); border-radius:6px; overflow:hidden}
.m-card i{display:block; aspect-ratio:4/3; background:linear-gradient(#9cc4ff 0 58%, #19a974 58%)}
.m-card span{display:block; text-align:center; font-size:9px; font-weight:800; color:var(--blue); padding:3px 0}

/* 자주 묻는 것 */
.faq{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:60px 0}
.faq h2{font-size:34px; font-weight:900; letter-spacing:-.03em; margin:0 0 20px}
.faq dl{margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px}
.faq dl > div{border:2.5px solid var(--ink); border-radius:18px; padding:20px 22px}
.faq dt{font-size:19px; font-weight:800; margin-bottom:6px}
.faq dd{margin:0; color:var(--sub); font-size:16px; word-break:keep-all}
.cta{padding:48px 0 12px; display:flex; flex-wrap:wrap; gap:12px}
.cta a{display:inline-flex; align-items:center; height:58px; padding:0 28px; border-radius:14px; font-weight:800; font-size:18px; text-decoration:none; background:var(--ink); color:#fff}
.cta a.line{background:transparent; color:var(--ink); border:2.5px solid var(--ink)}
.cta a:hover{background:var(--blue); color:#fff; border-color:var(--blue)}
@media (max-width:900px){
  .guide > li{grid-template-columns:1fr; gap:24px; padding:32px 0}
  .faq dl{grid-template-columns:1fr}
}

/* ── 서비스 소개 페이지 ─────────────────── */
.story{padding:28px 0 64px; max-width:820px}
.story h2,.diff h2,.care h2{font-size:34px; font-weight:900; letter-spacing:-.03em; margin:0 0 18px}
.story p{font-size:22px; line-height:1.7; margin:0 0 14px; word-break:keep-all}
.story p.em{font-weight:800}
.diff{background:#fff; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:60px 0}
.diff ul{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px}
.diff li{border:2.5px solid var(--ink); border-radius:18px; padding:22px; display:grid; grid-template-columns:auto 1fr; gap:4px 16px; align-items:start}
.diff li i{grid-row:span 2; width:46px; height:46px; border-radius:50%; background:var(--yellow); border:2.5px solid var(--ink); position:relative}
.diff li i::after{content:""; position:absolute; left:15px; top:8px; width:10px; height:19px; border:solid var(--ink); border-width:0 4px 4px 0; transform:rotate(42deg)}
.diff b{font-size:20px; font-weight:800}
.diff span{color:var(--sub); font-size:16px; word-break:keep-all}
.care{padding:60px 0 20px; max-width:820px}
.care dl{margin:0}
.care dt{font-size:19px; font-weight:800; margin:18px 0 4px}
.care dd{margin:0; color:var(--sub); font-size:17px; word-break:keep-all}
@media (max-width:900px){ .diff ul{grid-template-columns:1fr} .story p{font-size:19px} }

/* ── 공지사항 페이지 ───────────────────── */
.notices{padding:20px 0 72px; max-width:860px}
.notices details{border:2.5px solid var(--ink); border-radius:18px; background:#fff; margin-bottom:14px; overflow:hidden}
.notices summary{list-style:none; cursor:pointer; padding:20px 22px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px}
.notices summary::-webkit-details-marker{display:none}
.notices summary time{flex:none; font-size:15px; color:var(--sub); font-variant-numeric:tabular-nums}
.notices summary b{font-size:20px; font-weight:800; flex:1; min-width:12em; word-break:keep-all}
.notices summary::after{content:"열기"; font-size:14px; font-weight:800; color:var(--blue)}
.notices details[open] summary::after{content:"닫기"}
.notices .body{padding:0 22px 22px; font-size:17px; color:var(--sub); white-space:pre-line; word-break:keep-all}
.notices .none{color:var(--sub); font-size:18px}

/* 문의 남기기 */
.ask{max-width:860px; padding:0 0 72px}
.ask h2{font-size:30px; font-weight:900; letter-spacing:-.03em; margin:0 0 6px}
.ask p{margin:0 0 14px; color:var(--sub); font-size:16px; word-break:keep-all}
.ask textarea{display:block; width:100%; min-height:150px; padding:16px; border:2.5px solid var(--ink); border-radius:14px; background:#fff; font-family:inherit; font-size:17px; line-height:1.5; color:var(--ink); resize:vertical}
.ask .row{display:flex; align-items:center; gap:14px; margin-top:12px; flex-wrap:wrap}
.ask button{height:56px; padding:0 28px; border:0; border-radius:14px; background:var(--ink); color:#fff; font-family:inherit; font-size:18px; font-weight:800; cursor:pointer}
.ask button:hover{background:var(--blue)}
.ask button[disabled]{opacity:.45; pointer-events:none}
.ask .count{font-size:14px; color:var(--sub); font-variant-numeric:tabular-nums}
.ask .msg{font-size:16px; font-weight:800}
.ask .msg.ok{color:var(--ok)} .ask .msg.bad{color:#c2302a}
.notices{padding-bottom:48px}

/* 내 문의 · 문의번호 */
.ask .sent{border:2.5px solid var(--ok); border-radius:14px; background:#fff; padding:16px 18px; margin-top:16px; font-size:16px; word-break:keep-all}
.ask .sent b{font-size:22px; letter-spacing:.08em; display:inline-block; margin:2px 0}
.ask h3{font-size:22px; font-weight:900; letter-spacing:-.02em; margin:40px 0 12px}
.my-asks{list-style:none; margin:0; padding:0}
.my-asks li{border:2.5px solid var(--ink); border-radius:16px; background:#fff; padding:18px 20px; margin-bottom:12px}
.my-asks .meta{font-size:14px; color:var(--sub); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:6px; font-variant-numeric:tabular-nums}
.my-asks .q{font-size:17px; white-space:pre-line; word-break:break-word}
.my-asks .a{margin-top:12px; padding-top:12px; border-top:1px solid var(--line); font-size:17px; white-space:pre-line; word-break:break-word}
.my-asks .a::before{content:"답변"; display:inline-block; font-size:13px; font-weight:800; color:#fff; background:var(--blue); border-radius:20px; padding:2px 10px; margin-right:8px}
.my-asks .wait{margin-top:10px; font-size:15px; color:var(--sub)}
.lookup{display:flex; gap:10px; max-width:460px}
.lookup input{flex:1; min-width:0; height:52px; border:2.5px solid var(--ink); border-radius:12px; padding:0 14px; font-family:inherit; font-size:18px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink); background:#fff}
.lookup input::placeholder{letter-spacing:0; font-weight:600; font-size:16px; color:#9aa3b8}
.lookup button{height:52px; padding:0 20px; font-size:16px}

/* 맨 아래 법 안내: 접었다 펴기 */
details.legal summary{cursor:pointer; list-style:none}
details.legal summary::-webkit-details-marker{display:none}
details.legal:not([open]) summary::after{content:"자세히"; margin-left:10px; font-weight:800; color:var(--blue)}

/* ── 폰 화면: 글자를 줄이고 첫 화면에 문구, 그림, 코드 입력이 함께 보이게 ── */
@media (max-width:560px){
  .wide-only{display:none !important}
  .site-head{height:60px}
  .logo{font-size:22px}
  .hero{display:flex; flex-direction:column; align-items:stretch; gap:0; padding:4px 0 36px}
  .hero > div:first-child{display:contents}
  .hero h1{order:1; font-size:clamp(54px,17vw,72px)}
  .stage-wrap{order:2; height:236px; overflow:hidden; margin:6px 0 10px; width:100%}
  .stage{transform:scale(.56); transform-origin:top center}
  .lead{order:3; font-size:16px; margin:0 0 12px}
  .code-form{order:4; flex-direction:row; max-width:none; width:100%}
  .code-form input{flex:1; width:auto; height:56px; font-size:20px; padding:0 12px}
  .code-form input::placeholder{font-size:15px}
  .code-form button{height:56px; padding:0 16px; font-size:16px}
  .how{padding:36px 0}
  .how h2{font-size:26px; margin-bottom:16px}
  .steps{gap:10px}
  .steps li{display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:center; padding:14px 16px}
  .steps li::before{grid-row:span 2; margin:0}
  .steps b{font-size:18px; margin:0}
  .steps p{font-size:15px}
  .site-foot{padding:24px 0 36px}
}
