:root {
    --bg: #f6f6f3;
    --surface: #ffffff;
    --surface-subtle: #efefeb;
    --ink: #141413;
    --ink-secondary: #5c5b57;
    --ink-muted: #8a8984;
    --line: #e3e2dc;
    --line-strong: #cfcec6;
    --accent: #2472f5;
    --accent-hover: #195fd6;
    --danger: #c93b2b;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", sans-serif;
    line-height: 1.58;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

body {
    min-height: 100vh;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1060px, calc(100% - 48px));
    margin: 0 auto;
}

/* 상단 바 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 246, 243, 0.86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.03em;
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    color: var(--ink-secondary);
}

.nav-links a:hover {
    color: var(--ink);
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-dark {
    background: var(--ink);
    color: #ffffff;
}

.btn-dark:hover {
    background: #2b2b29;
}

.btn-blue {
    background: var(--accent);
    color: #ffffff;
}

.btn-blue:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
}

/* 히어로 */
.hero {
    padding: 68px 0 44px;
}

.hero-header {
    max-width: 680px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
    display: block;
    margin-bottom: 22px;
    filter: drop-shadow(0 8px 18px rgba(20, 20, 19, 0.12));
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: 17.5px;
    color: var(--ink-secondary);
    line-height: 1.62;
    max-width: 580px;
    margin-bottom: 28px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-spec {
    font-size: 13px;
    color: var(--ink-muted);
}

/* 인터랙티브 Mac 프리뷰 스테이지 */
.stage-wrap {
    margin-top: 42px;
}

.stage-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
}

.stage-tab {
    border: none;
    background: transparent;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
    cursor: pointer;
    font-family: inherit;
}

.stage-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.mac-frame {
    background: #dfe2e8;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 20, 19, 0.08);
}

.mac-menubar {
    height: 28px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: #222;
    position: relative;
}

.mac-notch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 124px;
    height: 22px;
    background: #111112;
    border-radius: 0 0 10px 10px;
}

.mac-screen-body {
    padding: 22px;
    min-height: 420px;
    background: linear-gradient(180deg, #eef1f6 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-panel {
    display: none;
    width: 100%;
}

.stage-panel.active {
    display: block;
}

.real-shot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 스테이지 내부 네이티브 UI 목업 */
.mock-window {
    background: var(--surface);
    border-radius: 11px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
}

.mock-titlebar {
    height: 36px;
    background: #f8f8f7;
    border-bottom: 1px solid var(--line);
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-secondary);
}

.traffic-lights {
    display: inline-flex;
    gap: 6px;
}

.traffic-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.notch-tray-demo {
    background: #141416;
    color: #f4f4f6;
    border-radius: 16px;
    padding: 22px 24px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.notch-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.notch-slot {
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.04);
}

.notch-slot strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 4px;
}

.notch-slot span {
    font-size: 12px;
    color: #9fa1a9;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mock-table th,
.mock-table td {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

.mock-table th {
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 12px;
    background: #fbfbfa;
}

.stage-caption {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--ink-secondary);
}

/* 에디토리얼 챕터 리스트 */
.editorial-section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.chapter-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.chapter-row:first-of-type {
    padding-top: 0;
}

.chapter-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.chapter-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.chapter-left h2 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.spec-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
}

.spec-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-item p {
    font-size: 14.5px;
    color: var(--ink-secondary);
    line-height: 1.6;
}

kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--ink-secondary);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
}

/* 설계 원칙 바 */
.principles-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.principles-box h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.principles-box p {
    font-size: 14px;
    color: var(--ink-secondary);
}

/* 요금제 테이블 */
.pricing-section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

.section-intro {
    max-width: 560px;
    margin-bottom: 36px;
}

.section-intro h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.section-intro p {
    font-size: 15.5px;
    color: var(--ink-secondary);
}

.pricing-sheet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tier-col {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
}

.tier-col:last-child {
    border-right: none;
}

.tier-highlight {
    background: #fcfcfa;
}

.tier-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tier-name {
    font-size: 16px;
    font-weight: 700;
}

.tier-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(36, 114, 245, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.tier-price {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 4px;
}

.tier-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-left: 4px;
}

.tier-sub {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 22px;
    min-height: 20px;
}

.tier-list {
    list-style: none;
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-secondary);
    margin-bottom: 28px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.tier-list li {
    padding-left: 16px;
    position: relative;
}

.tier-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--ink-muted);
}

.tier-list strong {
    color: var(--ink);
    font-weight: 600;
}

/* 라이선스 조회 */
.lookup-section {
    padding: 48px 0 64px;
    border-top: 1px solid var(--line);
}

.lookup-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: start;
}

.lookup-grid h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.lookup-grid p {
    font-size: 14px;
    color: var(--ink-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}

.input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.input:focus {
    border-color: var(--accent);
}

/* 결제 모달 */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 20, 19, 0.42);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: min(460px, 100%);
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--ink-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
}

.close-btn:hover {
    color: var(--ink);
}

.field-group {
    margin-bottom: 14px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 5px;
}

.consent-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    margin: 16px 0;
    display: grid;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-secondary);
    line-height: 1.5;
}

.consent-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}

.consent-item input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.consent-item a {
    color: var(--ink);
    text-decoration: underline;
}

.error-msg {
    color: var(--danger);
    font-size: 13px;
    margin-top: 10px;
    min-height: 18px;
}

/* 푸터 */
.footer {
    padding: 36px 0 52px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ink-secondary);
}

.footer-links a:hover {
    color: var(--ink);
}

/* 약관/지원 문서 페이지 */
.doc-wrap {
    max-width: 720px;
    margin: 48px auto 80px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.doc-wrap h1 {
    font-size: 26px;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.doc-wrap h2 {
    font-size: 17px;
    margin: 26px 0 8px;
    color: var(--ink);
}

.doc-wrap p,
.doc-wrap li {
    color: var(--ink-secondary);
    font-size: 14.5px;
    margin-bottom: 8px;
}

.doc-wrap ul {
    padding-left: 20px;
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .chapter-row,
    .lookup-grid,
    .pricing-sheet,
    .principles-box {
        grid-template-columns: 1fr;
    }
    .spec-items {
        grid-template-columns: 1fr;
    }
    .tier-col {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .tier-col:last-child {
        border-bottom: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .notch-slots {
        grid-template-columns: 1fr;
    }
}
