/* 커스팅 메인 페이지 전용 */

/* ───────── 히어로 ───────── */
.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(18, 200, 122, .10), transparent 70%),
        linear-gradient(180deg, rgba(10, 17, 34, .6), transparent 40%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--fog-2); margin-bottom: 22px; }
.hero-kicker img { height: 26px; width: auto; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; line-height: 1.22; letter-spacing: -2.4px; }
.hero-lead { margin-top: 24px; font-size: 19px; line-height: 1.85; color: var(--fog-2); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.hero-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--fog); }
.hero-links a:hover { color: #fff; }
.hero-note { margin-top: 26px; font-size: 14px; color: #77839a; }

/* 링크 → 발행 데모 (프로그램 상품 목록을 그대로 옮긴 모형) */
.demo { border-radius: 14px; background: #1e293b; border: 1px solid #34435f; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); overflow: hidden; }
.demo-top { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #2f3d57; background: #1a2436; }
.demo-url {
    flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; padding: 0 12px;
    border-radius: 6px; background: #0f172a; border: 1px solid #3a4a66;
    font-size: 13.5px; color: #cbd5e1; white-space: nowrap; overflow: hidden;
}
.demo-url .caret { width: 2px; height: 18px; background: var(--green); margin-left: 1px; animation: blink 1s steps(1) infinite; }
.demo-url .ph { color: #64748b; }
.demo-badge { min-width: 86px; display: flex; justify-content: center; }
.demo-badge .kind { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.demo-badge .kind.on { opacity: 1; transform: none; }
.demo-add { height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid #3b82f6; color: #93c5fd; font-size: 13px; font-weight: 700; white-space: nowrap; }
.demo-add.press { background: rgba(59, 130, 246, .2); }
.demo-steps { display: flex; gap: 8px; padding: 12px 18px; border-bottom: 1px solid #2f3d57; font-size: 12.5px; color: var(--fog); }
.demo-steps span { padding: 5px 10px; border: 1px solid #3a4a66; border-radius: 6px; transition: color .2s, border-color .2s, background-color .2s; }
.demo-steps span.run { color: #fff; border-color: var(--green); background: rgba(18, 200, 122, .12); }
.demo table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.demo th { white-space: nowrap; padding: 10px 12px; font-size: 12px; font-weight: 700; color: #cbd5e1; background: #253149; text-align: center; }
.demo th:nth-child(2) { text-align: left; }
.demo td { padding: 11px 12px; border-top: 1px solid #2c3950; text-align: center; color: #e2e8f0; }
.demo td:nth-child(2) { text-align: left; color: #fcd34d; max-width: 0; width: 56%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo td.chk { width: 52px; color: var(--green); font-weight: 700; }
.demo td.chk.wait { color: #475569; }
.demo tr.new td { background: rgba(18, 200, 122, .06); }
.demo-foot { padding: 12px 18px; font-size: 12.5px; color: var(--fog); border-top: 1px solid #2c3950; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── 실제 화면 ───────── */
.screen-section { padding: 0 0 112px; }
.screen-section .window { max-width: 1120px; margin-inline: auto; }
.screen-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; max-width: 1120px; margin: 18px auto 0; font-size: 15px; color: var(--fog); }
.screen-caption a { font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 5px; }

/* ───────── 흐름 (실제 순서) ───────── */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule); }
.flow li { list-style: none; padding: 28px 24px 8px 0; position: relative; }
.flow li::before {
    content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: var(--night); border: 2px solid var(--fog);
}
.flow li.me::before { background: var(--green); border-color: var(--green); }
.flow .who { font-size: 13px; font-weight: 700; color: var(--fog); }
.flow li.me .who { color: var(--green); }
.flow h3 { margin-top: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.flow p { margin-top: 10px; font-size: 15.5px; color: var(--fog); line-height: 1.75; }
.flow-note { margin-top: 36px; padding: 18px 22px; border-left: 3px solid var(--green); background: rgba(18, 200, 122, .06); font-size: 15.5px; color: var(--fog-2); }
.flow-note b { color: #fff; }

/* ───────── 채널 표 ───────── */
.channels { width: 100%; border-collapse: collapse; }
.channels th { padding: 0 16px 14px; font-size: 13px; font-weight: 700; color: var(--fog); text-align: left; border-bottom: 1px solid var(--rule); }
.channels td { padding: 22px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 15.5px; color: var(--fog-2); line-height: 1.7; }
.channels td:first-child { width: 150px; }
.channels td strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.channels .pair { color: #fff; font-weight: 700; }
.channels-note { margin-top: 18px; font-size: 14px; color: var(--fog); }

/* ───────── 프롬프트 ───────── */
.prompt-grid { display: grid; gap: 56px; }
.prompt-shot { max-width: 900px; }
.prompt-grid .prompt-lists { max-width: 900px; }
.prompt-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.prompt-lists h3 { font-size: 16px; font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.prompt-lists ul { list-style: none; }
.prompt-lists li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.prompt-lists li b { display: block; font-size: 15.5px; color: #fff; }
.prompt-lists li span { font-size: 14px; color: var(--fog); line-height: 1.6; }
.prompt-lists li em { font-style: normal; font-size: 12px; color: #93c5fd; margin-left: 6px; }

/* ───────── 대량 ───────── */
.bulk { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.bulk-steps { list-style: none; counter-reset: b; }
.bulk-steps li { counter-increment: b; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.bulk-steps li::before {
    content: counter(b); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: var(--panel-2); border: 1px solid var(--rule); font-weight: 800; color: var(--green); font-size: 18px;
}
.bulk-steps h3 { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.bulk-steps p { margin-top: 6px; font-size: 15.5px; color: var(--fog); }
.fullauto { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--rule); }
.fullauto h3 { font-size: 17px; font-weight: 800; }
.fullauto p { margin-top: 6px; font-size: 15px; color: var(--fog); }
.fullauto dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 14px; font-size: 14.5px; }
.fullauto dt { color: #fff; font-weight: 700; }
.fullauto dd { color: var(--fog-2); }

/* ───────── 운영 설정 ───────── */
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.care > div { background: var(--night); padding: 28px 26px; }
.section.tint .care > div { background: var(--night-deep); }
.care i { font-size: 24px; color: var(--green); }
.care h3 { margin-top: 12px; font-size: 18px; font-weight: 800; }
.care p { margin-top: 8px; font-size: 15px; color: var(--fog); line-height: 1.75; }
.care-shots { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; margin-top: 40px; align-items: start; }

/* ───────── 요금 ───────── */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.price-card { padding: 36px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid #3c4d6c; }
.price-card .plan { font-size: 15px; font-weight: 800; color: var(--amber); }
.price-card .amount { margin-top: 10px; font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: 16px; font-weight: 600; color: var(--fog); letter-spacing: 0; margin-left: 6px; }
.price-card ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 15.5px; color: var(--fog-2); }
.price-card li i { color: var(--green); font-size: 18px; }
.free-card { padding: 36px; border-radius: var(--r-lg); border: 1px dashed #3c4d6c; }
.free-card h3 { font-size: 20px; font-weight: 800; }
.free-card p { margin-top: 10px; font-size: 15.5px; color: var(--fog); }
.free-card p + p { margin-top: 8px; }

/* ───────── 다른 프로그램 (API 카드) ───────── */
.programs-section { padding: 96px 0 104px; }
.topic-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.topic-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--rule); color: var(--fog-2); font-size: 14px; font-weight: 600;
}
.topic-btn img { width: 18px; height: 18px; object-fit: contain; }
.topic-btn:hover { border-color: var(--fog); color: #fff; }
.topic-btn.active { background: var(--ink); border-color: var(--ink); color: var(--night); }
.cards-container { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.card { flex: 0 0 250px; height: 390px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: #111a2c; }
.card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(to top, rgba(5, 9, 18, .95), transparent); }
.card-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.card-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .4); font-size: 14px; font-weight: 600; color: #fff; }
.card-btn:hover { background: #fff; color: var(--night); }

/* ───────── FAQ ───────── */
.faq-list { max-width: 860px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 4px; font-size: 17px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\ea13'; font-family: remixicon; font-weight: 400; color: var(--fog); font-size: 20px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 24px; font-size: 15.5px; color: var(--fog); line-height: 1.85; }
.income-note { margin-top: 28px; max-width: 860px; font-size: 14px; color: #77839a; line-height: 1.8; }

/* ───────── 마무리 CTA ───────── */
.closing { padding: 104px 0; text-align: center; background: linear-gradient(180deg, var(--night) 0%, #0b2a20 100%); border-top: 1px solid rgba(18, 200, 122, .18); }
.closing h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.3; }
.closing p { margin-top: 16px; font-size: 18px; color: var(--fog-2); }
.closing .hero-actions { justify-content: center; }

@media (max-width: 1080px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .demo { max-width: 620px; }
    .bulk { grid-template-columns: 1fr; gap: 40px; }
    .care { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hero { padding: 56px 0 72px; }
    .hero-lead { font-size: 17px; }
    .flow { grid-template-columns: 1fr 1fr; row-gap: 12px; }
    .channels thead { display: none; }
    .channels, .channels tbody, .channels tr, .channels td { display: block; width: 100%; }
    .channels tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
    .channels td { border: 0; padding: 4px 0; }
    .channels td:first-child { width: auto; margin-bottom: 6px; }
    .price, .care-shots { grid-template-columns: 1fr; }
    .care { grid-template-columns: 1fr; }
    .screen-section { padding-bottom: 80px; }
}
@media (max-width: 560px) {
    .hero h1 { letter-spacing: -1.6px; }
    .demo-top { flex-wrap: wrap; }
    .demo-url { flex-basis: 100%; }
    .demo-steps { overflow-x: auto; }
    .demo td:nth-child(2) { width: 46%; }
    .prompt-lists { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--rule); padding-left: 22px; margin-left: 6px; }
    .flow li { padding: 6px 0 22px; }
    .flow li::before { top: 10px; left: -30px; }
    .price-card, .free-card { padding: 26px; }
    .price-card .amount { font-size: 36px; }
}
