@charset "utf-8";
/* ==========================================================================
   랩터스 AI개발 — raptors.kr
   자매 페이지인 WebCel(raptors.co.kr/webcel)과 같은 디자인 시스템을 쓴다.
   토큰·간격·컴포넌트 규칙을 그쪽에 맞춰 두 페이지가 한 브랜드로 읽히게 한다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 토큰 — 다크가 기본. 라이트는 아래에서 덮어쓴다.
   -------------------------------------------------------------------------- */
:root {
    color-scheme: dark;

    --bg:        #0A0E13;
    --bg-2:      #0D131A;
    --surface:   #121A23;
    --surface-2: #17212C;
    --surface-3: #1E2A37;

    --line:      rgba(255, 255, 255, .075);
    --line-2:    rgba(255, 255, 255, .13);
    --line-grid: rgba(255, 255, 255, .032);

    --ink:       #E7EEF5;
    --ink-2:     #9BABBC;
    --ink-3:     #64768A;

    --accent:      #D97757;   /* Claude 클레이 */
    --accent-dim:  #C0603F;
    --accent-glow: rgba(217, 119, 87, .18);
    --accent-ink:  #2A1006;
    --accent-hi:   #E68B6D;

    --wash-1: rgba(217, 119, 87, .10);
    --wash-2: rgba(56, 141, 255, .055);
    --grain:  .028;

    --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap:   1200px;
    --gutter: clamp(20px, 5vw, 48px);
    --sec-y:  clamp(48px, 6vw, 82px);
    --grid-cell: 56px;
    --r:      14px;
    --r-sm:   9px;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 라이트 — 시스템이 라이트이고 사용자가 다크를 고르지 않았을 때 */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;

        --bg:        #FFFCFA;   /* 아주 옅은 온기를 머금은 흰색 */
        --bg-2:      #FCF6F2;
        --surface:   #FBF4EF;   /* 카드 — 클레이가 섞인 크림 */
        --surface-2: #F7EBE3;
        --surface-3: #F1DED2;

        --line:      rgba(74, 38, 22, .10);
        --line-2:    rgba(74, 38, 22, .17);
        --line-grid: rgba(74, 38, 22, .06);

        --ink:       #201512;
        --ink-2:     #5C4A42;
        --ink-3:     #8E7A70;

        --accent:      #B4552F;   /* 흰 바탕에서 대비 확보 */
        --accent-dim:  #96431F;
        --accent-glow: rgba(180, 85, 47, .16);
        --accent-ink:  #FFFFFF;
        --accent-hi:   #9C4626;

        --wash-1: rgba(180, 85, 47, .06);
        --wash-2: rgba(217, 119, 87, .045);
        --grain:  .02;
    }
}

/* 사용자가 라이트를 직접 고른 경우 */
:root[data-theme="light"] {
    color-scheme: light;

    --bg:        #FFFCFA;
    --bg-2:      #FCF6F2;
    --surface:   #FBF4EF;
    --surface-2: #F7EBE3;
    --surface-3: #F1DED2;

    --line:      rgba(74, 38, 22, .10);
    --line-2:    rgba(74, 38, 22, .17);
    --line-grid: rgba(74, 38, 22, .06);

    --ink:       #201512;
    --ink-2:     #5C4A42;
    --ink-3:     #8E7A70;

    --accent:      #B4552F;   /* 흰 바탕에서 대비 확보 */
    --accent-dim:  #96431F;
    --accent-glow: rgba(180, 85, 47, .16);
    --accent-ink:  #FFFFFF;
    --accent-hi:   #9C4626;

    --wash-1: rgba(180, 85, 47, .06);
    --wash-2: rgba(217, 119, 87, .045);
    --grain:  .02;
}

/* --------------------------------------------------------------------------
   2. 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;      /* 고정 헤더에 앵커가 가리지 않도록 */
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -.011em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 셀 격자 + 부드러운 광원 두 개. 격자가 이 브랜드의 서명이다. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(760px 520px at 78% -6%, var(--wash-1), transparent 62%),
        radial-gradient(620px 500px at 4% 34%, var(--wash-2), transparent 66%),
        linear-gradient(to right,  var(--line-grid) 1px, transparent 1px) 0 0 / var(--grid-cell) var(--grid-cell),
        linear-gradient(to bottom, var(--line-grid) 1px, transparent 1px) 0 0 / var(--grid-cell) var(--grid-cell);
    mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

