/* ==========================================================================
   subscription.css - subscription.php(서비스 구독 페이지) 전용 스타일
   ========================================================================== */

/* ---------- 배경 원형 (화면 모서리를 따라 흐물흐물 떠다니는 오브) ---------- */
.sb-bg-orb-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.sb-bg-orb {
    position: absolute;
    left: 0;
    top: 0;
    width: 105vmax;
    height: 105vmax;
    animation: sbBgOrbOrbit 36s linear infinite;
}

@keyframes sbBgOrbOrbit {
    0%   { transform: translate(calc(20vw - 50%), -50%); }
    25%  { transform: translate(calc(100vw - 50%), -50%); }
    50%  { transform: translate(calc(100vw - 50%), calc(100vh - 50%)); }
    75%  { transform: translate(-50%, calc(100vh - 50%)); }
    100% { transform: translate(calc(20vw - 50%), -50%); }
}

.sb-hero {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 56px) 28px 40px;
    text-align: center;
}

.sb-eyebrow {
    font-size: 13px;
    font-weight: 800;
    color: #FFB800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.sb-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 14px;
}

.sb-sub {
    font-size: 15px;
    line-height: 1.7;
    color: #6b6b6b;
}

.sb-plans {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 28px 100px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .sb-plans {
        padding: 0 64px 120px;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        align-items: stretch;
    }
}

@media (min-width: 1400px) {
    .sb-plans {
        padding: 0 80px 140px;
        max-width: 1100px;
    }
}

.sb-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    border: 1.5px solid #ececec;
    border-radius: 20px;
    background: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-plan.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sb-plan-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0b0b0b;
    background: #FFB800;
    border-radius: 999px;
}

.sb-plan-note {
    font-size: 12px;
    line-height: 1.6;
    color: #b0b0b0;
    margin: -8px 0 16px;
}

.sb-plan-head {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ececec;
}

.sb-plan-name {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.sb-plan-tagline {
    font-size: 13px;
    color: #8a8a8a;
    margin-bottom: 20px;
}

/* ---------- 디자인구독 항목 선택형 피커 ---------- */
.sb-picker {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-bottom: 20px;
}

.sb-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f1ee;
}

.sb-picker-row:last-child {
    border-bottom: none;
}

.sb-picker-name {
    font-size: 14px;
    font-weight: 700;
    color: #3a3a3a;
    line-height: 1.5;
}

.sb-picker-name small {
    font-weight: 500;
    color: #b0b0b0;
}

/* ---------- 항목 옆 물음표 안내 툴팁 ---------- */
.sb-tip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
    cursor: pointer;
}

.sb-tip-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #8a8a8a;
    background: #f2f1ee;
    border-radius: 50%;
}

.sb-tip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 4px);
    width: max-content;
    max-width: 240px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
    background: #1a1a1a;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.sb-tip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

.sb-tip.is-open .sb-tip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.sb-picker-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.sb-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    background: #f2f1ee;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.sb-qty-btn:hover {
    background: #FFB800;
}

.sb-qty-value {
    min-width: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
}

.sb-picker-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 20px;
    background: #f7f6f3;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #6b6b6b;
}

.sb-plan--dev .sb-picker-total {
    margin-top: 24px;
}

.sb-picker-total strong {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a1a;
}

/* ---------- 개발구독 AI/TEAM 탭 ---------- */
.sb-dev-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 20px;
    background: #f2f1ee;
    border-radius: 999px;
}

.sb-dev-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 800;
    color: #8a8a8a;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sb-dev-tab.is-active {
    background: #1a1a1a;
    color: #ffffff;
}

.sb-dev-panel {
    display: none;
}

.sb-dev-panel.is-active {
    display: block;
}

.sb-dev-panel-desc {
    font-size: 13px;
    color: #8a8a8a;
    margin-bottom: 16px;
}

/* ---------- 정액/체크형 옵션 (개발구독 AI 티어, TEAM 오류·개발 구독) ---------- */
.sb-tier-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    margin-bottom: 20px;
}

.sb-tier-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 14px 16px;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sb-tier-option:has(input:checked) {
    border-color: #FFB800;
    background: #fffaf0;
}

.sb-tier-option input {
    accent-color: #FFB800;
    margin-right: 4px;
}

.sb-tier-price {
    font-size: 16px;
    font-weight: 900;
    color: #1a1a1a;
}

.sb-tier-price small {
    font-size: 12px;
    font-weight: 700;
    color: #8a8a8a;
}

.sb-tier-desc {
    font-size: 13px;
    color: #8a8a8a;
    width: 100%;
    padding-left: 24px;
}

.sb-plan-cta {
    display: block;
    padding: 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: #1a1a1a;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.sb-plan-cta:hover {
    background: #FFB800;
    color: #1a1a1a;
}

.sb-plan--dev .sb-tier-option:has(input:checked) {
    border-color: #1a1a1a;
    background: #f7f6f3;
}

.sb-plan--dev .sb-tier-option input {
    accent-color: #1a1a1a;
}

.sb-plan--dev .sb-plan-cta {
    background: #FFB800;
    color: #1a1a1a;
}

.sb-plan--dev .sb-plan-cta:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ---------- 카드 하단 협업문의 / 카카오톡 상담 ---------- */
.sb-collab {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 28px 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (min-width: 900px) {
    .sb-collab {
        padding: 0 64px 120px;
    }
}

.sb-collab-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: #1a1a1a;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.sb-collab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.sb-collab-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.sb-collab-btn--kakao {
    background: #FEE500;
    color: #3c1e1e;
}

.sb-collab-btn--kakao:hover {
    box-shadow: 0 14px 28px rgba(254, 229, 0, 0.35);
}
