/* ==========================================================
   HOW TO AEO · 홍보 사이트
   차분한 종이색 배경 + 잉크색, 포인트 컬러 1개만 사용
   ========================================================== */
:root {
  --ink: #16181d;
  --ink-2: #3a3b40;
  --muted: #6b6a65;
  --muted-2: #8d8b85;
  --paper: #f6f5f2;
  --paper-2: #efede8;
  --white: #ffffff;
  --line: #e4e2dc;
  --line-2: #d9d7d0;
  --accent: #3b44c6;
  --accent-soft: rgba(59, 68, 198, .08);
  --ok: #1f7a4d;
  --err: #c0362c;
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* display 를 지정한 요소도 hidden 속성이면 반드시 숨김 */
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
.s-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.s-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.s-btn-block { width: 100%; }
.s-btn-dark { background: var(--ink); color: #fff; }
.s-btn-dark:hover { background: #2a2d34; }
.s-btn-dark:disabled { opacity: .6; cursor: default; }
.s-btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.s-btn-line:hover { border-color: var(--ink); }
.s-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin: 0 0 14px; }

/* Header */
.s-head { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 242, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.s-head.scrolled { border-bottom-color: var(--line); }
.s-head-in { display: flex; align-items: center; height: 68px; gap: 32px; }
.s-logo { font-weight: 800; font-size: 15px; letter-spacing: .14em; text-decoration: none; white-space: nowrap; }
.s-logo span { color: var(--muted-2); font-weight: 600; }
.s-nav { display: flex; gap: 28px; flex: 1; }
.s-nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.s-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.s-head-cta { display: flex; align-items: center; gap: 16px; }
.s-nav-login { display: none; }
.s-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.s-link:hover { color: var(--ink); }
.s-menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px 8px; flex-direction: column; justify-content: center; gap: 6px; }
.s-menu i { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .2s; }
.nav-open .s-menu i:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .s-menu i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.s-hero { padding: 72px 0 96px; }
.s-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.nw { white-space: nowrap; }
.s-hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -.045em; margin-bottom: 22px; }
.s-lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.s-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.s-hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-2); }
.s-hero-points li::before { content: "—"; color: var(--muted-2); margin-right: 8px; }

.s-hero-demo { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 20px 50px -24px rgba(22, 24, 29, .18); position: relative; }
.dm-q { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.dm-q span { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-right: 10px; }
.dm-a { padding: 16px 4px 6px; }
.dm-a-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.dm-a-head span { color: var(--muted-2); }
.dm-a ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.dm-a li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.dm-a li:last-child { border-bottom: 0; }
.dm-self { color: var(--ink); }
.dm-self b { background: linear-gradient(transparent 60%, rgba(59, 68, 198, .16) 60%); }
.dm-self em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid currentColor; border-radius: 5px; padding: 1px 6px; margin-left: 8px; }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.dm-stats div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.dm-stats span { display: block; font-size: 11.5px; color: var(--muted); }
.dm-stats b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dm-note { position: absolute; right: 16px; bottom: -26px; margin: 0; font-size: 12px; color: var(--muted-2); }