/* 큰 화면에서 어두운 면이 띠지지 않도록 미세 그레인 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, .shell { position: relative; z-index: 2; }

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

h1, h2, h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.032em;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. 레이아웃
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }

.mono {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   4. 상단 고정 헤더
   -------------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid transparent;
    transition: background .28s var(--ease), border-color .28s var(--ease);
}
.topbar.is-stuck {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom-color: var(--line);
}
/* 로고 | 가운데 정렬된 링크 | 우측 액션 — 좌우 폭과 무관하게 링크가 정확히 중앙에 온다 */
.topbar-inner {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* 레퍼런스(WebCel .logo)와 동일 기준: font: 700 26px/1, letter-spacing -.045em */
.wordmark {
    font: 700 26px/1 var(--sans);
    letter-spacing: -.045em;
    text-transform: lowercase;
    color: var(--ink);
}
.wordmark b { color: var(--accent); font-weight: 700; font-size: .55em; letter-spacing: -.03em; }

.topbar-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
}
.topbar-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .18s var(--ease);
}
.topbar-nav a:hover { color: var(--ink); }

.topbar-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* CTA 버튼 — 본문 버튼보다 한 단계 작게 */
.topbar .nav-cta { padding: 9px 18px; font-size: 14px; }

@media (max-width: 760px) {
    .topbar-nav { display: none; }
    .topbar-inner { grid-template-columns: 1fr auto; }
}

/* --------------------------------------------------------------------------
   5. 버튼
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink);
    font: 600 15px/1 var(--sans);
    letter-spacing: -.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s var(--ease), border-color .18s var(--ease),
                transform .18s var(--ease), color .18s var(--ease);
}
.btn:hover {
    background: var(--surface-3);
    border-color: color-mix(in srgb, var(--ink) 22%, transparent);
    transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 26px -10px var(--accent-glow);
}
.btn--primary:hover {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
    color: var(--accent-ink);
    box-shadow: 0 14px 34px -10px var(--accent-glow);
}
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* 아이콘 버튼 (테마 토글) */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
/* 다크가 기본이므로 해 아이콘(라이트로 전환)을 먼저 보여준다 */
.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
    :root:not([data-theme="dark"]) .theme-toggle .i-sun  { display: none; }
}
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun  { display: none; }
:root[data-theme="dark"]  .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"]  .theme-toggle .i-sun  { display: block; }

/* --------------------------------------------------------------------------
   6. 히어로
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(46px, 7vw, 96px) clamp(38px, 5vw, 64px); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Claude 마크 — 공식 배포 자산이 아니라 형태를 본뜬 SVG다 */
.hero-visual {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
@media (max-width: 900px) { .hero-visual { display: none; } }

.claude-mark {
    position: relative;
    width: clamp(150px, 17vw, 220px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #D97757;   /* 로고는 테마와 무관하게 공식 색 유지 */
}
.claude-mark::before {
    content: "";
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217,119,87,.22), transparent 66%);
}
.claude-mark svg {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-visual figcaption { text-align: center; }
.hero-visual figcaption strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
}
.hero-visual figcaption span {
    display: block;
    margin-top: 5px;
    font: 500 12px/1.5 var(--mono);
    letter-spacing: .06em;
    color: var(--ink-3);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 500 13px/1 var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 22px;
}
.kicker .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.hero h1 {
    font-size: clamp(38px, 6.4vw, 74px);
    line-height: 1.16;
    letter-spacing: -.04em;
}
.hero h1 em {
    font-style: normal;
    color: var(--accent);
    position: relative;
}
.hero h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: .06em;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    opacity: .34;
}

.hero-lead {
    margin-top: 26px;
    max-width: 46ch;
    font-size: clamp(16px, 1.9vw, 18px);
    line-height: 1.78;
    color: var(--ink-2);
}

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

.hero-note {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    font: 500 13px/1.5 var(--mono);
    color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   8. 섹션 머리말
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: clamp(28px, 3.6vw, 46px); max-width: 58ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.eyebrow i {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    font: 600 11px/1 var(--mono);
    font-style: normal;
}
.eyebrow span {
    font: 500 12px/1 var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.036em; }
.section-head .note { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

/* --------------------------------------------------------------------------
   9. 서비스 카드
   -------------------------------------------------------------------------- */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; } }

.svc-item {
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.svc-item:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: var(--surface-2);
    transform: translateY(-3px);
}
.svc-no {
    display: inline-block;
    font: 600 12px/1 var(--mono);
    letter-spacing: .09em;
    color: var(--accent);
    margin-bottom: 14px;
}
.svc-title { font-size: 19px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 10px; }
.svc-desc { color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   10. 진행 방식
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
    padding: clamp(20px, 2.4vw, 26px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
.step-no {
    display: block;
    font: 600 12px/1 var(--mono);
    letter-spacing: .09em;
    color: var(--accent);
    margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.03em; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.72; }

/* --------------------------------------------------------------------------
   11. 강점
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
.pillar h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -.03em; }
.pillar p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   12. 문의
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* 폼이 길어 왼쪽이 비어 보이므로 스크롤을 따라오게 한다 */
.contact-aside {
    position: sticky;
    top: 96px;
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}
@media (max-width: 860px) { .contact-aside { position: static; } }

.aside-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-2);
}
.aside-note strong { color: var(--accent); font-weight: 600; }
.contact-aside dl { margin: 0; }
.contact-aside dt {
    font: 500 12px/1 var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 22px;
}
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.contact-aside dd a:hover { color: var(--accent); }
.dd-sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-3); }

