/* ==========================================================================
   lso_index.css — 전문가 파트너스 랜딩 페이지 전용 스타일
   Standalone page: does NOT load lso_common.css
   ========================================================================== */

:root { --lso-primary: #00796b; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    background: #fff;
}

/* Global heading typography — prevents mid-syllable breaks in Korean */
h1, h2, h3, h4 {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ---------- Navigation ---------- */
.nav-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-link { text-decoration: none; display: flex; align-items: center; }
.nav-buttons { display: flex; align-items: center; }
.nav-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
    white-space: nowrap;
    transition: 0.2s;
}
.btn-nav-login  { color: #333; border: 1px solid #ddd; }
.btn-nav-login:hover  { background: #f5f5f5; }
.btn-nav-signup { background: var(--lso-primary); color: #fff; }
.btn-nav-signup:hover { background: #005a4f; }

/* ---------- Hero ---------- */
.hero-section {
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.8)),
                url('/img/lso_index_banner_bg.png') no-repeat center center;
    background-size: cover;
    padding: 120px 20px;
    text-align: center;
}
.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    word-break: keep-all;
}
.hero-section p {
    font-size: 18px;
    color: #e5e7eb;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    word-break: keep-all;
}
.btn-hero {
    background: var(--lso-primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.2);
    font-family: inherit;
}
.btn-hero:hover { background: #005a4f; }

/* ---------- Process ---------- */
.process-section {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 60px; color: #222; word-break: keep-all; overflow-wrap: break-word; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}
.process-grid::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 16%; right: 16%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.process-step { position: relative; z-index: 1; padding: 0 20px; text-align: left; }
.step-icon {
    width: 90px; height: 90px;
    background: #fff;
    border: 3px solid var(--lso-primary);
    color: var(--lso-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 0 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.step-label {
    display: inline-block;
    background: #f0fdfa;
    color: var(--lso-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.process-step h4 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 12px; }
.process-step p  { font-size: 15px; color: #666; line-height: 1.6; word-break: keep-all; }

/* ---------- Preview ---------- */
.preview-section {
    background: #f8fafc;
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.preview-content { max-width: 1000px; margin: 0 auto; }
.preview-content h2 { font-size: 32px; font-weight: 800; color: #222; margin-bottom: 15px; word-break: keep-all; overflow-wrap: break-word; }
.preview-content p  { font-size: 18px; color: #555; margin-bottom: 50px; line-height: 1.6; }
/* ---------- Demo Frame ---------- */
.demo-frame { max-width: 860px; margin: 0 auto; }

.demo-device {
    position: relative;
    background: #1e293b;
    border-radius: 14px 14px 8px 8px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* Chrome */
.demo-chrome {
    background: #2d3748;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.demo-chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.demo-chrome-dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: block;
}
.demo-chrome-dots span:nth-child(1) { background: #ff5f57; }
.demo-chrome-dots span:nth-child(2) { background: #febc2e; }
.demo-chrome-dots span:nth-child(3) { background: #28c840; }
.demo-chrome-bar {
    flex: 1;
    background: rgba(0,0,0,0.3);
    color: #94a3b8;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 5px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 0.02em;
}

/* Screen */
.demo-screen {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    height: 400px;
}

/* Cursor */
.demo-cursor {
    position: absolute;
    top: -30px; left: -30px;
    width: 22px; height: 22px;
    z-index: 100;
    pointer-events: none;
    filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.22));
    will-change: left, top;
}
.demo-cursor.cursor-click { animation: cursorClick 0.18s ease; }
@keyframes cursorClick {
    0%   { transform: scale(1); }
    45%  { transform: scale(0.76); }
    100% { transform: scale(1); }
}

/* Scenes */
.demo-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.demo-scene.scene-enter { animation: sceneIn 0.35s ease forwards; }
@keyframes sceneIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Header strip */
.ds-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ds-avatar {
    width: 30px; height: 30px;
    background: var(--lso-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.ds-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-badge {
    margin-left: auto;
    background: #f0fdfa;
    color: var(--lso-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ds-status-chip {
    margin-left: auto;
    background: #fff8e1;
    color: #e67e22;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.ds-chip-done { background: #e8f5e9; color: #27ae60; }

/* Section title */
.ds-section-title {
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Consult list */
.ds-consult-list {
    flex: 1;
    overflow: hidden;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
}
.ds-consult-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.ds-consult-card.ds-card-active {
    border-color: var(--lso-primary);
    box-shadow: 0 0 0 3px rgba(0,121,107,0.12);
}
.ds-card-dim { opacity: 0.42; }
.ds-card-left { flex: 1; min-width: 0; }
.ds-card-tag {
    display: inline-block;
    background: #f0fdfa;
    color: var(--lso-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.ds-tag-phone { background: #fff8e1; color: #e67e22; }
.ds-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ds-card-meta { font-size: 11px; color: #94a3b8; }
.ds-card-new {
    font-size: 10px;
    font-weight: 800;
    background: #d32f2f;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Ripple */
.ds-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0,121,107,0.22);
    width: 56px; height: 56px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    opacity: 0;
}
.ds-ripple.ripple-go { animation: dsRipple 0.65s ease-out forwards; }
@keyframes dsRipple {
    0%   { transform: translate(-50%,-50%) scale(0);   opacity: 0.8; }
    100% { transform: translate(-50%,-50%) scale(6.5); opacity: 0; }
}

/* Chat area */
.ds-chat-area {
    flex: 1;
    overflow: hidden;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
}
.ds-msg { display: flex; }
.ds-msg-client { justify-content: flex-start; }
.ds-msg-expert { justify-content: flex-end; }
.ds-msg-bubble {
    max-width: 74%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 12px 2px;
    padding: 9px 13px;
    font-size: 12px;
    color: #333;
    line-height: 1.55;
    word-break: keep-all;
}
.ds-bubble-expert {
    background: var(--lso-primary);
    color: #fff;
    border-color: transparent;
    border-radius: 12px 12px 2px 12px;
}
.ds-msg-expert { opacity: 0; }
.ds-pdf-card   { opacity: 0; }
.ds-sys-msg    { opacity: 0; }

/* PDF card */
.ds-pdf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ds-pdf-icon  { font-size: 26px; color: #d32f2f; flex-shrink: 0; }
.ds-pdf-info  { flex: 1; min-width: 0; }
.ds-pdf-title { font-size: 13px; font-weight: 700; color: #222; }
.ds-pdf-meta  { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ds-pdf-badge {
    background: #ffebee;
    color: #d32f2f;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
}
.ds-sys-msg {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    padding: 3px 0;
}

/* Report modal */
.ds-report-modal {
    background: #fff;
    border-top: 2px solid var(--lso-primary);
    flex-shrink: 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.ds-report-header {
    padding: 9px 16px 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lso-primary);
    border-bottom: 1px solid #f1f5f9;
}
.ds-report-textarea {
    padding: 9px 16px;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    height: 90px;
    overflow: hidden;
    font-family: 'Pretendard', sans-serif;
    white-space: pre-wrap;
    word-break: keep-all;
    box-sizing: border-box;
}
.ds-caret {
    display: inline-block;
    width: 1.5px;
    height: 1em;
    background: var(--lso-primary);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: caretBlink 0.65s step-start infinite;
}
@keyframes caretBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.ds-report-footer {
    padding: 7px 16px 10px;
    display: flex;
    justify-content: flex-end;
}
.ds-btn-send {
    background: #2d3748;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    font-family: 'Pretendard', sans-serif;
    transition: background 0.2s, transform 0.1s;
}
.ds-btn-send.btn-press   { transform: scale(0.93); }
.ds-btn-send.btn-success { background: #27ae60; }

/* Responsive */
@media screen and (max-width: 768px) {
    .demo-screen     { height: 340px; }
    .ds-card-title   { font-size: 12px; }
    .ds-msg-bubble   { font-size: 11px; max-width: 80%; }
    .ds-report-textarea { height: 72px; font-size: 11px; }
}

/* ---------- Value cards ---------- */
.value-section { max-width: 1100px; margin: 80px auto; padding: 0 20px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-card {
    padding: 40px 30px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: left;
    transition: 0.3s;
}
.value-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }
.value-icon { font-size: 40px; color: var(--lso-primary); margin-bottom: 20px; }
.value-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.value-card p  { font-size: 15px; color: #666; line-height: 1.6; word-break: keep-all; }

/* ---------- Login ---------- */
.login-wrapper { width: 100%; padding: 0 20px; box-sizing: border-box; }
.login-section {
    max-width: 400px;
    margin: 100px auto 120px;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.login-section h2 { text-align: center; font-size: 24px; margin: 0 0 30px; font-weight: 700; color: #111; }
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s;
    outline: none;
}
.form-input:focus { border-color: var(--lso-primary); box-shadow: 0 0 0 3px rgba(0,121,107,0.1); }
.btn-submit-login {
    width: 100%;
    padding: 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}
.btn-submit-login:hover { background: #222; }
.login-sub-links { text-align: center; margin-top: 20px; font-size: 13px; color: #666; }
.login-sub-links a { color: #666; text-decoration: none; }
.login-sub-links a:hover { color: #333; text-decoration: underline; }

/* ---------- Pre-login inquiry modal ---------- */
.index-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(3px);
}
.index-modal-overlay.show { display: flex; opacity: 1; }
.index-modal-content {
    background: #fff;
    width: 90%;
    max-width: 650px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}
.index-modal-overlay.show .index-modal-content { transform: translateY(0); }
.index-modal-header {
    background: var(--lso-primary);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}
.index-modal-header h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.index-modal-header p  { margin: 0; font-size: 14px; opacity: 0.9; }
.btn-close-index-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}
.btn-close-index-modal:hover { transform: scale(1.1); }
.index-modal-body {
    padding: 30px;
    overflow-y: auto;
    text-align: left;
    background: #fdfdfd;
}
.modal-intro { text-align: center; margin-bottom: 25px; }
.modal-intro h4 { margin: 0 0 5px; font-size: 18px; color: #111; }
.modal-intro p  { margin: 0; font-size: 13px; color: #666; }
.modal-form-row { display: flex; gap: 15px; }
.modal-form-group { margin-bottom: 15px; flex: 1; }
.modal-form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #333; }
.modal-form-group label span { color: #d32f2f; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--lso-primary); box-shadow: 0 0 0 3px rgba(0,121,107,0.1); }
textarea.form-control { height: 120px; resize: none; }
.modal-privacy-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    height: 80px;
    overflow-y: auto;
}
.modal-privacy-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}
.modal-privacy-check input { width: 16px; height: 16px; accent-color: var(--lso-primary); cursor: pointer; }
.btn-submit-inquiry {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--lso-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-submit-inquiry:hover { background: #005a4f; }

/* ---------- Toast (self-contained) ---------- */
#toast-container {
    position: fixed;
    bottom: 30px; right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
}
.idx-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 340px;
    min-width: 200px;
    pointer-events: auto;
    word-break: keep-all;
    line-height: 1.5;
    animation: idxToastIn 0.3s ease;
}
.idx-toast.fade-out { animation: idxToastOut 0.3s ease forwards; }
@keyframes idxToastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes idxToastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-header  { padding: 15px 20px; }
    .nav-buttons a { padding: 8px 12px; font-size: 12px; margin-left: 6px; }

    .hero-section { padding: 80px 20px; }
    .hero-section h1 { font-size: 28px; }
    .hero-section p  { font-size: 16px; }

    .process-section { margin: 80px auto; }
    .section-title   { font-size: 26px; margin-bottom: 40px; }
    .process-grid::before { display: none; }
    .process-grid    { grid-template-columns: 1fr; gap: 40px; }

    /* Fluid heading size — prevents overflow on narrow widths */
    h2 { font-size: clamp(18px, 5vw, 24px); }

    .preview-section    { padding: 60px 20px; }
    .preview-content h2 { font-size: clamp(18px, 5vw, 24px); }
    .preview-content p  { font-size: 15px; margin-bottom: 30px; }
    .mockup-placeholder { height: 250px; font-size: 16px; }

    .value-grid { grid-template-columns: 1fr; gap: 20px; }

    .login-section { margin: 60px auto 80px; padding: 30px 20px; }

    .modal-form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 380px) {
    .hero-section    { padding: 60px 15px; }
    .hero-section h1 { font-size: 22px; letter-spacing: -0.5px; }
    .hero-section p  { font-size: 14px; letter-spacing: -0.3px; padding: 0 5px; }
}

@media (max-width: 480px) {
    #toast-container { bottom: 20px; right: 15px; left: 15px; }
    .idx-toast       { max-width: 100%; }
}
