/* front.css v2 — 메인 전용. 원칙: 사진·실제 화면이 주인공, 단색 브랜드, 가는 헤드라인 + 굵은 핵심어, 카드 그리드 지양 */

.fp-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: 0; }
.fp-head { margin-bottom: 56px; }
.fp-head h2, .fp-statement h2, .fp-panel h2, .fp-team h2, .fp-process h2, .fp-faq h2, .fp-cta h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 20px; }
.fp-head p { color: var(--ink-2); margin: 0; }
.fp-note { margin: 16px 4px 0; font-size: 13.5px; color: var(--ink-3); }

/* 기기 프레임 */
.dv-phone { margin: 0; width: 260px; aspect-ratio: 390 / 844; padding: 9px; background: #0E0F11; border-radius: 42px; box-shadow: var(--shadow); flex: none; }
.dv-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #fff; }
.dv-browser { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.dv-bar { display: flex; align-items: center; height: 40px; padding: 0 16px; background: #F3F1EC; border-bottom: 1px solid var(--line); }
.dv-bar i { font-style: normal; font-size: 12.5px; color: var(--ink-3); background: #fff; border-radius: 6px; padding: 3px 14px; margin: 0 auto; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dv-browser img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }

/* 히어로 */
.fp-hero { padding: 72px 0 0; }
.fp-hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.fp-kicker { margin: 0; font-size: clamp(28px, 3.2vw, 46px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.3; color: var(--ink); }
.fp-hero h1 { margin: 2px 0 28px; font-size: clamp(48px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; color: var(--ink); }
.fp-lead { max-width: 480px; margin: 0 0 36px; font-size: 16.5px; color: var(--ink-2); }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-hero-visual { position: relative; padding: 0 0 0 48px; }
.fp-hero-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 78% 30%; border-radius: var(--r-lg); background: var(--bg-soft); }
.fp-hero-phone { position: absolute; left: -24px; bottom: -40px; width: 250px; }
.fp-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 88px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.fp-facts div { padding: 0 28px; border-left: 1px solid var(--line); }
.fp-facts div:first-child { padding-left: 0; border-left: 0; }
.fp-facts dt { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.fp-facts dd { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

/* 스테이트먼트 */
.fp-statement { padding: 200px 0 140px; text-align: center; }
.fp-statement h2 { font-size: clamp(36px, 4.4vw, 60px) !important; text-wrap: balance; }
.fp-statement p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* 아이보리 패널 + 휴대폰 */
.fp-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; background: var(--bg-soft); border-radius: var(--r-lg); padding: 80px 72px; overflow: hidden; }
.fp-panel-text p { color: var(--ink-2); }
.fp-ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.fp-ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.fp-ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.fp-panel-devices { display: flex; justify-content: center; align-items: flex-start; gap: 28px; margin-bottom: -90px; }
.fp-panel-devices .is-offset { margin-top: 80px; }

/* 비교 */
.fp-compare { padding: 160px 0 0; }
.fp-compare .fp-head h2, .fp-guide .fp-head h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; }
.fp-compare .rd-table td:last-child { color: var(--primary); font-weight: 600; }

/* 서비스 행 */
.fp-services { padding: 160px 0 0; }
.fp-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: center; margin-bottom: 140px; }
.fp-row-visual { background: var(--bg-soft); border-radius: var(--r-lg); padding: 56px 0 0 56px; overflow: hidden; }
.fp-row-visual .dv-browser { width: 150%; border-radius: 12px 0 0 0; border-right: 0; border-bottom: 0; box-shadow: 0 10px 30px rgba(23, 25, 28, .07); }
.fp-row.is-reverse { grid-template-columns: 1fr 1.4fr; }
.fp-row.is-reverse > :first-child { order: 2; }
.fp-row-text h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 18px; }
.fp-row-text p { color: var(--ink-2); }
.fp-price { margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink) !important; }
.fp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.fp-link::after { content: "→"; transition: transform .2s; }
.fp-link:hover { color: var(--primary); border-color: var(--primary); }
.fp-link:hover::after { transform: translateX(4px); }
.fp-photo-stack { position: relative; padding-right: 90px; padding-bottom: 60px; }
.fp-photo-stack > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.fp-photo-stack .dv-phone { position: absolute; right: 0; bottom: 0; width: 200px; }
.fp-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.fp-more li { border-bottom: 1px solid var(--line); }
.fp-more li:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.fp-more a { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.fp-more a::after { content: "→"; color: var(--ink-3); transition: transform .2s, color .2s; }
.fp-more a:hover { color: var(--primary); background: var(--bg-soft); }
.fp-more a:hover::after { color: var(--primary); transform: translateX(4px); }

/* 팀 사진 */
.fp-team { padding: 160px 0 0; }
.fp-team-photo { margin: 0; }
.fp-team-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); }
.fp-team-text { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; margin-top: 56px; align-items: end; }
.fp-team-text h2 { margin: 0; }
.fp-team-text p { color: var(--ink-2); margin: 8px 0 0; }

/* 절차 */
.fp-process { margin-top: 160px; padding: 140px 0; background: var(--bg-soft); }
.fp-process-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.fp-process-side { position: sticky; top: calc(var(--header-h) + 32px); }
.fp-process-side p { color: var(--ink-2); }
.fp-process-side img { margin-top: 32px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.fp-steps { list-style: none; margin: 0; padding: 0; }
.fp-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.fp-steps li:first-child { border-top: 2px solid var(--ink); }
.fp-steps span { font-size: 15px; font-weight: 700; color: var(--primary); padding-top: 3px; }
.fp-steps h3 { font-size: 22px; margin-bottom: 6px; }
.fp-steps p { margin: 0; color: var(--ink-2); }

/* 비용 */
.fp-price-sec { padding: 160px 0 0; }
.fp-price-grid { display: block; }
.fp-price-sec .rd-table th[scope=row] { width: 28%; }
.fp-td-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.fp-price-sec .rd-table td:nth-child(3) { white-space: nowrap; }
.fp-report { margin: 0; }
.fp-report img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fp-report figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* 전략 탭 */
.fp-guide { padding: 120px 0 0; }
.fp-guide-fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.fp-guide-fold[open] { padding-bottom: 32px; }
.fp-guide-fold .fp-tabs { margin-top: 20px; }
.fp-tablist { display: none; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.fp-tabs.is-ready .fp-tablist { display: flex; }
.hm-gtab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 6px; margin-right: 24px; font-size: 17px; font-weight: 600; color: var(--ink-3); }
.hm-gtab small { font-size: 13px; color: var(--ink-3); margin-left: 4px; }
.hm-gtab.is-on { color: var(--ink); border-color: var(--ink); }
.fp-tabs.is-ready .hm-gpane { display: none; }
.fp-tabs.is-ready .hm-gpane.is-on { display: block; animation: rd-fade .3s ease; }
.fp-tabs.is-ready .fp-pane-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fp-pane-title { font-size: 18px; margin: 32px 0 12px; }
.hm-gpane ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
.hm-gpane li { border-bottom: 1px solid var(--line); }
.hm-gpane a { display: block; padding: 15px 0; color: var(--ink); font-size: 16px; }
.hm-gpane a:hover { color: var(--primary); }

/* FAQ */
.fp-faq { padding: 160px 0 0; }
.fp-faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.fp-faq-grid > div:first-child p { color: var(--ink-2); }

/* CTA */
.fp-cta { padding: 160px 0 140px; }
.fp-cta-panel { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--primary); color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.fp-cta-panel h2 { color: #fff; }
.fp-cta-panel .rd-btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.fp-cta-panel a.rd-tel-reveal { color: var(--primary); }
.fp-cta-report { margin: 0; padding: 64px 56px 0 0; display: flex; align-items: flex-end; justify-content: center; }
.fp-cta-report img { width: 100%; max-width: 380px; border-radius: 10px 10px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.fp-cta-panel > div { padding: 80px 72px; }
.fp-cta-panel p { color: rgba(255, 255, 255, .78); margin-bottom: 32px; }

.fp-sticky { display: none; }

/* 반응형 */
@media (max-width: 1080px) {
    .fp-hero-grid, .fp-panel, .fp-row, .fp-row.is-reverse, .fp-process-grid, .fp-faq-grid, .fp-cta-panel, .fp-team-text { grid-template-columns: 1fr; }
    .fp-hero-grid { gap: 48px; }
    .fp-row { gap: 40px; margin-bottom: 100px; }
    .fp-row.is-reverse > :first-child { order: 0; }
    .fp-panel-devices { margin-bottom: -120px; }
    .fp-process-side { position: static; }
    .fp-price-grid { grid-template-columns: 1fr; }
    .fp-report { max-width: 280px; }
    .fp-more, .hm-gpane ul { grid-template-columns: repeat(2, 1fr); }
    .fp-more li { border-right: 0 !important; }
    .fp-more li:nth-child(odd) { border-right: 1px solid var(--line) !important; }
    .fp-team-text { gap: 16px; }
}
@media (max-width: 640px) {
    .fp-hero { padding-top: 40px; }
    .fp-hero h1 { font-size: 56px; margin-bottom: 24px; }
    .fp-hero-visual { padding: 0 0 40px 28px; }
    .fp-hero-phone { width: 128px; left: 0; bottom: 0; border-radius: 26px; padding: 6px; }
    .fp-hero-phone img { border-radius: 20px; }
    .fp-actions .rd-btn { flex: 1 1 0; padding: 16px 12px; font-size: 15.5px; }
    .fp-facts { grid-template-columns: 1fr 1fr; gap: 20px 0; margin-top: 48px; }
    .fp-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
    .fp-facts dd { font-size: 17px; }
    .fp-statement { padding: 100px 0 72px; text-align: left; }
    .fp-statement h2 { font-size: 27px; }
    .fp-panel { padding: 48px 24px; border-radius: 24px; }
    .fp-panel-devices { gap: 14px; margin-bottom: -90px; }
    .fp-panel-devices .dv-phone { width: 46%; border-radius: 30px; padding: 6px; }
    .fp-panel-devices .dv-phone img { border-radius: 24px; }
    .fp-panel-devices .is-offset { margin-top: 48px; }
    .fp-compare, .fp-services, .fp-team, .fp-process, .fp-price-sec, .fp-guide, .fp-faq { padding-top: 100px; }
    .fp-photo-stack { padding-right: 56px; padding-bottom: 40px; }
    .fp-photo-stack .dv-phone { width: 130px; border-radius: 28px; padding: 6px; }
    .fp-photo-stack .dv-phone img { border-radius: 22px; }
    .fp-photo-stack > img, .fp-hero-photo, .fp-team-photo img { border-radius: 20px; }
    .fp-team-photo img { aspect-ratio: 4 / 3; }
    .fp-more, .hm-gpane ul { grid-template-columns: 1fr; }
    .fp-more li, .fp-more li:nth-child(odd) { border-right: 0 !important; }
    .fp-row-visual { padding: 28px 0 0 28px; border-radius: 20px; }
    .fp-statement h2 { font-size: 30px !important; }
    .fp-tablist { overflow-x: auto; }
    .hm-gtab { white-space: nowrap; font-size: 15px; margin-right: 12px; }
    .fp-cta { padding: 100px 0 120px; }
    .fp-cta-panel > div { padding: 48px 24px; }
    .fp-cta-report { padding: 0 24px; }
    .fp-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; }
    .fp-sticky .rd-btn { width: 100%; box-shadow: 0 10px 30px rgba(23, 25, 28, .25); }
}

/* 모바일 표 → 카드형 (메인 전용) */
@media (max-width: 640px) {
    .fp-compare table.rd-table, .fp-price-sec table.rd-table { min-width: 0; }
    .fp-compare .rd-table thead, .fp-price-sec .rd-table thead { display: none; }
    .fp-compare .rd-table tr, .fp-price-sec .rd-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
    .fp-compare .rd-table th, .fp-compare .rd-table td, .fp-price-sec .rd-table th, .fp-price-sec .rd-table td { display: block; width: auto !important; padding: 3px 0; border: 0; white-space: normal; }
    .fp-compare .rd-table th, .fp-price-sec .rd-table th { font-size: 17px; margin-bottom: 6px; }
    .fp-compare .rd-table td::before, .fp-price-sec .rd-table td::before { content: attr(data-label); display: inline-block; min-width: 92px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
}
