/* =====================================================================
 * PowerTax — 공통 스타일
 * 남색(Navy) + 금색(Gold) 계열, 업무용 소프트웨어 톤
 * ===================================================================== */

:root {
  --navy-900: #0b1630;
  --navy-800: #102043;
  --navy-700: #17305f;
  --navy-600: #1f3d78;
  --navy-100: #e8edf6;
  --navy-50:  #f4f6fb;

  --gold-600: #a8832f;
  --gold-500: #c49a3c;
  --gold-400: #d9b45e;
  --gold-100: #f7eed9;

  --ink:      #1a2233;
  --ink-soft: #4a5468;
  --ink-mute: #7a8396;
  --line:     #dfe4ee;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fc;

  --ok:       #1f7a4d;

  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 1px 2px rgba(11, 22, 48, .06), 0 8px 24px rgba(11, 22, 48, .08);
  --container: 1120px;

  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.35; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ── 헤더 ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 48, .97);
  border-bottom: 1px solid rgba(217, 180, 94, .25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; font-size: .8rem; color: var(--gold-400); margin-left: 4px; }

.logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900); font-weight: 900; font-size: 1.05rem;
}

.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: #d4dbea; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold-400); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  color: #fff; padding: 6px 10px; font: inherit; font-size: .9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(217, 180, 94, .25);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .site-nav a { padding: 12px 10px; }
}

/* ── 버튼 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; }

/* ── 히어로 ─────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(196,154,60,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #d9e0ee;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-400);
  border: 1px solid rgba(217,180,94,.4); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 18px;
}
.hero-lead { font-size: 1.1rem; color: #c3cce0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: #93a0bb; }

/* 히어로 우측: 프로그램 화면 일러스트 (CSS로 그린 가상 화면) */
.mock {
  background: #fff; color: var(--ink);
  border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  overflow: hidden; font-size: .86rem;
  border: 1px solid rgba(255,255,255,.1);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy-100); padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c6cede; }
