/* 스튜디오 공통 제목/푸터 번호 폰트 (디지털·톡 등과 동일) */
@font-face { font-family: 'GmarketSans'; font-weight: 500; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff'); }
@font-face { font-family: 'GmarketSans'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff'); }

:root {
    --ink: #101828;
    --ink-2: #202939;
    --muted: #667085;
    --line: #e4e7ec;
    --canvas: #f6f7f9;
    --white: #ffffff;
    --blue: #2563eb;
    --green: #0f9d6e;
    --orange: #ea580c;
    --purple: #7c3aed;
    --max: 1180px;
    --header: 68px;
    --radius: 8px;
    --shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Pretendard, Arial, sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0; }
body.menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; word-break: keep-all; }
button { border: 0; background: none; color: inherit; cursor: pointer; }

.ek-container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.ek-narrow { width: min(calc(100% - 48px), 860px); margin: 0 auto; }
.ek-section { padding: 112px 0; }
.ek-section.alt { background: var(--canvas); }
.ek-section.dark { background: var(--ink); color: var(--white); }
.ek-eyebrow { display: block; margin-bottom: 14px; color: var(--blue); font-size: .78rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.ek-section-title { max-width: 780px; font-size: clamp(2rem, 2.55rem, 2.55rem); line-height: 1.25; font-weight: 800; }
.ek-section-desc { max-width: 700px; margin-top: 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.ek-section.dark .ek-section-desc { color: #b9c1cf; }
.ek-section-head { margin-bottom: 52px; }
.ek-section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.ek-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 750; }
.ek-more i { transition: transform .2s ease; }
.ek-more:hover i { transform: translateX(4px); }

.ek-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--white); font-weight: 750; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.ek-button:hover { transform: translateY(-2px); background: #000; border-color: #000; }
.ek-button.light { border-color: var(--line); background: var(--white); color: var(--ink); }
.ek-button.light:hover { border-color: var(--ink); }
.ek-button.blue { border-color: var(--blue); background: var(--blue); }

.ek-header { position: sticky; z-index: 100; top: 0; height: var(--header); border-bottom: 1px solid rgba(228, 231, 236, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.ek-header-inner { position: relative; max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 34px; }
.ek-brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font-size: 1.08rem; font-weight: 900; line-height: 1; }
.ek-brand img { height: 23px; width: auto; display: block; }
.ek-nav { flex: 1; display: flex; justify-content: center; gap: 30px; font-size: 15.5px; font-weight: 400; color: var(--ink); }
.ek-nav a { white-space: nowrap; transition: color .15s ease; }
.ek-nav a:hover, .ek-nav a.on { color: var(--blue); }
.ek-header-actions { display: flex; align-items: center; gap: 8px; }
/* 스튜디오 콘솔 버튼 (톡 스튜디오 헤더와 동일 디자인) */
.ek-console { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 10px; transition: .15s; white-space: nowrap; }
.ek-console:hover { border-color: var(--blue); color: var(--blue); background: #eef4ff; }
.ek-console .gi { width: 19px; height: 19px; }

/* 패밀리 사이트 드롭다운 (헤더 우측, 아래로 열림) */
.ek-fam { position: relative; }
.ek-fam-btn { display: flex; align-items: center; gap: 6px; height: 40.39px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid #e4e7ec; padding: 0 16px; border-radius: 10px; cursor: pointer; background: #f2f4f7; white-space: nowrap; }
.ek-fam-ic { font-size: 17px; color: #1a2547; }
.ek-fam-chev { transition: transform .18s; }
.ek-fam-btn:hover { border-color: #c3c8d0; background: #e9edf2; }
.ek-fam.open .ek-fam-btn .ek-fam-chev { transform: rotate(180deg); }
.ek-fam-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 210px; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .18s; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 5; }
.ek-fam:hover .ek-fam-menu, .ek-fam.open .ek-fam-menu { opacity: 1; visibility: visible; transform: none; }
.ek-fam-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 12px; color: #7b8493; border-radius: 8px; }
.ek-fam-menu a:hover { background: rgba(0, 0, 0, .04); color: #4b5563; }
.ek-fam-menu .d { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.ek-menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; font-size: 1.45rem; }

.ek-mobile-dim { position: fixed; z-index: 190; inset: 0; visibility: hidden; background: rgba(16, 24, 40, .45); opacity: 0; transition: .25s ease; }
.ek-mobile-nav { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); padding: 0 22px 22px; background: var(--white); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.ek-mobile-dim.open { visibility: visible; opacity: 1; }
.ek-mobile-nav.open { transform: translateX(0); }
.ek-mobile-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); margin: 0 -22px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.ek-mobile-title { font-weight: 900; }
.ek-mobile-logo { height: 22px; width: auto; display: block; }
.ek-mobile-top button { width: 42px; height: 42px; font-size: 1.4rem; }
.ek-mobile-nav nav { display: grid; margin-top: 18px; }
.ek-mobile-nav nav a { display: flex; min-height: 52px; align-items: center; font-weight: 400; color: var(--ink); }
.ek-mobile-nav nav a.on { color: var(--blue); }
.ek-mobile-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 24px; }
.ek-mobile-actions a { display: flex; gap: 6px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.ek-mobile-actions .gi { width: 19px; height: 19px; }

.ek-page-hero { padding: 92px 0 74px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.ek-page-hero h1 { max-width: 800px; font-size: clamp(2.4rem, 3.5rem, 3.5rem); line-height: 1.18; font-weight: 850; }
.ek-page-hero p { max-width: 680px; margin-top: 20px; color: var(--muted); font-size: 1.08rem; }
.ek-page-hero .ek-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: .82rem; font-weight: 700; }

.ek-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ek-service-card { position: relative; min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ek-service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ek-service-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--service); content: ''; }
.ek-service-card.digital { --service: var(--blue); }
.ek-service-card.pay { --service: var(--green); }
.ek-service-card.talk { --service: var(--orange); }
.ek-service-card.content { --service: var(--purple); }
.ek-service-icon { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 38px; border-radius: 8px; background: color-mix(in srgb, var(--service) 10%, white); }
.ek-service-icon img { width: 27px; height: 27px; }
.ek-service-status { color: var(--service); font-size: .72rem; font-weight: 850; }
.ek-service-card h3 { margin-top: 8px; font-size: 1.35rem; }
.ek-service-card p { margin-top: 12px; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.ek-service-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 24px; color: var(--service); font-size: .88rem; font-weight: 800; }

.ek-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.ek-filter a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--muted); font-size: .84rem; font-weight: 700; }
.ek-filter a.on { border-color: var(--ink); background: var(--ink); color: var(--white); }

.ek-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ek-content-card { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.ek-content-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--canvas); overflow: hidden; }
.ek-content-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ek-content-card:hover .ek-content-thumb img { transform: scale(1.03); }
.ek-content-fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-weight: 900; }
.ek-content-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: .78rem; }
.ek-content-meta .studio { color: var(--blue); font-weight: 800; }
.ek-content-card.pay .ek-content-meta .studio { color: var(--green); }
.ek-content-card.talk .ek-content-meta .studio { color: var(--orange); }
.ek-content-card.content .ek-content-meta .studio { color: var(--purple); }
.ek-content-card h2, .ek-content-card h3 { margin-top: 9px; font-size: 1.08rem; line-height: 1.45; }

.ek-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; }
.ek-pagination a, .ek-pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; font-weight: 750; }
.ek-pagination span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.ek-empty { padding: 90px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }

