/* 회사 홈페이지 공통 스타일 (2026 개편) — 색은 /brand.css(브랜드 파일)가 덮어씁니다
   글꼴: Pretendard Variable(head.html) · 간격: 8 의 배수 · 글자 크기: clamp() 로 화면 폭에 맞춤
   첫 화면(index) 전용 모양은 home.css */
:root {
  --primary: #2F5BEA;
  --accent: #7C5CFC;
  --primary-ink: #ffffff;
  --ink: #0B1020;
  --ink-2: #384257;
  --muted: #687187;
  --faint: #98A0B3;
  --line: #E7EAF1;
  --line-2: #D5DAE5;
  --bg: #ffffff;
  --bg-soft: #F6F7FB;
  --bg-tint: color-mix(in srgb, var(--primary) 7%, white);
  --bg-ink: #0A0D18;
  --ok: #0b8a4c;
  --ok-bg: #e7f6ee;
  --warn: #a35a00;
  --warn-bg: #fff5e5;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06);
  --shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 12px 32px rgba(11, 16, 32, .06);
  --shadow-lg: 0 2px 6px rgba(11, 16, 32, .05), 0 32px 64px rgba(25, 40, 90, .14);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  --section: clamp(80px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--primary) 22%, white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 800px; }
.wrap-form { max-width: 480px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; text-decoration: none !important;
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--primary); color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(11, 16, 32, .1), 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 90%, black); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 28px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-disabled { cursor: not-allowed; opacity: .6; box-shadow: none; }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line-2)); color: var(--primary); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2236; }
.btn-danger { background: #fff; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, white); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }

/* ---------- 머리 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, white 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; text-decoration: none !important; flex: none; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; flex: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.logo-mark svg { width: 20px; height: 20px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.site-nav > a, .nav-auth > a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; transition: background-color .15s, color .15s; }
.site-nav > a:hover, .nav-auth > a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.site-nav .nav-auth[data-auth="out"] { display: none; }   /* 큰 화면: 로그인은 오른쪽 버튼 옆 */
.nav-auth { display: inline-flex; align-items: center; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.header-login { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.header-login:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 공통 부분 ---------- */
main { display: block; }
.section { padding: var(--section) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 16px auto 0; max-width: 620px; text-wrap: balance; }   /* 가운데 정렬 문단: 줄 길이를 고르게(마지막 줄에 한 단어만 남지 않게) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--primary); background: var(--bg-tint); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: -0.01em; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h-display { font-size: clamp(38px, 6vw, 72px); font-weight: 760; letter-spacing: -0.035em; line-height: 1.14; }
.h-section { font-size: clamp(28px, 4vw, 46px); font-weight: 740; letter-spacing: -0.03em; line-height: 1.24; margin: 0; }
.grad { background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge-primary { background: var(--bg-tint); color: var(--primary); border-color: transparent; }
.notice { border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg-tint); color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--primary) 18%, white); }
.notice-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 25%, white); }
.notice-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 25%, white); color: #7a1c1c; }
.notice-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 25%, white); }
.draft-banner { background: #fff3cd; border-bottom: 1px solid #f0d58a; color: #6b4e00; text-align: center; padding: 10px 16px; font-weight: 700; }
.test-banner { background: #111827; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
.test-banner strong { color: #fde68a; }
.prelaunch-banner { background: linear-gradient(90deg, #1e3a8a, #2f5bea); }
.prelaunch-banner strong { color: #fff; }
.check { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- 순서 ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- 요금제 ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 26px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan.recommended { border: 1.5px solid var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent), var(--shadow-lg); }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 18px; min-height: 2.6em; }
.plan-price { font-size: clamp(26px, 2.6vw, 32px); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-vat { font-size: 13px; color: var(--muted); margin: 4px 0 20px; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.plan li svg { margin-top: 5px; }
.plan .btn { margin-top: auto; }
.plans > p { grid-column: 1 / -1; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-soft); font-weight: 800; }
.compare tbody tr:hover { background: color-mix(in srgb, var(--bg-soft) 60%, white); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* ---------- 안심 ---------- */
.trust-card { display: flex; gap: 16px; align-items: flex-start; }
.trust-card .t-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.trust-card .t-ic svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 17px; margin: 0 0 4px; }
.trust-card p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

.cta-band { position: relative; overflow: hidden; background: var(--bg-ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 88px) 32px; text-align: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40%; z-index: -1; background:
  radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--primary) 70%, transparent), transparent 70%),
  radial-gradient(35% 45% at 80% 70%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 70%); filter: blur(10px); opacity: .75; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; }
