/* Helparty — 공통 스타일
   이미지 자산 없이 타이포그래피와 CSS 그라디언트만으로 구성한다. */

/* ── 토큰 ─────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --text: #15171c;
  --text-muted: #5b6270;
  --border: #e4e7ec;
  --accent: #c93a20;
  --accent-2: #6d28d9;
  --shadow: 0 1px 2px rgba(16, 18, 24, .04), 0 10px 28px rgba(16, 18, 24, .06);

  --radius: 14px;
  --maxw: 1060px;
  --docw: 760px;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-soft: #14171d;
    --surface: #171b22;
    --text: #e9ecf1;
    --text-muted: #a2aab8;
    --border: #262b34;
    --accent: #ff8163;
    --accent-2: #a78bfa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

/* ── 기본 ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── 헤더 ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
}

.brand-mark {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px;
  background: linear-gradient(135deg, #ff6a3d, #d8351b 45%, #6d28d9);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, .25), 0 4px 12px rgba(216, 53, 27, .3);
}

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font: inherit; font-size: .88rem; padding: 7px 12px; cursor: pointer;
}

.site-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}

.site-nav a {
  display: block; padding: 7px 12px; border-radius: 9px;
  color: var(--text-muted); font-size: .93rem; text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 650; background: var(--bg-soft); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 14px; }
  .site-nav a { padding: 11px 10px; font-size: 1rem; }
}

/* ── 히어로 ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 400px at 12% -10%, rgba(255, 106, 61, .38), transparent 62%),
    radial-gradient(680px 420px at 88% 8%, rgba(109, 40, 217, .40), transparent 60%),
    linear-gradient(180deg, #12141a, #0b0d11);
  color: #f2f4f8;
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 100, .5), transparent);
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .8rem; letter-spacing: .01em; color: #ffd9cc;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #ff8a64; box-shadow: 0 0 0 3px rgba(255, 138, 100, .22);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800; letter-spacing: -.035em;
}

.hero .lede {
  margin: 18px 0 0; max-width: 34em;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #c7ccd6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #ff6a3d, #d8351b); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #f2f4f8; }

/* ── 섹션 ─────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-soft { background: var(--bg-soft); }

.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}

.section h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 750; }

.section > .container > p { color: var(--text-muted); max-width: 38em; margin: 14px 0 0; }

/* ── 카드 ─────────────────────────────────────────────────── */
.cards {
  display: grid; gap: 16px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 26px; box-shadow: var(--shadow);
}

.card-index {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em;
  background: linear-gradient(135deg, #ff6a3d, #6d28d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card h3 { margin: 12px 0 8px; font-size: 1.08rem; font-weight: 700; }
.card p { margin: 0; color: var(--text-muted); font-size: .94rem; }

/* ── 로그인 수단 칩 ───────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .92rem; font-weight: 600;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--text-muted)); }
.chip[data-state="pending"] { color: var(--text-muted); font-weight: 500; border-style: dashed; }

/* ── 문의 ─────────────────────────────────────────────────── */
.info-grid {
  display: grid; gap: 14px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.info-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.info-item dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.info-item dd { margin: 8px 0 0; font-size: 1rem; font-weight: 600; }

/* ── 안내 박스 (홈·문서 페이지 공용) ─────────────────────── */
.note {
  margin: 26px 0; padding: 16px 18px; max-width: 46em;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  font-size: .93rem; line-height: 1.65; color: var(--text-muted);
}
.note strong { color: var(--text); }
.note ul { margin: 10px 0 0; padding-left: 20px; }
.note li { margin: 5px 0; }
.section-soft .note { background: var(--surface); }

/* ── 문서 페이지 ──────────────────────────────────────────── */
.doc { padding: 56px 0 88px; }
.doc .container { max-width: var(--docw); }

.doc-header { padding-bottom: 26px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.doc-header h1 { font-size: clamp(1.7rem, 4.6vw, 2.3rem); font-weight: 780; }
.doc-header .meta { margin: 14px 0 0; font-size: .88rem; color: var(--text-muted); }

.doc h2 {
  margin: 46px 0 14px; padding-top: 6px;
  font-size: 1.2rem; font-weight: 720;
}
.doc h3 { margin: 28px 0 10px; font-size: 1.02rem; font-weight: 680; }
.doc p { margin: 14px 0; color: var(--text); }
.doc ul, .doc ol { margin: 14px 0; padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--text-muted); }


.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%; min-width: 460px; border-collapse: collapse; font-size: .93rem;
}
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; font-size: .85rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

/* ── 푸터 ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding: 40px 0; font-size: .9rem; color: var(--text-muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-biz {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px;
  list-style: none; margin: 0; padding: 0; font-size: .8rem;
}
