:root {
    --dl-surface: #ffffff;
    --dl-ink: #33415c;
    --dl-ink-soft: #64748b;
    --dl-line: rgba(148, 163, 184, 0.32);
    --dl-shadow: 0 18px 40px -24px rgba(51, 65, 85, 0.55);
}

.dl-wrap {
    width: min(100%, 72rem);
    margin-inline: auto;
}

.dl-hero {
    text-align: center;
    margin-bottom: 2.75rem;
}

.dl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-size: 0.9rem;
    font-weight: 700;
}

.dl-hero h1 {
    margin: 0.9rem 0 0.6rem;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    color: var(--dl-ink);
    line-height: 1.25;
}

.dl-hero p {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dl-ink-soft);
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
}

@media (min-width: 64rem) {
    /* 3열에서 마지막 한 장만 남으면 가운데에 두어 카탈로그의 균형을 지킨다. */
    .dl-card:last-child:nth-child(3n + 1) {
        grid-column: 2;
    }
}

.dl-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem 1.4rem;
    border-radius: 1.5rem;
    background: var(--dl-surface);
    border: 1px solid var(--dl-line);
    box-shadow: var(--dl-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dl-card:hover,
.dl-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 46px -22px rgba(51, 65, 85, 0.6);
}

.dl-card-icon {
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.08), rgba(99, 102, 241, 0.12));
    margin-bottom: 1rem;
}

.dl-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.dl-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--dl-ink);
}

.dl-card-tagline {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--dl-ink-soft);
    flex: 1;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.dl-chip {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.13);
    color: #047857;
}

.dl-chip--muted {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.dl-chip--pilot {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.dl-chip--verified {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.dl-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
}

.dl-card--soon .dl-card-cta {
    background: rgba(148, 163, 184, 0.35);
    color: #475569;
}

/* ---------- 상세 화면 ---------- */

.dl-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}

.dl-detail-head .dl-card-icon {
    margin-bottom: 0;
    flex: none;
}

.dl-detail-head h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    color: var(--dl-ink);
    line-height: 1.3;
}

.dl-detail-head p {
    margin: 0;
    color: var(--dl-ink-soft);
    font-size: 1.02rem;
    line-height: 1.65;
}

.dl-quality {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    border: 1px solid;
    border-radius: 1.15rem;
}

.dl-quality--pilot {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #78350f;
}

.dl-quality--verified {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

.dl-quality h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.dl-quality p {
    margin: 0;
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.65;
}

.dl-quality-version {
    flex: none;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-weight: 800;
}

.dl-access {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
}

.dl-access-icon {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 2rem;
}

.dl-access h2 {
    margin-bottom: 0.5rem;
}

.dl-access > p {
    margin: 0 auto;
    color: var(--dl-ink-soft);
    line-height: 1.7;
}

.dl-access-form {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.35rem;
    text-align: left;
}

.dl-access-label {
    color: var(--dl-ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.dl-access-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--dl-line);
    border-radius: 0.85rem;
    color: var(--dl-ink);
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-align: center;
    background: #ffffff;
}

.dl-access-input:focus {
    outline: 3px solid rgba(79, 70, 229, 0.18);
    border-color: #6366f1;
}

.dl-access-help {
    margin: 0;
    color: var(--dl-ink-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.dl-access-error {
    margin: 0;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 700;
}

.dl-access-submit {
    min-height: 3rem;
    margin-top: 0.35rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.dl-access-submit:hover,
.dl-access-submit:focus-visible {
    background: #4338ca;
}

.dl-panel {
    padding: 1.7rem 1.6rem;
    border-radius: 1.5rem;
    background: var(--dl-surface);
    border: 1px solid var(--dl-line);
    box-shadow: var(--dl-shadow);
    margin-bottom: 1.4rem;
}

.dl-panel h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dl-ink);
}

.dl-get {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.dl-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.15rem;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.12);
    color: var(--dl-ink);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dl-button:hover,
.dl-button:focus-visible {
    transform: translateY(-2px);
}

.dl-button--primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 16px 32px -18px rgba(79, 70, 229, 0.95);
}

.dl-button--primary .dl-button-sub {
    color: rgba(255, 255, 255, 0.82);
}

.dl-button-main {
    font-size: 1.15rem;
    font-weight: 800;
}

.dl-button-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dl-ink-soft);
    line-height: 1.55;
}

.dl-button-size {
    flex: none;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.85;
}

.dl-button[data-dl-suggested="true"]::after {
    content: "이 컴퓨터에 맞는 파일";
    position: absolute;
    top: -0.7rem;
    left: 1.2rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.dl-button[data-dl-suggested="true"] {
    position: relative;
}

.dl-empty {
    padding: 1.2rem 1.3rem;
    border-radius: 1.15rem;
    background: rgba(148, 163, 184, 0.14);
    color: var(--dl-ink-soft);
    line-height: 1.7;
}

.dl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.dl-step {
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    background: rgba(148, 163, 184, 0.1);
}

.dl-step--emphasis {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.dl-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--dl-ink);
}

.dl-step p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--dl-ink-soft);
}

.dl-note {
    margin-top: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1rem;
    background: rgba(79, 70, 229, 0.09);
    color: #4338ca;
    font-size: 0.95rem;
    line-height: 1.7;
}

.dl-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--dl-ink-soft);
    line-height: 1.85;
    font-size: 0.98rem;
}

.dl-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.9rem;
}

.dl-highlight {
    padding: 1.05rem 1.15rem;
    border-radius: 1.1rem;
    background: rgba(148, 163, 184, 0.1);
}

.dl-highlight-icon {
    font-size: 1.5rem;
}

.dl-highlight h3 {
    margin: 0.4rem 0 0.3rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--dl-ink);
}

.dl-highlight p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--dl-ink-soft);
}

.dl-others {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dl-other {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--dl-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.dl-other img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex: none;
}

.dl-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--dl-ink-soft);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 640px) {
    .dl-quality {
        align-items: flex-start;
        flex-direction: column;
    }
    .dl-detail-head {
        flex-direction: column;
    }

    .dl-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 사용법 데모 영상. 소리가 없으므로 자막이 읽히는 크기면 충분하다. */
.dl-demo-video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0d1117;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.dl-wrap--detail { max-width: 960px; }
.dl-guide > summary, .dl-download-lock > summary {
    cursor: pointer; font-size: 1.1rem; font-weight: 750; color: var(--dl-ink);
}
.dl-download-lock > summary { padding: 0.9rem 1rem; border: 1px solid var(--dl-line); border-radius: 8px; }
.dl-download-lock[open] > summary { margin-bottom: 1rem; }
.dl-access-form { margin-inline: 0; max-width: 26rem; }
.dl-guide[open] > summary { margin-bottom: 1rem; }
.dl-mobile-note { color: var(--dl-ink-soft); line-height: 1.6; }
.dl-button { max-width: 480px; }
.dl-get { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.dl-download-lock > summary:focus-visible, .dl-guide > summary:focus-visible {
    outline: 3px solid #6366f1; outline-offset: 4px;
}
#dl-download { scroll-margin-top: calc(var(--main-nav-height, 0px) + 1rem); }

.dl-video-caption { margin: 0.8rem 0; color: var(--dl-ink-soft); font-size: 0.95rem; }
.dl-video-transcript summary { cursor: pointer; color: var(--dl-ink); font-weight: 700; }
.dl-video-transcript ol { list-style: decimal; padding-left: 1.5rem; }
.dl-download-lock[hidden], [data-dl-buttons][hidden] { display: none; }

select.dl-access-input { letter-spacing: normal; text-align: left; }