.cta-band p { opacity: .82; font-size: 18px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cta-band .btn-primary:hover { background: #f1f4ff; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.hero-cta.center-row { justify-content: center; }

/* ---------- 꼬리 ---------- */
.site-footer { background: var(--bg-ink); color: #c9d0dd; padding: 72px 0 32px; font-size: 14px; }
.site-footer a { color: #e6eaf2; }
.site-footer .logo { color: #fff; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }
.footer-brand p { margin-top: 14px; color: #8e97ab; max-width: 320px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links h2 { font-size: 13px; color: #8e97ab; font-weight: 700; margin-bottom: 12px; letter-spacing: .02em; }
.footer-links a, .footer-links p { display: block; margin: 0 0 10px; }
.footer-biz { margin-top: 48px; padding-top: 24px; border-top: 1px solid #1c2233; color: #8e97ab; }
.biz { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; }
.biz div { display: inline-flex; gap: 6px; }
.biz dt { color: #646d82; }
.biz dd { margin: 0; }
.biz-pending { margin: 0 0 8px; }
.copy { margin: 0; color: #646d82; }

/* ---------- 폼·페이지 머리 ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.04em; }
.page-head .lead { margin: 12px auto 0; max-width: 640px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 20px; }
.field > span, .field-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line-2)); }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.check-row.check-all { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }
.form-msg.err { color: var(--danger); font-weight: 600; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 15px; }
.ind-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ind-choice { position: relative; }
.ind-choice input { position: absolute; opacity: 0; inset: 0; }
.ind-choice label { display: block; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 15px; transition: border-color .15s, background-color .15s; }
.ind-choice label:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line-2)); }
.ind-choice label small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ind-choice input:checked + label { border-color: var(--primary); background: var(--bg-tint); box-shadow: inset 0 0 0 1px var(--primary); }
.ind-choice input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--primary) 45%, white); outline-offset: 2px; }

/* ---------- 간편 로그인 (partials/social.html) — 각 회사 버튼 안내: 카카오 #FEE500·검은 말풍선·글자 검정 85% / 네이버 #03C75A·흰 N / 구글 흰 바탕·#747775 테두리·#1F1F1F 글자·4색 G ---------- */
.social { display: grid; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 8px 16px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; text-align: center; text-decoration: none !important;
  transition: filter .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.social-btn:hover { filter: brightness(.97); box-shadow: var(--shadow-sm); }
.social-btn:active { filter: brightness(.93); }
.social-mark { width: 20px; height: 20px; flex: none; }
.social-kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.social-naver { background: #03C75A; color: #fff; }
.social-naver .social-mark { width: 15px; height: 15px; margin: 0 2px; }
.social-google { background: #fff; color: #1F1F1F; border-color: #747775; }
.social-google:hover { filter: none; background: #F7F8F8; }
.social-fake { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 24px; color: var(--muted); font-size: 14px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#social-msg:empty { display: none; }
/* 내 계정 › 간편 로그인 목록의 작은 표시 */
.social-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; border: 1px solid transparent; }
.social-dot-kakao { background: #FEE500; border-color: #E6CF00; }
.social-dot-naver { background: #03C75A; }
.social-dot-google { background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); }

/* ---------- 다운로드 ---------- */
.dl-card { padding: clamp(28px, 4vw, 40px); }
.dl-card > .btn { margin: 8px 0 12px; }
.dl-card .actions { margin-top: 24px; justify-content: center; }
.dl-card p:last-child { margin-bottom: 0; }
.dl-steps-head { margin: clamp(64px, 8vw, 96px) auto 32px; }
.dl-req { margin-top: 32px; }
.dl-guide { margin-top: 32px; }

/* ---------- 내 계정 ---------- */
.acct-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.acct-plan-name { font-size: 26px; font-weight: 800; margin: 4px 0; letter-spacing: -0.03em; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 16px 0 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* 자동 결제 스위치 (내 계정 › 요금제 — 앱 설정 › 계정·요금제와 같은 스위치·같은 말 — assets/js/account.js autoRenewBox) */
.autopay { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.autopay-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.autopay-text { min-width: 0; }
.autopay-title { font-weight: 800; font-size: 16px; margin: 0 0 2px; }
.autopay-state { margin: 0; font-size: 15px; color: var(--ink-2); }
.autopay-state.warn { color: var(--warn); font-weight: 600; }
.autopay-sub { margin: 4px 0 0; }
.autopay-help { margin: 10px 0 0; }
.autopay + .inline-form { margin-top: 18px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; padding: 0; border: 0; border-radius: 999px; background: #C3C9D6; cursor: pointer; transition: background-color .18s var(--ease); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 16, 32, .28); transition: transform .18s var(--ease); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); }
.switch:disabled { cursor: not-allowed; opacity: .5; }
.switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 3px; border-radius: 999px; }
.gauge { margin-top: 16px; }
.gauge-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.gauge-top b { font-weight: 700; }
.gauge-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.gauge-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s; }
.gauge.high .gauge-bar span { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .li-main { min-width: 0; }
.list .li-title { font-weight: 700; }
.list .li-sub { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); padding: 14px 0; }
.section-title { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 13px; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }

/* ---------- 결제 ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line.total { font-size: 20px; font-weight: 800; border-bottom: 0; }
.status-big { text-align: center; padding: 32px 12px; }
.status-big .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.status-big .ic svg { width: 32px; height: 32px; }
.status-big .ic.ok { background: var(--ok-bg); color: var(--ok); }
.status-big .ic.err { background: var(--danger-bg); color: var(--danger); }
.status-big .ic.wait { background: var(--bg-tint); color: var(--primary); }
.spinner { width: 28px; height: 28px; border: 3px solid color-mix(in srgb, var(--primary) 25%, white); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-box { font-family: var(--mono); font-size: 28px; font-weight: 800; letter-spacing: .12em; background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px; text-align: center; }
/* 앱 연결: 앱 화면의 코드를 직접 넣는 칸 (LAUNCH_CHECK F3) */
.input-code { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; }

/* ---------- 무료 체험 인증 (/verify — assets/js/verify.js) ---------- */
.v-steps { display: grid; gap: 16px; margin-top: 16px; }
.v-step-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.v-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.v-step.is-done .v-num { background: var(--ok); }
.v-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; flex: 1; min-width: 0; }
.v-to { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; overflow-wrap: anywhere; }
.v-step .btn-block + .btn-block { margin-top: 10px; }
/* 둘 중 하나만(회사 서버 설정 any): 이메일 칸과 휴대폰 칸 사이 '또는' */
.v-steps .v-or { margin: 0; font-weight: 700; }
.v-done { margin-top: 16px; }
.v-done .status-big { padding: 16px 4px; }
.v-done h2 { font-size: 22px; letter-spacing: -0.02em; }
.v-done .actions .btn { flex: 1 1 200px; }
.v-done h2:focus { outline: none; }

/* 가짜 결제창 */
.fakepg { max-width: 460px; margin: 40px auto; background: #fff; border-radius: 18px; border: 2px dashed #f59e0b; box-shadow: var(--shadow-lg); overflow: hidden; }
.fakepg-head { background: #111827; color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.fakepg-body { padding: 22px 20px; }
.radio-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.radio-row input { accent-color: var(--primary); width: 18px; height: 18px; }

/* 확인창·알림 */
dialog.confirm { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
dialog.confirm::backdrop { background: rgba(11, 16, 32, .45); backdrop-filter: blur(2px); }
.confirm-body { padding: 24px 24px 8px; }
.confirm-body h2 { font-size: 19px; }
.confirm-body p { color: var(--ink-2); white-space: pre-line; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px 22px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; max-width: calc(100% - 32px); font-size: 15px; }

/* 법률 문서 */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: 32px; font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 40px; padding-top: 8px; }
.legal h3 { font-size: 17px; margin-top: 22px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ol, .legal ul { padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal .meta { color: var(--muted); font-size: 14px; }
.legal .toc { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 20px; }

/* 관리자 */
.admin-layout { padding: 28px 0 60px; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-tools .input { max-width: 320px; min-height: 40px; }
.mfa-key { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #f3f5f9; font: 600 18px/1.4 var(--mono); letter-spacing: .06em; word-break: break-all; }
.admin-tools .mfa-code { max-width: 160px; font-size: 18px; letter-spacing: .2em; text-align: center; }
.admin-tools .mfa-code:placeholder-shown { font-size: 15px; letter-spacing: normal; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-row { cursor: pointer; }
.admin-row:hover td, .admin-row[aria-selected="true"] td { background: var(--bg-tint); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.inline-form .input { min-height: 38px; padding: 6px 10px; width: auto; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > a { padding: 8px 9px; font-size: 14px; }
}
/* 메뉴 8개 + 로그인·회원가입·시작 단추가 한 줄에 다 들어가지 않는 폭부터 접는 메뉴(☰) */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-login { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav { opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), display .2s allow-discrete; }
  .site-nav.open { display: flex; opacity: 1; transform: none; }
  @starting-style { .site-nav.open { opacity: 0; transform: translateY(-6px); } }
  .site-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .site-nav .nav-auth[data-auth="out"] { display: inline-flex; }
  .nav-auth { margin: 12px 0 0; justify-content: stretch; gap: 8px; }
  .nav-auth > * { flex: 1; text-align: center; }
  .nav-auth > a:not(.btn) { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .acct-grid, .checkout, .admin-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .header-cta { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .logo-text { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cta-band { padding: 48px 20px; border-radius: 22px; }
  .form-card { padding: 22px; }
  .card { padding: 22px; }
  .ind-choices { grid-template-columns: minmax(0, 1fr); }
  .plan-price { font-size: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .list li { flex-wrap: wrap; }
  .v-title { font-size: 18px; }
}
@media (max-width: 380px) {
  .logo-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 덧붙임 */
.section-tight { padding-top: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
fieldset.field legend { padding: 0; }
.center-row { justify-content: center; }
.status-big .actions { margin-top: 8px; }
.icon { display: inline-flex; vertical-align: middle; }
.li-title svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; word-break: break-all; }

/* 회사 로고 그림 (config/brand.json logo) */
.logo-mark .logo-img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
.logo-mark:has(.logo-img) { background: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 22%, transparent); }   /* 로고 그림(둥근 사각형 포함)이 있으면 바탕색을 겹쳐 그리지 않음 */
