/* www.sejario.com — EasyCommerce 소개 + 주식회사 새자료 회사 공고.
   색은 앱과 같은 에메랄드(--brand #10b981)에서 나온다. 단 #10b981 은 흰 바탕 글자 대비가 2.5:1이라
   **글자·버튼에는 짙은 --accent 를 쓴다**(앱 BrandMark 주석과 같은 이유). */

@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url('fredoka-latin-600.woff2') format('woff2');
}

:root {
  --brand: #10b981;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: #ecfdf5;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --radius: 14px;
  --max: 1080px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-soft: rgb(16 185 129 / 0.12);
    --bg: #0b1110;
    --bg-alt: #101816;
    --surface: #131c1a;
    --text: #e8efec;
    --muted: #a3b1ac;
    --line: #23302c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

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

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

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* ── 머리 ─────────────────────────────────────────────── */
/* 머리는 밝은 테마에서도 어둡게 둔다 — 새자료 CI(네온 글자)는 어두운 바탕에서만 제 모양이 나고,
   흰 바탕에선 글자 속이 바탕에 묻혀 번진 빛만 남는다. 값은 위 어두운 테마와 같다. */
.site-header {
  --accent: #34d399;
  --accent-hover: #6ee7b7;
  --bg: #0b1110;
  --bg-alt: #101816;
  --text: #e8efec;
  --muted: #a3b1ac;
  --line: #23302c;
  color-scheme: dark;
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

/* 이미지 왼쪽 5px 은 빛 번짐이라 그만큼 당겨 글자 S를 아래 본문 왼쪽 선에 맞춘다. */
.brand {
  display: block;
  flex: none;
  margin-left: -5px;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

/* EasyCommerce 로고 — 첫 화면 소개 줄(.hero-brand)에 들어간다. */
.lockup {
  display: inline-flex;
  align-items: center;
  font-family: 'Fredoka', var(--font);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--brand);
}

.lockup svg {
  width: 32px;
  height: 32px;
  flex: none;
}

/* 마크 오른쪽이 열린 C라 그대로 두면 E와 a 사이만 벌어져 보인다(앱 BrandLockup 과 같은 보정). */
.lockup span {
  margin-left: -0.4em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav .nav-notice {
  color: var(--text);
  font-weight: 600;
}

/* 메뉴 링크 규칙(.site-nav a)이 버튼 색을 덮지 않게 — 안 그러면 가입 신청 글자가 흐린 회색이 된다.
   머리는 늘 어두워서 버튼은 밝은 초록 바탕에 짙은 글자다. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #052e22;
  background: var(--accent);
}

.site-nav a.btn-primary:hover {
  background: var(--accent-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary,
  .btn-primary:hover {
    color: #052e22;
  }
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header .btn {
  padding: 8px 14px;
}

/* ── 첫 화면 ─────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(1000px 420px at 85% -10%, var(--accent-soft), transparent 70%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

/* EasyCommerce 로고는 왼쪽, 한 줄 소개는 같은 칸의 오른쪽 끝. 좁은 화면에선 소개가 아랫줄 왼쪽으로 내려간다. */
.hero-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.flow li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-alt);
  position: relative;
}

.flow li + li::before {
  content: '';
  position: absolute;
  left: 31px;
  top: -11px;
  height: 12px;
  border-left: 2px dashed var(--line);
}

.flow .num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.flow strong {
  display: block;
  font-size: 15px;
}

.flow small {
  color: var(--muted);
  font-size: 13.5px;
}

/* ── 구역 공통 ───────────────────────────────────────── */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 17px;
  margin: 12px 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.pain {
  display: grid;
  gap: 8px;
}

.pain .before {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent);
}

.pain h3 {
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}

.chips li small {
  font-weight: 400;
  color: var(--muted);
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps li {
  counter-increment: step;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (prefers-color-scheme: dark) {
  .steps li::before {
    color: #052e22;
  }
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--muted);
  font-size: 15px;
}

.cta {
  text-align: center;
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}

.cta p {
  color: var(--muted);
  margin: 0 0 24px;
}

.cta .actions {
  justify-content: center;
}

/* ── 공고 ────────────────────────────────────────────── */
.notice-list {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice-list th,
.notice-list td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.notice-list th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-alt);
}

.notice-list tr:last-child td {
  border-bottom: 0;
}

.notice-list .col-num {
  width: 72px;
  color: var(--muted);
}

.notice-list .col-date {
  width: 132px;
  color: var(--muted);
  white-space: nowrap;
}

.notice-list td a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.notice-list td a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.notice-list td.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}

.page-head {
  padding: 48px 0 24px;
}

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.3;
  margin: 0 0 8px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.crumb {
  font-size: 14px;
  margin: 0 0 12px;
}

.crumb a {
  color: var(--muted);
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.notice-meta dt {
  display: inline;
  font-weight: 600;
}

.notice-meta dd {
  display: inline;
  margin: 0 0 0 6px;
}

.notice-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 8px 0 24px;
}

.notice-body > :first-child {
  margin-top: 0;
}

.notice-body > :last-child {
  margin-bottom: 0;
}

.notice-body h2 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.notice-body h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

.notice-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 15px;
}

.notice-body th,
.notice-body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.notice-body th {
  background: var(--bg-alt);
}

.table-scroll {
  overflow-x: auto;
}

.notice-body code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-alt);
}

.home-notices {
  display: grid;
  gap: 8px;
}

.home-notices a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.home-notices a:hover {
  border-color: var(--accent);
}

.home-notices time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 15px;
}

.more {
  margin: 16px 0 0;
}

/* ── 바닥 ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.site-footer .company {
  color: var(--text);
  font-weight: 700;
  margin: 0 0 8px;
}

.site-footer .info {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.site-footer .info dt {
  display: inline;
}

.site-footer .info dd {
  display: inline;
  margin: 0 0 0 4px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-content: start;
}

.site-footer .links a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer .links .privacy {
  color: var(--text);
  font-weight: 700;
}

.copy {
  margin: 16px 0 0;
}

.site-footer .info .ftc {
  margin-left: 6px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .info .ftc:hover {
  color: var(--text);
}

.site-footer .notice {
  margin: 4px 0 0;
  font-size: 13px;
}

/* ── 요금 ─────────────────────────────────────────────
   결제대행사 심사원이 첫 화면에서 '파는 상품과 값'을 찾는다 — 값이 한눈에 들어와야 한다. */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.plan-name {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.plan-price {
  margin: 6px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.plan-price strong {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.plan-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.plan .actions {
  margin-top: 20px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}

.plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* ── 좁은 화면 ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .plan {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .site-nav .opt {
    display: none;
  }

  .site-header .btn-signup {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

  section {
    padding: 56px 0;
  }

  .grid-2,
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .notice-list .col-num {
    display: none;
  }

  .notice-list .col-date {
    width: auto;
  }

  .notice-body {
    padding: 20px 16px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
  }

  .plan {
    padding: 22px;
  }
}

/* 공고 화면을 출력해 증빙으로 보관할 때 — 머리·바닥 메뉴를 뺀다. */
@media print {
  .site-header,
  .site-footer .links,
  .crumb,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .notice-body {
    border: 0;
    padding: 0;
  }
}
