/* =========================================================
   ONPIA 제품소개 페이지 (pages/solution.html) 전용 스타일
   Figma node 129:2266 기준. common.css 의 :root 토큰 위에 얹음.
   ========================================================= */

body {
    background: var(--color-white);
    color: var(--color-ink);
    overflow-x: hidden;
}

/* =========================================================
   Hero — 상단 로고 + 타이틀 + CTA + 설명
   ========================================================= */

.sol-hero {
    padding: 200px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background: var(--color-white);
    overflow: hidden;
    text-align: center;
}

.sol-hero-badge {
    width: 140px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-hero-badge img,
.sol-hero-badge svg {
    max-width: 100%;
    max-height: 100%;
}

.sol-hero-inner {
    width: var(--page-w);
    max-width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-3xl);
}

.sol-hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-lg);
    text-align: center;
}

.sol-hero-title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    color: var(--color-dark);
}

.sol-hero-sub {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-blue-2);
}

.sol-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    background: var(--color-dark);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    filter: drop-shadow(0 8px 8px rgba(17, 36, 71, 0.25));
    transition: transform 0.2s ease;
}

.sol-cta-btn:hover {
    transform: translateY(-2px);
}

.sol-hero-desc {
    width: 800px;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--font-size-desc);
    line-height: 1.7;
    color: var(--color-black);
    text-align: center;
}

.sol-hero-desc p {
    margin: 0;
    font-weight: 500;
    font-size: var(--font-size-desc);
}

/* =========================================================
   AI Assistant 도입 효과 — 왼쪽 타이틀 패널(blue) + 오른쪽 3개 모듈
   ========================================================= */

.sol-effects {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 500px;
    background: var(--color-white);
    overflow: hidden;
}

.sol-effects-inner {
    width: var(--page-w);
    max-width: calc(100% - 40px);
    height: 100%;
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.sol-effect-title-panel {
    flex: 0 0 430px;
    height: 100%;
    background: var(--color-blue-2);
    border-radius: var(--radius-4xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.sol-effect-title-eyebrow {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.56px;
    color: rgba(255, 255, 255, 0.72);
}

.sol-effect-title {
    margin: 20px 0 0 0;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -1.32px;
    color: var(--color-white);
}

.sol-effect-title span {
    display: block;
}

.sol-effect-modules {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    gap: var(--gap-md);
    height: 100%;
}

.sol-effect-module {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background: var(--color-surface-blue);
    border-radius: var(--radius-2xl);
    text-align: left;
    overflow: hidden;
}

.sol-module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.sol-module-num {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -2.8px;
    color: rgba(51, 102, 242, 0.2);
}

.sol-module-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-2);
    border-radius: 50%;
    padding: 10px;
}

.sol-module-icon img,
.sol-module-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sol-module-body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    width: 100%;
}

/* accent + title 을 함께 감싸서 wrapper 가 title 텍스트 길이만큼만 차지 →
   accent 는 wrapper 너비(=title 실제 길이)에 맞춰 자동 확장 */
.sol-module-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

.sol-module-accent {
    width: 100%;
    height: 3px;
    background: var(--color-blue-2);
    border-radius: var(--radius-full);
}

.sol-module-title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-ink-3);
    white-space: nowrap;  /* 텍스트 한 줄로 유지 → wrapper 가 정확히 텍스트 길이만큼 */
}

.sol-module-desc {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--font-size-desc);
    line-height: var(--line-height-desc);
    color: var(--color-gray-700);
}

/* =========================================================
   Scene 섹션 — 이미지 + 텍스트 좌우 알터네이팅
   ========================================================= */

.sol-scene {
    padding: 100px 0px;
    display: flex;
    gap: 50px;
    width: 100%;
    align-items: flex-start;
    max-width: var(--page-w);
    margin: 0 auto;
}

.sol-scene--right {
    justify-content: flex-end;
}

.sol-scene-visual {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
}

.sol-scene--right .sol-scene-visual {
    justify-content: flex-end;
}

.sol-scene-visual .sol-scene-media {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
}

.sol-scene-visual .sol-scene-media img {
    display: block;
    width: 100%;
    height: auto;
    object-position: -1px 0;
}

.sol-scene-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;      /* 부모 .sol-scene(align-items: flex-start) 오버라이드 → 형제(visual) 높이만큼 확장 */
    gap: var(--gap-lg);
    flex-shrink: 0;
    width: 500px;
    max-width: 100%;
}

.sol-scene--right .sol-scene-text {
    text-align: right;
    align-items: flex-end;
}

.sol-scene-title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-ink);
}

.sol-scene-body {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

/* 씬 서브 : 3개 키워드를 파란 배경 pill 로 표시 */
.sol-scene-sub {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-sans);
}

.sol-scene-sub .sol-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--color-blue-2);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* 씬 본문 : 첫째/둘째/셋째 번호가 붙는 3줄 요약 리스트로 사용 */
.sol-scene-desc {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: var(--font-size-desc);
    line-height: 1.55;
    color: var(--color-ink);
    max-width: 540px;
}

.sol-scene-desc p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sol-scene-desc .sol-desc-num {
    flex-shrink: 0;
    font-weight: 700;
    color: inherit;
    line-height: 1.55;
}

/* 우측 정렬 씬 : 태그·번호 블록 모두 오른쪽 정렬 */
.sol-scene--right .sol-scene-sub {
    justify-content: flex-end;
}
.sol-scene--right .sol-scene-desc {
    align-items: flex-end;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1400px) {
    .sol-scene { padding: 80px 60px; }
}

@media (max-width: 1200px) {
    .sol-hero-title { font-size: 36px; }
    .sol-hero-sub { font-size: 22px; }

    .sol-effects { height: auto; }
    .sol-effects-inner {
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
    }
    .sol-effect-title-panel {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
    }
    .sol-effect-modules {
        flex-direction: column;
    }
    .sol-effect-module { height: auto; min-height: 260px; }

    .sol-scene,
    .sol-scene--right {
        flex-direction: column;
        padding: 60px 40px;
        height: auto;
    }
    .sol-scene--right .sol-scene-visual { justify-content: flex-start; }
    .sol-scene--right .sol-scene-text {
        text-align: left;
        align-items: flex-start;
    }
    .sol-scene-text { width: 100%; }
    .sol-scene-desc { max-width: 100%; }
}

@media (max-width: 640px) {
    .sol-hero { padding: 140px 16px 20px; gap: 32px; }
    .sol-hero-title { font-size: 28px; }
    .sol-hero-sub { font-size: 18px; }
    .sol-hero-desc { font-size: 14px; }
    .sol-effect-title { font-size: 32px; }
    .sol-module-num { font-size: 40px; }
    .sol-module-title { font-size: 20px; }
    .sol-module-desc { font-size: 14px; }
    .sol-scene, .sol-scene--right { padding: 40px 20px; }
    .sol-scene-title { font-size: 24px; }
    .sol-scene-sub .sol-tag { font-size: 14px; padding: 6px 12px; }
    .sol-scene-desc { font-size: 16px; }
}