.ek-article { padding: 86px 0 120px; }
.ek-article-head { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.ek-article-head h1 { max-width: 880px; font-size: clamp(2rem, 3rem, 3rem); line-height: 1.3; }
.ek-article-meta { display: flex; gap: 12px; margin-top: 20px; color: var(--muted); font-size: .84rem; }
.ek-article-body { margin-top: 48px; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.ek-article-body img { height: auto; margin: 28px auto; }
.ek-article-body h1, .ek-article-body h2, .ek-article-body h3 { margin: 42px 0 16px; line-height: 1.35; }
.ek-article-body p { margin: 0 0 18px; }
.ek-article-body ul, .ek-article-body ol { margin: 18px 0; padding-left: 24px; list-style: initial; }
.ek-article-body table { width: 100%; border-collapse: collapse; }
.ek-article-body td, .ek-article-body th { padding: 12px; border: 1px solid var(--line); }
.ek-article-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 54px; font-weight: 750; }
.ek-article-cta { margin-top: 70px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.ek-article-cta > span { color: var(--blue); font-size: .72rem; font-weight: 850; }
.ek-article-cta h2 { margin: 10px 0 24px; font-size: 1.55rem; line-height: 1.4; }

.ek-cta-band { padding: 72px 0; background: var(--blue); color: var(--white); }
.ek-cta-band .ek-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ek-cta-band h2 { font-size: clamp(1.8rem, 2.5rem, 2.5rem); line-height: 1.3; }
.ek-cta-band p { margin-top: 10px; color: #dce7ff; }
.ek-cta-band .ek-button { border-color: var(--white); background: var(--white); color: var(--blue); }

/* ── 푸터 (디지털/톡/페이/콘텐츠 스튜디오 공통 dg-ft 디자인 이식) ── */
.dg-ft { background: #fff; color: #9aa3b0; border-top: 1px solid var(--line); }
.dg-ft-main { display: grid; grid-template-columns: 1fr 1.25fr; gap: 34px; max-width: 1120px; margin: 0 auto; padding: 36px 24px; }
.dg-cs { display: flex; flex-direction: column; align-items: flex-start; }
.dg-cs-label { font-size: 12px; font-weight: 600; color: #3f4653; margin-bottom: 9px; }
.dg-ft .dg-cs-num { font-family: 'GmarketSans', sans-serif; font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: #3f4653; letter-spacing: -.02em; line-height: 1.05; display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.dg-cs-num span { font-family: 'Pretendard'; font-size: 15px; font-weight: 600; color: var(--blue); background: #eef4ff; padding: 6px 12px; border-radius: 20px; }
.dg-cs-time { font-size: 12px; color: #3f4653; margin-top: 12px; }
.dg-ft .dg-cs-mail { font-size: 12px; color: #3f4653; margin-top: 0; display: inline-flex; align-items: center; gap: 7px; }
.dg-cs-mail-label { color: #3f4653; font-weight: 400; }
.dg-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px; align-self: center; }
.dg-biz-row { font-size: 12px; font-weight: 300; color: #aab2bf; line-height: 1.5; }
.dg-biz-row span { display: inline-block; min-width: 78px; color: #aab2bf; }
.dg-biz-row.full { grid-column: 1 / -1; }
.dg-ft-bottom { border-top: 1px solid var(--line); }
.dg-ft-bottom-in { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dg-ft-copy { font-size: 12px; color: #aab2bf; }
/* 패밀리 사이트 드롭다운(위로 열림) */
.dg-fam { position: relative; }
.dg-fam-btn { display: flex; align-items: center; gap: 8px; height: 35px; font-size: 12px; font-weight: 500; color: var(--ink); border: 1px solid #e0e3e8; padding: 0 15px; border-radius: 9px; cursor: pointer; background: transparent; }
.dg-fam-btn i { transition: transform .18s; }
.dg-fam.open .dg-fam-btn i { transform: rotate(180deg); }
.dg-fam-btn:hover { border-color: #c3c8d0; color: #4b5563; }
.dg-fam-menu { position: absolute; bottom: calc(100% + 8px); right: 0; width: 210px; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 5; }
.dg-fam:hover .dg-fam-menu, .dg-fam.open .dg-fam-menu { opacity: 1; visibility: visible; transform: none; }
.dg-fam-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 12px; color: #7b8493; border-radius: 8px; }
.dg-fam-menu a:hover { background: rgba(0, 0, 0, .04); color: #4b5563; }
.dg-fam-menu .d { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.dg-fam-menu .d-ic { width: 12px; height: 12px; flex-shrink: 0; object-fit: contain; margin: 0 -1px 0 -2px; }
@media (max-width: 780px) {
    .dg-ft-main { grid-template-columns: 1fr; gap: 28px; }
    .dg-biz { grid-template-columns: 1fr; }
}

.legal-content { max-width: 860px; }
.legal-content h2 { margin: 2.5rem 0 .75rem; font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); line-height: 1.8; }
.legal-date { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* 스크롤 등장(fade-in) 제거 — 콘텐츠는 로드 즉시 그대로 노출. */
.ek-reveal, .js .ek-reveal, .js .ek-reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .ek-nav { gap: 30px; }
    .ek-service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 1090px 이하에서 콘솔 텍스트 숨기고 아이콘만 (1091px까지는 텍스트 유지, 아이콘은 900px까지 유지) */
@media (max-width: 1090px) {
    .ek-console span { display: none; }
    .ek-header-inner { gap: 22px; }
    .ek-nav { gap: 18px; }
}

@media (max-width: 900px) {
    :root { --header: 68px; }
    .ek-header-inner { width: min(calc(100% - 48px), 100%); padding: 0; }
    .ek-nav, .ek-header-actions { display: none; }
    .ek-menu-button { display: inline-flex; }
    .ek-section { padding: 84px 0; }
    .ek-section-head.row { align-items: start; flex-direction: column; }
    .ek-content-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .ek-container, .ek-narrow { width: min(calc(100% - 32px), var(--max)); }
    .ek-section { padding: 70px 0; }
    .ek-section-title { font-size: clamp(1.75rem, 2rem, 2rem); }
    .ek-section-desc { font-size: .96rem; }
    .ek-page-hero { padding: 68px 0 54px; }
    .ek-page-hero h1 { font-size: clamp(2rem, 2.35rem, 2.35rem); }
    .ek-service-grid, .ek-content-grid { grid-template-columns: 1fr; }
    .ek-service-card { min-height: 250px; }
    .ek-cta-band .ek-container { align-items: start; flex-direction: column; }
    .ek-article { padding: 58px 0 80px; }
    .ek-article-head h1 { font-size: clamp(1.75rem, 2rem, 2rem); }
    .ek-article-cta { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .ek-reveal { opacity: 1; transform: none; }
}