.field { margin-bottom: 18px; }
.field label {
    display: block;
    font: 500 12px/1 var(--mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font: 400 15px/1.6 var(--sans);
    transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0;
    border-color: var(--accent);
    background: var(--surface-2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.field-error { display: block; margin-top: 7px; font-size: 13px; color: #F2664E; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #F2664E; }

/* 분류 선택 — 칩 형태 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.choice span::before {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .5;
    transition: opacity .18s var(--ease), background .18s var(--ease);
}
.choice input:hover + span { color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:checked + span {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}
.choice input:checked + span::before { background: var(--accent-ink); opacity: .8; }

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ink-2);
    margin: 22px 0;
}
.consent input { margin-top: 5px; accent-color: var(--accent); flex-shrink: 0; }

.flash {
    border: 1px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--accent-glow);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 15px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   13. 푸터
   -------------------------------------------------------------------------- */
.foot {
    border-top: 1px solid var(--line);
    /* 아래 여백은 카카오 상담 버튼(15)과 짝지어 잡은 값이다. 맨 아래까지
       내렸을 때 패밀리 사이트 알약과 버튼의 세로 가운데가 맞도록 되어 있다.
       버튼의 높이나 bottom 을 건드리면 이 값도 다시 재야 한다. */
    padding-block: clamp(28px, 3.4vw, 44px) 28px;
    margin-top: var(--sec-y);
}
/* 패밀리 사이트 — 푸터에 있으므로 위로 열린다 */
.family { position: relative; }
.family summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color .18s var(--ease), border-color .18s var(--ease);
}
.family summary::-webkit-details-marker { display: none; }
.family summary::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .2s var(--ease);
}
.family[open] summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.family summary:hover { color: var(--ink); border-color: var(--accent); }

.family-list {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 5;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--bg-2);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
}
.family-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: background .16s var(--ease), color .16s var(--ease);
}
.family-list a span { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.family-list a:hover { background: var(--surface-2); color: var(--accent); }
.family-list a:hover span { color: var(--accent); }

/* 상단 로고와 같은 배색 — 본문 잉크 + TLD 는 액센트 */
.foot-mark {
    font: 700 26px/1 var(--sans);
    letter-spacing: -.045em;
    text-transform: lowercase;
    color: var(--ink);
}
.foot-mark b { color: var(--accent); font-weight: 700; font-size: .55em; letter-spacing: -.03em; }
.foot-info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 20px; }
.foot-info + .foot-info { margin-top: 8px; }
.foot-info span { font: 400 13px/1.6 var(--mono); color: var(--ink-3); letter-spacing: -.01em; }
/* 상호만 또렷하게, 나머지 정보는 낮춘다 */
.foot-info span:first-child { font-weight: 600; color: var(--ink); }

.foot-bot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 30px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.foot-bot span { font: 400 13px/1.6 var(--mono); color: var(--ink-3); letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   14. 스크롤 등장
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   15. 카카오 상담 버튼
   -------------------------------------------------------------------------- */

/*
 * 우하단에 늘 떠 있다.
 *
 * 색은 테마 토큰을 쓰지 않는다 — 카카오 브랜드색이라 라이트에서도 다크에서도
 * 같은 노랑이어야 한 눈에 알아본다. 테마를 타는 것은 그림자뿐이다.
 *
 * z-index 는 헤더(90) 아래, 본문(2)·패밀리 목록(5) 위인 80.
 */
.kakao-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;

    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0 22px;

    border-radius: 999px;
    background: #FEE500;
    color: #191600;
    font: 600 15px/1 var(--sans);
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .30), 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
:root[data-theme="light"] .kakao-fab {
    box-shadow: 0 6px 20px rgba(74, 38, 22, .16), 0 1px 3px rgba(74, 38, 22, .10);
}

.kakao-fab svg { width: 20px; height: 20px; flex: none; }

.kakao-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .20);
}
:root[data-theme="light"] .kakao-fab:hover {
    box-shadow: 0 12px 28px rgba(74, 38, 22, .22), 0 2px 6px rgba(74, 38, 22, .14);
}
.kakao-fab:active { transform: translateY(0); }

.kakao-fab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    /* 버튼이 작아진 만큼 푸터 아래도 다시 맞춘다 */
    .foot { padding-bottom: 17px; }

    .kakao-fab {
        right: 16px;
        bottom: 16px;
        gap: 7px;
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
    }
    .kakao-fab svg { width: 18px; height: 18px; }
}
