@charset "utf-8";

/* AI 성향 테스트 유도 — 상담 버튼을 누르기 전 단계를 하나 놓는다 */
.ap-section {
    position: relative;
    padding: 120px 0;
    /* 앞뒤가 다크라 이 구역은 브랜드 색을 그대로 쓴다. 흐름에 숨통이 트인다 */
    background: linear-gradient(135deg, #00CCC6 0%, #067FFF 100%);
    overflow: hidden;
}

.ap-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 70px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.ap-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
}

.ap-title {
    margin: 0;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.04em;
    color: #fff;
    word-break: keep-all;
}

.ap-desc {
    margin: 22px 0 0;
    max-width: 560px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .88);
    word-break: keep-all;
}

.ap-points {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}

.ap-points li {
    position: relative;
    padding-left: 26px;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
}

/* 체크 표시는 도형으로 그린다 */
.ap-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .42em;
    width: 11px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.ap-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 38px;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 19px 42px;
    border-radius: 999px;
    background: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0559B3;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.ap-btn::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 2px solid #0559B3;
    border-right: 2px solid #0559B3;
    transform: rotate(45deg);
}

.ap-btn:hover {
    background: #eafcfb;
    transform: translateY(-2px);
}

.ap-count {
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

/* 오른쪽 — 문답이 오가는 모습 */
.ap-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 34px 30px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 26px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ap-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 92%;
    padding: 15px 18px;
    border-radius: 18px;
    font-size: .95rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    animation: apPop .6s ease forwards;
}

.ap-bubble p { margin: 0; }

.ap-bubble b {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 6px;
    background: #fff;
    font-size: .68rem;
    font-weight: 800;
    color: #0559B3;
}

.ap-bubble-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.ap-bubble-me {
    align-self: flex-end;
    background: #fff;
    color: #0d3b52;
    font-weight: 700;
}

.ap-bubble:nth-child(1) { animation-delay: .1s; }
.ap-bubble:nth-child(2) { animation-delay: .9s; }
.ap-bubble:nth-child(3) { animation-delay: 1.6s; }

@keyframes apPop {
    to { opacity: 1; transform: none; }
}

/* 다음 질문을 쓰는 중 */
.ap-typing {
    display: flex;
    gap: 5px;
    align-self: flex-start;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
    opacity: 0;
    animation: apPop .6s ease 2.3s forwards;
}

.ap-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: apDot 1.2s ease-in-out infinite;
}

.ap-typing span:nth-child(2) { animation-delay: .15s; }
.ap-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes apDot {
    0%, 100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 1080px) {
    .ap-inner { grid-template-columns: 1fr; gap: 44px; padding: 0 24px; }
}

@media (max-width: 640px) {
    .ap-section { padding: 80px 0; }
    .ap-inner { padding: 0 16px; gap: 34px; }
    .ap-demo { padding: 24px 20px; }
    .ap-btn { padding: 17px 32px; font-size: 1rem; }
}
