/*
 * pluckup.dartmos.com — PluckUp 앱 사이트 스타일(소개·사용법·법무 페이지 공용).
 * 브랜드: 따뜻한 오프화이트 + 오렌지 액센트(앱·페이월과 통일). 모바일 우선 반응형.
 */

/* ── 디자인 토큰 ── */
:root {
    --bg: #fcfaf6;
    --surface: #ffffff;
    --surface-2: #f3efe8;
    --ink: #201c1a;
    --muted: #7a736e;
    --accent: #e8552d;
    --accent-ink: #c8431f;
    --border: #e8e4dc;
    --radius: 18px;
    --maxw: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
        "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 상단 바 ── */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; row-gap: 6px; }
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand .logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #f0794f);
    color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.topbar nav a { color: var(--muted); font-size: 15px; margin-left: 18px; white-space: nowrap; }
.topbar nav a:hover { color: var(--ink); }
/* 언어 셀렉트(법무 페이지) — lang.js가 hreflang 목록으로 옵션을 채운다. */
.topbar nav select.langsel {
    margin-left: 18px; font-size: 14px; color: var(--muted); flex-shrink: 0;
    background: transparent; border: 1px solid #ddd5cc; border-radius: 8px;
    padding: 4px 8px; font-family: inherit; cursor: pointer;
}
.topbar nav select.langsel:hover { color: var(--ink); border-color: var(--muted); }
/* 모바일 — 메뉴가 잘리지 않게 간격·크기 축소(넘치면 다음 줄로 랩) */
@media (max-width: 640px) {
    .topbar { padding-top: 14px; padding-bottom: 14px; }
    .topbar nav a { margin-left: 12px; font-size: 13.5px; }
    .topbar nav select.langsel { margin-left: 12px; font-size: 13px; padding: 3px 6px; }
}
/* 좁은 폰 — 2줄 고정: 1행 브랜드(좌)+언어 셀렉트(우), 2행 메뉴 링크(좌) */
@media (max-width: 560px) {
    .topbar { position: relative; }
    .topbar nav select.langsel { position: absolute; top: 12px; right: 24px; margin-left: 0; }
    .topbar nav { width: 100%; justify-content: flex-start; margin-top: 6px; }
    .topbar nav a { margin-left: 0; margin-right: 14px; }
    .topbar nav a:last-of-type { margin-right: 0; }
}

/* ── 히어로 ── */
.hero { text-align: center; padding: 56px 0 40px; }
.hero .app-icon {
    width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px;
    display: block;
    box-shadow: 0 12px 30px rgba(41, 106, 187, 0.30); /* 로고 그라디언트 톤 글로우 */
}
.hero h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.hero .tagline { margin-top: 14px; font-size: clamp(16px, 2.6vw, 19px); color: var(--muted); max-width: 540px; margin-left: auto; margin-right: auto; }
.hero .subtitle { margin-top: 6px; font-size: clamp(13.5px, 2vw, 15px); color: var(--muted); opacity: 0.85; }
.badges { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge-soon {
    display: inline-block; background: var(--surface-2); color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 10px 22px; font-size: 14px; font-weight: 600;
}
a.badge-soon:hover { color: var(--ink); border-color: var(--muted); }

/* ── 기능 그리드 ── */
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 44px 0 18px; text-align: center; }

.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }

.feature {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.feature h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feature h3 .pro { font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 5px; padding: 1px 6px; }
.feature p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ── 기능 그리드(3×3 — 스샷 위 · 설명 아래) ── */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
/* 본문(860px)보다 넓게 — 기능·테마 그리드는 최대 1100px로 브레이크아웃(카드 각각을 넉넉하게) */
@media (min-width: 900px) {
    .feature-grid, .theme-grid {
        width: min(1100px, calc(100vw - 48px));
        position: relative; left: 50%; transform: translateX(-50%);
    }
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column;
}
.phone {
    width: 100%; max-width: 240px; margin: 0 auto;
    border-radius: 20px; border: 1px solid var(--border); overflow: hidden;
    box-shadow: 0 12px 28px rgba(32, 28, 26, 0.14);
    background: #fff;
}
.phone img { display: block; width: 100%; height: auto; }
.feature-card h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.feature-card h3 .pro { font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 5px; padding: 1px 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.feature-card .free-note { font-size: 12.5px; color: var(--accent-ink); margin-top: auto; padding-top: 10px; font-weight: 600; }
.pro-inline { font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }

/* ── 테마 그리드(3×3 — 스킨 스샷 + 이름 아래) ── */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-card { margin: 0; text-align: center; }
.theme-card .phone { max-width: 200px; border-radius: 16px; box-shadow: 0 8px 20px rgba(32, 28, 26, 0.12); }
.theme-card figcaption { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.free-chip { font-size: 10px; font-weight: 800; color: var(--accent-ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }

/* ── 모바일: 기능·테마 = 가로 스와이프 캐러셀(페이지 길이 축소, 옆 카드가 살짝 보이게)
      ※ .feature-grid/.theme-grid 기본 규칙보다 반드시 뒤에 위치해야 함(같은 특이도 캐스케이드) ── */
@media (max-width: 559px) {
    .feature-grid, .theme-grid {
        display: flex; overflow-x: auto; gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .feature-grid::-webkit-scrollbar, .theme-grid::-webkit-scrollbar { display: none; }
    .feature-grid, .theme-grid { cursor: grab; }
    .feature-card { flex: 0 0 80%; scroll-snap-align: center; }
    .theme-card { flex: 0 0 44%; scroll-snap-align: center; }
}

/* ── 무료/Pro 비교표 ── */
.pro-lede { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.pro-lede strong { color: var(--ink); }
.pricing { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pricing table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.pricing th, .pricing td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.pricing thead th { background: var(--surface-2); border-top: none; font-weight: 700; }
.pricing thead th:nth-child(3) { color: var(--accent-ink); }
.pricing td:first-child { font-weight: 600; white-space: nowrap; }
.pricing td:nth-child(3) { color: var(--accent-ink); }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ── 사용법 스텝 ── */
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.step .n { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step .t h4 { font-size: 15px; font-weight: 700; }
.step .t p { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ── CTA/문의 박스 ── */
.contact-box {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; text-align: center; margin-top: 44px;
}
.contact-box h3 { font-size: 20px; font-weight: 800; }
.contact-box p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.contact-box .mail {
    display: inline-block; margin-top: 16px; background: var(--accent); color: #fff;
    padding: 12px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
}
.contact-box .mail:hover { background: var(--accent-ink); color: #fff; }

/* ── 법무 문서(privacy/terms) ── */
.legal { padding-top: 40px; padding-bottom: 20px; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 15px; color: #38322e; }
.legal ul { margin: 8px 0 8px 20px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 700; }
/* 세로 헤더(국외이전 표 등)가 최소폭으로 쪼그라들며 글자가 세로로 밀리는 것 방지 */
.legal table tbody th { white-space: nowrap; }
/* 모바일 — 넓은 표(처리 항목·국외이전)는 표 자체를 가로 스크롤(페이지가 밀리지 않게) */
@media (max-width: 720px) {
    .legal table { display: block; overflow-x: auto; }
}
.legal .back { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 14px; }

/* ── 푸터 ── */
footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 30px 0 48px; }
footer .links a { font-size: 14px; color: var(--muted); margin-right: 16px; }
footer .links a:hover { color: var(--accent); }
footer .biz { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 16px; }
footer .biz strong { color: var(--ink); font-weight: 700; }
footer .copyright { margin-top: 16px; font-size: 12px; color: var(--muted); }
