/*
 * AXCam 공개 페이지 (소개 / API 문서) — DESIGN.md (Tesla 스타일).
 * 관리자(admin.css)와 같은 토큰. 흰 캔버스 + 회색 3단 + Electric Blue 하나.
 * 그림자·그라디언트 없음. 계층은 여백과 헤어라인으로만.
 */

:root {
    --blue: #3E6AE1;
    --carbon: #171A20;
    --graphite: #393C41;
    --pewter: #5C5E62;
    --silver: #8E8E8E;
    --cloud: #EEEEEE;
    --pale: #D0D1D2;
    --ash: #F4F4F4;
    --white: #FFFFFF;
    --alert: #D5233A;

    --radius: 4px;
    --ease: 0.33s;
    --nav-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--white);
    color: var(--carbon);
    font-family: "Universal Sans Text", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Pretendard", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

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

.muted { color: var(--pewter); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------------------------------------------------------------- topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--cloud);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.wordmark {
    font-weight: 500;
    letter-spacing: 0.35em;
    font-size: 14px;
}

.wordmark.small { font-size: 12px; }

.topbar nav { display: flex; gap: 28px; }

.topbar nav a {
    color: var(--graphite);
    font-size: 14px;
    transition: color var(--ease);
}

.topbar nav a:hover { color: var(--carbon); }

/* ---------------------------------------------------------------- layout */
main { max-width: 880px; margin: 0 auto; padding: 0 24px 96px; }

.section { margin-top: 88px; }

.section h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin: 0 0 8px;
}

/* ---------------------------------------------------------------- hero */
.hero { padding-top: 96px; }

.hero h1 {
    font-size: 40px;
    line-height: 52px;
    font-weight: 500;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.lede {
    color: var(--graphite);
    font-size: 17px;
    line-height: 28px;
    max-width: 620px;
    margin: 0;
}

.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--pale);
    background: var(--white);
    color: var(--graphite);
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.button:hover { border-color: var(--graphite); }

.button.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.button.primary:hover { background: #3358B8; border-color: #3358B8; }

/* ---------------------------------------------------------------- flow */
.flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 32px;
}

.flow-step h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.flow-step p { margin: 0; color: var(--pewter); font-size: 14px; line-height: 22px; }

.flow-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--pewter);
    margin-bottom: 14px;
}

/* ---------------------------------------------------------------- pricing */
.pricing { margin-top: 24px; border-top: 1px solid var(--cloud); }

.price-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    align-items: center;
    padding: 20px 4px;
    border-bottom: 1px solid var(--cloud);
}

.price-name { font-size: 17px; font-weight: 500; }
.price-quota { color: var(--pewter); }
.price-amount { text-align: right; font-size: 17px; font-weight: 500; }

.small-note { font-size: 13px; line-height: 21px; margin-top: 16px; }

.checklist { margin: 20px 0 0; padding-left: 18px; color: var(--graphite); }
.checklist li { margin-bottom: 10px; }
.checklist a { color: var(--blue); }

/* ---------------------------------------------------------------- docs */
.doc { padding-top: 72px; }

.doc h1 { font-size: 32px; line-height: 42px; font-weight: 500; margin: 0 0 12px; }

.doc h2 {
    font-size: 21px;
    line-height: 30px;
    font-weight: 500;
    margin: 56px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--cloud);
}

.doc h3 { font-size: 16px; font-weight: 500; margin: 28px 0 8px; }

.doc p, .doc li { color: var(--graphite); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--blue); }

.doc pre {
    background: var(--ash);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 21px;
}

.doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.doc p code, .doc li code, .doc td code {
    background: var(--ash);
    border-radius: 3px;
    padding: 1px 5px;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.doc th {
    text-align: left;
    font-weight: 500;
    color: var(--pewter);
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--pale);
}

.doc td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--cloud);
    vertical-align: top;
}

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--cloud); margin-top: 96px; }

.footer .inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
}

.footer .inner.biz {
    padding-top: 0;
    color: var(--silver);
    font-size: 12px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 720px) {
    .hero { padding-top: 56px; }
    .hero h1 { font-size: 30px; line-height: 40px; }
    .flow { grid-template-columns: 1fr; gap: 28px; }
    .price-row { grid-template-columns: 1fr 1fr; }
    .price-quota { grid-column: 1 / -1; order: 3; padding-top: 4px; }
    .section { margin-top: 64px; }
}
