* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: #F4F6FA; color: #0F172A;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 36px 16px 48px; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 6px; }
.hero p { font-size: 16px; color: #475569; margin: 0 0 22px; line-height: 1.6; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E8F0FF; color: #2459D6; font-size: 13px; font-weight: 600; }

.card { background: #fff; border: 1px solid #E5E8EF; border-radius: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 22px 22px 18px; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
.card-desc { font-size: 14px; color: #64748B; margin-bottom: 10px; line-height: 1.5; }
.mt { margin-top: 20px; } .mt-s { margin-top: 12px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; border: 2px dashed #C9D3E3; border-radius: 14px; background: #F8FAFD; cursor: pointer; text-align: center; }
.drop:hover { border-color: #2563EB; background: #F1F6FF; }
.drop input { display: none; }
.drop-icon { font-size: 28px; }
.drop-main { font-size: 16px; font-weight: 700; color: #2563EB; }
.drop-sub { font-size: 13px; color: #64748B; }
.privacy { font-size: 13px; color: #64748B; margin-top: 8px; }
.status { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #EEF4FF; color: #1E40AF; font-size: 14px; font-weight: 600; }
.status.err { background: #FEF2F2; color: #B91C1C; }

details { margin-top: 12px; border: 1px solid #E5E8EF; border-radius: 12px; padding: 10px 14px; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.tips ol { margin: 10px 0 4px; padding-left: 20px; font-size: 15px; color: #334155; line-height: 1.9; }
.tips p { margin: 4px 0; font-size: 15px; color: #334155; }
.adv-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.adv-row select { padding: 8px; border-radius: 8px; border: 1px solid #D5DBE5; font: inherit; }
.switch { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: #2563EB; }

.grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.col .card:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } .hero h1 { font-size: 28px; } }

.warn { padding: 10px 12px; border-radius: 10px; background: #FFF7E6; color: #92400E; font-size: 14px; margin-bottom: 8px; }
.preview { max-width: 340px; margin: 6px auto 0; }
.preview canvas { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid #E5E8EF; }
.center { text-align: center; margin-top: 12px; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #E9F8EF; color: #15803D; font-weight: 600; font-size: 14px; }

button { font: inherit; cursor: pointer; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pad button, .pad2 button { height: 46px; border-radius: 12px; border: 1px solid #D5DBE5; background: #fff; font-weight: 600; font-size: 14px; color: #0F172A; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pad button:active, .pad2 button:active { background: #EEF4FF; }
.pad2 button:disabled { color: #A0AEC0; background: #F7F8FA; cursor: not-allowed; }
.orig canvas { width: 100%; height: auto; margin-top: 10px; border-radius: 10px; }

.spec { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #EEF1F5; font-size: 15px; }
.spec span:first-child { color: #64748B; } .spec span:last-child { font-weight: 600; }
.spec.last { border-bottom: none; }
.btn-outline { display: block; text-align: center; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid #D5DBE5; color: #0F172A; text-decoration: none; font-weight: 600; }
.btn-outline:hover { border-color: #2563EB; color: #2563EB; }

.btn-primary, .btn-secondary { display: block; width: 100%; min-height: 58px; padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 16px; margin-top: 8px; }
.btn-primary small, .btn-secondary small { display: block; font-size: 12px; font-weight: 500; opacity: .8; margin-top: 2px; }
.check-tip { font-size: 13px; color: #64748B; text-align: center; margin-top: 10px; line-height: 1.6; }
.verify-box { margin-top: 16px; padding: 14px; border-radius: 12px; background: #F1F6FF; font-size: 14px; font-weight: 600; color: #1E3A8A; }
.verify-box .btn-outline { background: #fff; margin-top: 8px; }
.btn-primary { background: #2563EB; color: #fff; border: none; }
.btn-secondary { background: #fff; color: #0F172A; border: 1px solid #D5DBE5; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.caption { font-size: 13px; color: #64748B; margin-top: 8px; }
.foot { text-align: center; font-size: 12px; color: #94A3B8; margin-top: 28px; }

/* 상단에서 쓰는 보조 버튼, 조정 접기 */
.btn-ghost { display: block; width: 100%; margin-top: 12px; height: 46px; border-radius: 12px; border: 1px dashed #C9D3E3; background: #fff; color: #334155; font-weight: 600; font-size: 14px; }
.adjust { margin-top: 16px; }
.adjust summary { font-size: 16px; }
.mobile-only { display: none; }
.dlbar { display: none; }
.dl-note { font-size: 14px; color: #334155; background: #F8FAFD; border-radius: 10px; padding: 10px 12px; line-height: 1.6; }

/* 폰 화면 */
@media (max-width: 820px) {
  .wrap { padding: 20px 16px 120px; }
  .hero h1 { font-size: 26px; margin-top: 10px; }
  .hero p { margin-bottom: 16px; }
  .pc-only { display: none; }
  .card { padding: 18px 16px 16px; border-radius: 16px; }
  .preview { max-width: 300px; }
  .card-dl { display: none; }
  .mobile-only { display: block; }
  .dlbar:not([hidden]) {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid #E5E8EF;
    box-shadow: 0 -4px 16px rgba(16,24,40,.06);
  }
  .dlbar .btn-primary, .dlbar .btn-secondary { margin-top: 0; min-height: 52px; }
}

/* 카카오톡·인스타그램 등 앱 안 브라우저 안내 */
.inapp { display: block; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: #EEF4FF; border: 1px solid #C7D7FE; color: #1E3A8A; font-size: 14px; line-height: 1.6; }
.inapp > b { display: block; margin-bottom: 2px; }
.inapp #inapp-title { font-size: 16px; }
.inapp button { display: block; width: 100%; margin-top: 10px; height: 48px; border-radius: 12px; border: none; background: #2563EB; color: #fff; font-weight: 700; font-size: 16px; }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(15,23,42,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; }
.sheet-title { font-size: 17px; margin-bottom: 12px; }
.sheet-box img { max-width: 100%; max-height: 52vh; border: 1px solid #E5E8EF; border-radius: 8px; -webkit-touch-callout: default; }
.sheet-desc { font-size: 13px; color: #64748B; margin: 10px 0 4px; line-height: 1.6; }