.mock-bar span { margin-left: 8px; font-weight: 700; color: var(--navy-700); font-size: .8rem; }
.mock-body { padding: 16px; }
.mock-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
}
.mock-row b { color: var(--navy-900); font-weight: 700; }
.mock-row small { display: block; color: var(--ink-mute); font-size: .76rem; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px;
}
.tag-done { background: #e3f3ea; color: var(--ok); }
.tag-wait { background: var(--gold-100); color: var(--gold-600); }
.tag-next { background: var(--navy-50); color: var(--navy-600); }
.mock-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  color: var(--ink-soft); font-size: .8rem;
}
.mock-foot .mini-btn {
  background: var(--gold-500); color: var(--navy-900); font-weight: 700;
  padding: 6px 12px; border-radius: 6px;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── 섹션 공통 ──────────────────────────────────────── */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  display: block; font-size: .85rem; font-weight: 800; letter-spacing: .06em;
  color: var(--gold-600); margin-bottom: 8px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

@media (max-width: 640px) { .section { padding: 60px 0; } }

/* ── 처리 흐름 ──────────────────────────────────────── */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.flow li {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px;
  counter-increment: step;
}
.flow li::before {
  content: "STEP " counter(step);
  display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  color: var(--gold-600); margin-bottom: 10px;
}
.flow li.human {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.flow .who {
  display: inline-block; margin-top: 10px;
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px;
}
.who-auto  { background: var(--navy-50); color: var(--navy-600); }
.who-human { background: var(--gold-100); color: var(--gold-600); }
.flow p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ── 카드 그리드 ────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.card p { color: var(--ink-soft); margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--navy-800); color: var(--gold-400);
}
.card .icon svg { width: 22px; height: 22px; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* ── 안전 원칙 강조 박스 ─────────────────────────────── */
.safety {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--navy-900); color: #c9d2e4;
  border-radius: 18px; padding: 48px;
}
.safety h2 { color: #fff; }
.safety ul { list-style: none; margin: 0; padding: 0; }
.safety li {
  position: relative; padding: 14px 0 14px 34px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.safety li:last-child { border-bottom: 0; }
.safety li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230b1630' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.safety li strong { color: #fff; display: block; }

@media (max-width: 860px) {
  .safety { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
}

/* ── CTA 띠 ────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #c9d2e4; padding: 56px 0;
}
.cta-band .container {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ── 페이지 상단(서브 페이지) ─────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #c3cce0; padding: 56px 0 48px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { margin: 0; max-width: 40em; }

/* ── 요금 ──────────────────────────────────────────── */
.pricing-wrap {
  display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start;
}
.plan {
  background: #fff; border: 2px solid var(--gold-500); border-radius: 16px;
  padding: 32px 28px; box-shadow: var(--shadow);
}
.plan-name { font-weight: 800; color: var(--navy-900); font-size: 1.1rem; }
.plan-price {
  display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px;
  color: var(--navy-900);
}
.plan-price strong { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.plan-price span { font-weight: 600; color: var(--ink-soft); }
.plan-sub { color: var(--ink-mute); font-size: .92rem; margin-bottom: 20px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { position: relative; padding: 7px 0 7px 28px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23d9b45e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plan-foot { margin-top: 14px; font-size: .85rem; color: var(--ink-mute); text-align: center; }

@media (max-width: 920px) { .pricing-wrap { grid-template-columns: 1fr; } }

/* ── 표 ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--navy-50); color: var(--navy-900); font-weight: 700; white-space: nowrap; }
.table-wrap.narrow table { min-width: 0; }

/* ── FAQ ───────────────────────────────────────────── */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 48px 16px 20px; position: relative;
  font-weight: 700; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gold-600); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── 약관/정책 문서 ─────────────────────────────────── */
.doc-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start;
}
.doc-toc {
  position: sticky; top: 88px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px;
  background: var(--bg-soft); font-size: .9rem;
}
.doc-toc strong { display: block; color: var(--navy-900); margin-bottom: 8px; }
.doc-toc ol { margin: 0; padding-left: 18px; }
.doc-toc li { margin: 4px 0; }
.doc-toc a { color: var(--ink-soft); }
.doc-toc a:hover { color: var(--navy-600); }

.doc { max-width: 780px; }
.doc h2 {
  font-size: 1.25rem; margin-top: 2.4em; padding-top: .4em;
  scroll-margin-top: 84px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.02rem; margin-top: 1.4em; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin: .3em 0; }
.doc .meta {
  font-size: .9rem; color: var(--ink-mute);
  border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1.2em;
}

.notice {
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 0 0 1.6em; color: var(--ink);
}
.notice p:last-child { margin-bottom: 0; }
.notice.navy { border-left-color: var(--navy-600); background: var(--navy-50); }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; }
}

/* ── 문의 ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: #fff;
}
.contact-card .label { font-size: .85rem; color: var(--ink-mute); font-weight: 700; }
.contact-card .value {
  display: block; font-size: 1.35rem; font-weight: 800; color: var(--navy-900);
  margin: 4px 0 8px; word-break: break-all;
}
.contact-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── 푸터 ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900); color: #8f9bb5;
  padding: 44px 0 36px; font-size: .88rem; line-height: 1.6;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.footer-brand:hover { text-decoration: none; }
.footer-brand small { color: var(--gold-400); font-weight: 500; margin-left: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: #c3cce0; }
.footer-links strong { color: #fff; }

.biz-info {
  display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 18px;
}
.biz-info > div { display: flex; gap: 6px; }
.biz-info dt { color: #6f7c98; }
.biz-info dt::after { content: ""; }
.biz-info dd { margin: 0; color: #b4bfd4; }
.biz-info a { color: #b4bfd4; }
.biz-check {
  margin-left: 6px; font-size: .8rem; color: var(--gold-400) !important;
  border: 1px solid rgba(217,180,94,.4); border-radius: 4px; padding: 0 6px;
}
.disclaimer { font-size: .82rem; color: #6f7c98; margin: 0 0 8px; }
.copyright { margin: 0; color: #5f6b86; font-size: .82rem; }

@media (max-width: 640px) {
  .biz-info { flex-direction: column; }
}

/* 그리드 안의 표·긴 글이 화면 밖으로 밀려나지 않도록 */
.hero-grid > *, .pricing-wrap > *, .doc-layout > *, .contact-grid > *, .cards > * { min-width: 0; }

/* ── 유틸 ──────────────────────────────────────────── */
.muted { color: var(--ink-mute); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }
.center { text-align: center; }
