/* 제휴(CPS) 카드 공용 스타일. 웹과 확장이 같은 한 줄 import 로 가져간다. 클래스는 .jt-aff* 만 쓴다.
   색·간격은 앱이 --jt-aff-* 변수로 테마를 지정하고, 지정하지 않으면 아래 기본값을 쓴다. */
.jt-aff {
    padding: var(--jt-aff-padding, 10px 14px);
    border: 1px dashed var(--jt-aff-border, #d1d5db);
    border-radius: var(--jt-aff-radius, 10px);
    background: var(--jt-aff-bg, transparent);
    color: var(--jt-aff-fg, inherit);
    font-size: var(--jt-aff-font-size, 0.88rem);
    text-align: left;
}
.jt-aff__label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 0.78em;
    font-weight: 700;
    color: var(--jt-aff-muted, #6b7280);
}
.jt-aff__link { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.jt-aff__link:hover .jt-aff__title { text-decoration: underline; }
.jt-aff__desc, .jt-aff__disclosure { color: var(--jt-aff-muted, #6b7280); font-size: 0.9em; }
.jt-aff__disclosure { margin: 6px 0 0; }


:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(37, 99, 235, 0.25);
    --text-main: #0f172a;
    --text-sub: #475569;
    --text-muted: #64748b;
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-accent: #06b6d4;
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --band-bg: #f0f7ff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background:
        radial-gradient(1000px 500px at 5% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(800px 500px at 95% 5%, rgba(6, 182, 212, 0.12), transparent 55%),
        radial-gradient(900px 600px at 50% 100%, rgba(99, 102, 241, 0.08), transparent 60%),
        var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

/* 줄바꿈: 한국어는 어절 단위로 유지, 일본어는 띄어쓰기가 없어 글자 사이에서 줄바꿈, 독일어·프랑스어·스페인어는 단어 안 하이픈 허용 */
html:lang(ko) body { word-break: keep-all; }
html:lang(de) body, html:lang(fr) body, html:lang(es) body { hyphens: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 2000;
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
}
.skip-link:focus { top: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Top Navigation Bar ────────────────────────────── */
header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-main {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.brand-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo-symbol {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.brand-name-en { font-weight: 800; }
.brand-name-ko { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }

.nav-right {
    display: flex; align-items: center; gap: 14px;
}

/* 언어 전환: JS 없는 링크 목록 (현재 언어는 aria-current) */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-sub); }
.lang-switch ul { list-style: none; display: inline-flex; gap: 6px; }
.lang-switch a {
    display: inline-flex; padding: 6px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    transition: all 0.2s;
}
.lang-switch a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.lang-switch a[aria-current="true"] { border-color: var(--brand-primary); color: var(--brand-primary); background: #eff6ff; }

/* ── Product Tabs Bar (KingTools Style) ────────────── */
.prod-nav-wrap {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(255, 255, 255, 0.6);
    overflow-x: auto;
    scrollbar-width: none;
}
.prod-nav-wrap::-webkit-scrollbar { display: none; }

.prod-tabs {
    display: flex; align-items: center; gap: 6px;
    list-style: none; padding: 6px 0;
}

.prod-tab-item { flex-shrink: 0; }
.prod-tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; color: var(--text-sub);
    border: 1px solid transparent; background: transparent;
    cursor: pointer; transition: all 0.18s;
}
.prod-tab-btn:hover {
    color: var(--text-main); background: rgba(255, 255, 255, 0.9);
    border-color: var(--border);
}
.prod-tab-btn.active {
    color: var(--brand-primary);
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.prod-tab-btn.is-soon { opacity: 0.55; cursor: default; }
.prod-tab-btn.is-soon:hover { background: transparent; border-color: transparent; color: var(--text-sub); }

.tab-badge-new {
    background: #fef08a; color: #854d0e;
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 6px; border-radius: 999px; line-height: 1;
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
    padding: 68px 0 52px;
    text-align: center;
}

.hero-badge-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--brand-primary); font-size: 0.85rem; font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem; font-weight: 800; letter-spacing: -0.035em;
    color: var(--text-main); line-height: 1.2; margin-bottom: 14px;
}
.hero h1 .highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem; font-weight: 500; color: var(--text-sub);
    max-width: 680px; margin: 0 auto 28px; line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 40px;
}
.trust-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 0.84rem; font-weight: 600; color: var(--text-sub);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

/* ── Main Showcase Card (JikDown 간판 프로덕트) ───────── */
.showcase-card {
    background: var(--surface);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 48px -12px rgba(37, 99, 235, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.showcase-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--brand-gradient);
}

.showcase-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.showcase-title-box { display: flex; align-items: center; gap: 16px; text-align: left; }
.showcase-logo {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--brand-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.7rem; font-weight: 900;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.showcase-title-box :is(h1, h2) { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.showcase-title-box p { font-size: 0.95rem; color: var(--text-muted); }

.showcase-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-gradient); color: #fff;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--text-main);
    padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; border: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f8fafc; }

/* Showcase Feature Chips */
.showcase-chips {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    padding-top: 24px; border-top: 1px solid var(--border); text-align: left;
}
.chip-box {
    padding: 16px; border-radius: var(--radius-md);
    background: #f8fafc; border: 1px solid rgba(15, 23, 42, 0.05);
}
.chip-icon { font-size: 1.3rem; margin-bottom: 6px; }
.chip-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.chip-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── All Product Grid (전체 제품 목록) ───────────────── */
.section-head {
    margin-bottom: 32px;
    display: flex; align-items: flex-end; justify-content: space-between;
}
.section-head h2 {
    font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em;
}
.section-head p { font-size: 0.95rem; color: var(--text-muted); }

.prod-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-bottom: 80px;
}

.prod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex; flex-direction: column;
    transition: all 0.25s;
    position: relative;
}
.prod-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.prod-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.prod-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800; color: #fff;
}
.icon-jikdown    { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.icon-jikplayer  { background: linear-gradient(135deg, #10b981, #059669); }
.icon-jikzip     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-jikview    { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.icon-jikcap     { background: linear-gradient(135deg, #ef4444, #dc2626); }
.icon-jikcut     { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-jikpdf     { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.prod-badge {
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 8px; border-radius: 6px;
    background: #f1f5f9; color: #475569;
}
.badge-live { background: #dbeafe; color: #1d4ed8; }
.badge-dev  { background: #fef3c7; color: #b45309; }

.prod-card h3 {
    font-size: 1.25rem; font-weight: 800; margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.prod-card-desc {
    font-size: 0.88rem; color: var(--text-sub); line-height: 1.55;
    margin-bottom: 18px; flex-grow: 1;
}

.prod-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; border-top: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
}
.card-link-btn {
    color: var(--brand-primary); font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}
.card-link-btn:hover { text-decoration: underline; }
.card-link-btn.is-soon { color: var(--text-muted); font-weight: 600; cursor: default; }
.card-link-btn.is-soon:hover { text-decoration: none; }

/* ── Promise & Philosophy Section (3가지 약속) ─────── */
.promise-section {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
    margin-bottom: 64px;
}

.promise-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 48px;
    align-items: center;
}
.promise-lead h2 { font-size: 1.8rem; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.promise-lead p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.promise-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.promise-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 20px; border-radius: var(--radius-md);
    background: #f8fafc; border: 1px solid var(--border);
}
.promise-num {
    width: 28px; height: 28px; border-radius: 999px;
    background: var(--brand-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.promise-text h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.promise-text p { font-size: 0.88rem; color: var(--text-sub); }

/* ── Footer ────────────────────────────────────────── */
footer {
    padding: 48px 0 64px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-row {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-copy { line-height: 1.6; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; }

/* ── Responsive Media Queries ──────────────────────── */
@media (max-width: 1024px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-chips { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-lead { font-size: 1.05rem; }
    .prod-grid { grid-template-columns: 1fr; }
    .showcase-chips { grid-template-columns: 1fr; }
    .showcase-card { padding: 24px 20px; }
    .showcase-header { flex-direction: column; align-items: flex-start; }
    .showcase-actions { width: 100%; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* 준비 중(비활성) 버튼: 링크가 확정되기 전까지 클릭 불가 */
.btn-primary.is-disabled, .btn-outline.is-disabled {
    background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border);
    box-shadow: none; cursor: not-allowed; filter: none; transform: none;
}
.btn-primary.is-disabled:hover, .btn-outline.is-disabled:hover { background: #f1f5f9; color: var(--text-muted); border-color: var(--border); }
.is-disabled small { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; }

.showcase-soon { margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.showcase-more { margin-top: 12px; }

.notes { margin-bottom: 80px; }
.notes h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.notes-list { padding-left: 1.2em; color: var(--text-sub); display: flex; flex-direction: column; gap: 6px; }

/* ── Plain pages (404, product stub, language chooser) ─── */
.plain-page { padding: 96px 0 120px; text-align: center; }
.plain-page h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.plain-page p { color: var(--text-sub); margin-bottom: 24px; }
.lang-chooser { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


/* ── 법무 문서 (개인정보처리방침·이용약관·DMCA 공용) ───── */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 0 96px; }
.legal h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }
.legal section { margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-sub); }
.legal p + p, .legal p + ul, .legal ul + p, .legal ol + p, .legal p + ol { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.legal a { color: var(--brand-primary); text-decoration: underline; }
.legal-contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; color: var(--text-sub); }
.legal-contact dt { font-weight: 700; color: var(--text-main); }
.legal-missing { background: #fef3c7; color: #b45309; padding: 0 6px; border-radius: 4px; }

/* ── 온라인 다운로더 ───────────────────────────────────── */
.dl { max-width: 820px; margin: 0 auto; padding: 56px 0 96px; }
.dl h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.dl-lead { color: var(--text-sub); margin-bottom: 28px; }
.dl-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.dl-row { display: flex; gap: 10px; }
.dl-row input {
    flex: 1; min-width: 0; padding: 12px 14px; font: inherit;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.dl-row input:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
.dl-messages { margin: 16px 0; }
.dl-message {
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
}
.dl-message[data-message="done"] { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dl-cta, .dl-result, .dl-progress {
    margin: 20px 0; padding: 20px 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.dl-cta h2, .dl-result h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.dl-cta p { color: var(--text-sub); margin-bottom: 14px; }
.dl-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin-bottom: 16px; }
.dl-info dt { font-weight: 700; }
.dl-info dd { color: var(--text-sub); overflow-wrap: anywhere; }
.dl-info select { font: inherit; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.dl-progress progress { width: 100%; height: 14px; }
.dl-note { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.dl-note a { color: var(--brand-primary); text-decoration: underline; }

/* ── 배포 센터·관련 링크·라이선스 ───────────────────────── */
.dc-hint { font-weight: 700; color: var(--brand-primary); }
.dc-actions { justify-content: center; margin: 24px 0; }
.dc-note { font-size: 0.88rem; color: var(--text-muted); }
.is-recommended { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.related-links { margin-bottom: 40px; }
.licenses {
    white-space: pre-wrap; overflow-wrap: anywhere; max-height: 70vh; overflow: auto;
    padding: 16px; font-size: 0.8rem; line-height: 1.5;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
}

/* ── 제휴(CPS) 카드 슬롯: 카드 스타일은 공용 패키지의 단일 정의를 쓰고 여기서는 배치와 색 테마만 지정한다 ── */
.cps-slot {
    margin: 24px 0;
    --jt-aff-bg: var(--surface);
    --jt-aff-border: var(--border);
    --jt-aff-radius: var(--radius-md);
    --jt-aff-muted: var(--text-muted);
    --jt-aff-fg: var(--text-main);
}

/* 오류 "자세히": 접을 수 있는 복사용 텍스트 */
.dl-details { margin-bottom: 8px; font-size: 0.85rem; color: var(--text-sub); }
.dl-details summary { cursor: pointer; font-weight: 600; }
.dl-details pre {
    margin-top: 6px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8rem;
}

.dl-file { font-weight: 700; overflow-wrap: anywhere; }