/* Sections */
.s-sec { padding: 104px 0; }
.s-sec-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-sec-dark { background: var(--ink); color: #f2f1ed; }
.s-sec-dark .s-eyebrow { color: #a9adf0; }
.s-sec-head { max-width: 640px; margin-bottom: 52px; }
.s-sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; font-weight: 800; margin-bottom: 14px; }
.s-sec-head p:not(.s-eyebrow) { color: var(--muted); margin: 0; font-size: 17px; }

.s-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.s-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.s-num { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.s-card h3 { font-size: 19px; margin: 14px 0 10px; }
.s-card p { margin: 0; color: var(--muted); font-size: 15px; }

.s-feat { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.s-feat-item { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.s-feat-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.s-feat-item h3 { font-size: 18px; margin-bottom: 10px; }
.s-feat-item p { margin: 0; font-size: 15px; color: var(--muted); }

.s-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.s-steps li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.s-steps li:last-child { border-bottom: 1px solid var(--line); }
.s-step-n { font-size: 28px; font-weight: 800; color: var(--line-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.s-steps h3 { font-size: 20px; margin-bottom: 6px; }
.s-steps p { margin: 0; color: var(--muted); }

.s-who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.s-who > div { border: 1px solid #2c2f36; border-radius: var(--radius); padding: 30px 28px; }
.s-who h3 { font-size: 21px; margin-bottom: 16px; }
.s-who ul { margin: 0; padding: 0; list-style: none; }
.s-who li { padding: 10px 0; border-top: 1px solid #2c2f36; color: #c9c8c2; font-size: 15px; }

/* Free diagnosis */
.s-diag { padding: 104px 0 72px; }
.s-diag-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px 40px; }
.s-diag h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 800; margin-bottom: 10px; }
.s-diag p:not(.s-eyebrow) { margin: 0; color: var(--muted); }
.s-diag .s-btn { flex: none; }
@media (max-width: 900px) { .s-diag { padding-top: 72px; padding-bottom: 48px; } .s-diag-in { flex-direction: column; align-items: flex-start; padding: 28px 22px; } }

/* Pricing */
.s-plans { display: grid; gap: 20px; align-items: stretch; }
.s-plans-1 { grid-template-columns: minmax(0, 420px); }
.s-plans-2 { grid-template-columns: repeat(2, 1fr); }
.s-plans-3 { grid-template-columns: repeat(3, 1fr); }
.s-plans-4 { grid-template-columns: repeat(4, 1fr); }
.s-plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px 26px; }
.s-plan.is-featured { border: 2px solid var(--ink); padding: 29px 25px 25px; }
.pl-tag { position: absolute; top: -12px; left: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.s-plan h3 { font-size: 21px; }
.pl-tagline { margin: 6px 0 20px; color: var(--muted); font-size: 14.5px; min-height: 2.6em; }
.pl-price-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pl-price { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pl-price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.pl-price-ask { font-size: 24px; font-weight: 800; }
.pl-setup { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pl-list { list-style: none; margin: 18px 0; padding: 0; flex: 1; }
.pl-list li { position: relative; padding: 6px 0 6px 22px; font-size: 15px; }
.pl-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.pl-opts { background: var(--paper); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 13.5px; }
.pl-opts b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pl-opts span { display: block; padding: 2px 0; }
.s-note { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.s-note-strong { color: var(--ink); }
.pl-credit-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* FAQ */
.s-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq details:first-child { border-top: 1px solid var(--line); }
.s-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 17px; position: relative; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 15.5px; }

/* Contact */
.s-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.s-contact-info h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; font-weight: 800; margin-bottom: 16px; }
.s-contact-info > p { color: var(--muted); margin: 0 0 28px; }
.s-contact-info dl { margin: 0; }
.s-contact-info dl div { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.s-contact-info dt { width: 56px; color: var(--muted); font-size: 14px; }
.s-contact-info dd { margin: 0; font-weight: 600; }
.s-contact-info dd a { text-decoration: none; }
.s-form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.s-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-field { display: block; margin-bottom: 16px; }
.s-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.s-field i { font-style: normal; color: var(--err); }
.s-field input, .s-field select, .s-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; height: 48px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.s-field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.s-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6a65' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 29, .08); }
.s-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.s-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 8px; cursor: pointer; }
.s-agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.s-agree-more { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; margin-left: 4px; }
.s-agree-box { background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.s-agree-box[hidden] { display: none; }
.s-form .s-btn { margin-top: 10px; }
.s-form-msg { margin: 12px 0 0; font-size: 14px; min-height: 1.5em; }
.s-form-note { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.s-form-msg.ok { color: var(--ok); font-weight: 600; }
.s-form-msg.err { color: var(--err); }

/* Footer */
.s-foot { background: var(--ink); color: #b9b8b2; padding: 52px 0 32px; }
.s-foot .s-logo { color: #f2f1ed; }
.s-foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.s-biz { margin: 14px 0 0; font-size: 13px; line-height: 1.8; }
.s-biz a { color: inherit; text-decoration: none; }
.s-foot-links { display: flex; gap: 24px; font-size: 14px; }
.s-foot-links a { text-decoration: none; }
.s-foot-links a:hover { color: #fff; }
.s-foot-policy { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 13.5px; }
.s-foot-policy a { text-decoration: none; color: #d6d5cf; }
.s-foot-policy a b { color: #fff; font-weight: 700; }
.s-foot-policy a:hover { text-decoration: underline; }
.s-copy { margin-top: 20px; padding-top: 20px; border-top: 1px solid #2c2f36; font-size: 12.5px; color: #6f6f69; }

/* Responsive */
@media (max-width: 1024px) {
  .s-plans-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .s-hero { padding: 40px 0 72px; }
  .s-hero-in, .s-contact, .s-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .s-grid3, .s-feat, .s-plans-2, .s-plans-3, .s-plans-4, .s-who { grid-template-columns: minmax(0, 1fr); }
  .s-feat-item, .s-feat-item:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .s-sec { padding: 72px 0; }
  .s-sec-head { margin-bottom: 36px; }
  .s-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .s-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-open .s-nav { display: flex; }
  .s-menu { display: flex; }
  .s-head-in { gap: 12px; justify-content: space-between; }
  .s-head-cta { gap: 10px; }
}
@media (max-width: 560px) {
  .s-wrap { padding: 0 16px; }
  .s-link { display: none; }
  .s-nav .s-nav-login { display: block; }
  .s-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s-form { padding: 24px 18px; }
  .s-steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .s-step-n { font-size: 22px; }
  .dm-stats b { font-size: 17px; }
  .s-lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 약관 · 방침 공개 페이지 (policy.php) */
.p-wrap { max-width: 860px; padding-top: 40px; padding-bottom: 80px; }
.p-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.p-tabs a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.p-tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-title { font-size: 32px; margin-bottom: 10px; }
.p-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.p-ver select { font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); color: var(--ink); }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.p-note { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--ink-2); font-size: 14px; }
.p-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.p-empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.p-doc { font-size: 15px; line-height: 1.85; color: var(--ink-2); padding-top: 8px; }
.p-doc h2 { font-size: 20px; color: var(--ink); margin: 40px 0 12px; }
.p-doc h3 { font-size: 16.5px; color: var(--ink); margin: 26px 0 8px; }
.p-doc h4 { font-size: 15px; color: var(--ink); margin: 18px 0 6px; }
.p-doc p { margin: 10px 0; }
.p-doc ul, .p-doc ol { margin: 8px 0; padding-left: 22px; }
.p-doc li { margin: 4px 0; }
.p-doc a { color: var(--accent); }
.p-table { overflow-x: auto; margin: 14px 0; }
.p-doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; line-height: 1.6; }
.p-doc th, .p-doc td { border: 1px solid var(--line-2); padding: 9px 12px; text-align: left; vertical-align: top; }
.p-doc th { background: var(--paper-2); color: var(--ink); }
@media (max-width: 640px) { .p-title { font-size: 26px; } .p-wrap { padding-top: 28px; } }

/* 결제 페이지 (pay.php) */
.pay-body { background: var(--paper); }
.pay-wrap { max-width: 1000px; padding-top: 36px; padding-bottom: 80px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pay-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pay-center { max-width: 520px; margin: 20px auto; text-align: center; }
.pay-center h1 { font-size: 24px; margin-bottom: 10px; }
.pay-title { font-size: 24px; line-height: 1.4; margin-bottom: 20px; }
.pay-h2 { font-size: 17px; margin: 0 0 4px; }
.pay-muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.pay-muted.small, .small.pay-muted { font-size: 13px; }
.pay-dl { margin: 0 0 16px; text-align: left; }
.pay-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pay-dl .pay-total { border-bottom: 0; padding-top: 14px; font-size: 17px; }
.pay-dl .pay-total dt { color: var(--ink); font-weight: 700; }
.pay-dl .pay-total dd { font-size: 22px; font-weight: 800; color: var(--accent); }
.pay-methods { display: flex; gap: 10px; margin: 6px 0 16px; }
.pay-methods label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.pay-methods label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.pay-agree { display: flex; flex-direction: column; gap: 9px; margin: 8px 0 14px; padding: 16px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.pay-agree label { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.pay-agree input { margin-top: 3px; }
.pay-agree a { color: var(--accent); }
.pay-all { padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.pay-alert { margin-bottom: 18px; padding: 14px 18px; border-radius: 10px; background: #fbeceb; color: var(--err); font-size: 14.5px; }
.pay-test { margin-bottom: 18px; padding: 10px 16px; border-radius: 10px; background: #fff4d6; color: #7a5a00; font-size: 13.5px; font-weight: 600; }
.pay-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.pay-check svg { display: block; }
.pay-center .pay-dl { margin: 18px 0 22px; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } .pay-card { padding: 22px 18px; } }

/* 전자계약 서명 페이지 (sign.php) */
.sg-badge { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.sg-wrap { max-width: 1120px; padding-top: 30px; padding-bottom: 80px; }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.sg-doc { max-height: 70vh; overflow-y: auto; padding: 4px 18px 10px 2px; border-top: 1px solid var(--line); outline: none; }
.sg-doc h2 { font-size: 17px; margin-top: 26px; }
.sg-side { position: sticky; top: 84px; }
.sg-done { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.sg-done .pay-check { flex: none; margin: 0; }
.sg-done h1 { font-size: 22px; margin: 4px 0 6px; }
.sg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sg-otp { margin: 6px 0 14px; padding: 14px; border-radius: 10px; background: var(--paper); }
.sg-otp-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.sg-otp-row + .sg-otp-row { margin-top: 10px; }
.sg-otp-row input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 16px; letter-spacing: .2em; }
.sg-otp-ok { margin: 8px 0 0; color: var(--ok); font-weight: 700; font-size: 14px; }
.sg-pad-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sg-pad-label i { color: var(--err); font-style: normal; }
.sg-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 600; }
.sg-pad { position: relative; height: 190px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.sg-pad canvas, .sg-full-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sg-pad-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 15px; pointer-events: none; }
.sg-full { position: fixed; inset: 0; z-index: 200; background: #16181d; display: flex; flex-direction: column; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.sg-full-top { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 12px; font-size: 16px; }
.sg-full-top .s-btn-line { color: #fff; border-color: rgba(255,255,255,.4); }
.sg-full-top .s-btn-dark { background: #fff; color: var(--ink); }
.sg-full-pad { flex: 1; background: #fff; border-radius: 14px; overflow: hidden; }
@media (max-width: 900px) { .sg-grid { grid-template-columns: minmax(0, 1fr); } .sg-side { position: static; } .sg-doc { max-height: 60vh; } }
.sg-grid > * { min-width: 0; }
.sg-grid.sg-grid-one { grid-template-columns: minmax(0, 1fr); }
.sg-grid-one .sg-doc { max-height: none; overflow: visible; padding-right: 0; } /* 서명 후에는 안쪽 스크롤 없이 전체 표시 */ /* 계약서 표가 넓어도 화면 밖으로 밀리지 않게 (표는 자체 가로 스크롤) */
