/* koldaat.com — 2세대(2026-11) 공식 홈페이지 + 3세대 홈(B1-6 — 아래 '3세대 홈' 블록). 플랫폼 정의(온톨로지 charter)를 그대로 보이는 사이트.
   디자인: 절제 — 글자가 주인공, 넓은 여백, 색은 잉크 + 액센트 블루 하나, 제품 화면이 곧 그림.
   규칙 정본 wiki/design-guide.md 30절. 1세대(Data-Driven AI)는 /ov/ 에 보관.
   RTL: 논리 속성만 쓴다(margin-inline·inset-inline·text-align:start). */

:root {
    /* 색·반경·그림자·글꼴은 공용 토큰(css/tokens.css, B1-3)에서 */
    --bg: var(--kd-bg);
    --bg-alt: var(--kd-bg-alt);
    --ink: var(--kd-ink);
    --muted: var(--kd-muted);
    --soft: var(--kd-soft);          /* 큰 글자 전용(24px 이상) — 본문에는 쓰지 않는다 */
    --line: var(--kd-line);
    --card: var(--kd-card);
    --accent: var(--kd-blue);
    --accent-dark: var(--kd-blue-d);
    --teal: var(--kd-teal);
    --radius: var(--kd-r-xl);
    --radius-sm: var(--kd-r-md);
    --container: 1120px;
    --header-h: 56px;
    --shadow: var(--kd-sh);
    --shadow-lg: var(--kd-sh-lg);
    --font-sans: var(--kd-sans);
    --font-display: var(--font-sans);
    --font-logo: var(--kd-disp);
    --font-mono: var(--kd-mono);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }   /* 밑줄 쓰지 않음 — design-guide 39절 */
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* CJK: 낱말 안에서 끊지 않는다(라틴 글자에는 영향 없음) */
h1, h2, h3, p, li { word-break: keep-all; overflow-wrap: break-word; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.dir-arrow { display: inline-block; }
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }

/* ---------- Type ---------- */
.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.h-display {
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.038em;
}
.h-page { font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; line-height: 1.06; letter-spacing: -.034em; }
.h-sec { font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--muted); letter-spacing: -.011em; }
:lang(ko) .h-display, :lang(ko) .h-page, :lang(ko) .h-sec { letter-spacing: -.03em; line-height: 1.2; font-weight: 700; }
:lang(he) .h-display, :lang(he) .h-page, :lang(he) .h-sec { letter-spacing: -.01em; line-height: 1.15; font-weight: 700; }
:lang(ko) .eyebrow, :lang(he) .eyebrow { font-family: var(--font-sans); letter-spacing: .04em; font-weight: 600; font-size: 13.5px; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 26px;
    border: 0; border-radius: 980px;
    font: inherit; font-size: 16.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #E9ECF2; }
.btn-sm { padding: 7px 15px; font-size: 13.5px; }
.link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 16.5px; font-weight: 500; color: var(--accent); text-decoration: none;
    background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0;
}
.link::after { content: '›'; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s ease; }
/* RTL: '›' 는 양방향 거울 글자라 오른쪽→왼쪽 문단에서 저절로 '‹' 로 보인다 — 따로 바꾸지 않는다 */
.link:hover::after { transform: translate(3px, -1px); }
[dir="rtl"] .link:hover::after { transform: translate(-3px, -1px); }
.link:hover { text-decoration: none; }
.btn.btn-loading { opacity: .75; pointer-events: none; }
.btn.btn-loading::after {
    content: ''; display: inline-block; width: 14px; height: 14px; margin-inline-start: 10px;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #FFFFFF;
    border-radius: 50%; animation: kd-spin .7s linear infinite;
}
@keyframes kd-spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 251, 253, .78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(12, 18, 32, .07);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.logo { display: flex; align-items: center; margin-inline-end: auto; text-decoration: none; }
/* 로고 — kd_logo()(inc/helpers.php, brand/brand.json). 크기·색·움직임은 아래 '4세대 — 디자인 v3' 블록 */
.logo-foot-heb {
    display: inline-block; font-family: 'Noto Sans Hebrew', var(--font-sans);
    font-size: 28px; font-weight: 700; line-height: 1; direction: rtl; color: var(--ink);
}
.logo-foot-heb b, .logo-foot-heb i { font-style: normal; font-weight: 700; color: var(--accent); }

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a:not(.btn) {
    text-decoration: none; font-size: 14px; font-weight: 400; letter-spacing: -.005em;
    color: rgba(12, 18, 32, .78); transition: color .15s ease;
}
.desktop-nav a:not(.btn):hover, .desktop-nav a.active { color: var(--ink); }
.desktop-nav a.active { font-weight: 500; }

.lang-switch { position: relative; }
.lang-switch summary {
    display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
    font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted);
    padding: 6px 4px; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--ink); }
.lang-menu {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 150px;
    padding: 6px; background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a.current { color: var(--accent); font-weight: 500; }

.hamburger-btn, .close-btn { display: none; background: none; border: 0; cursor: pointer; }
.hamburger-btn { width: 40px; height: 40px; margin-inline-end: -8px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.hamburger-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; }
/* 메뉴는 backdrop-filter 를 가진 헤더의 자식 — fixed 의 기준이 헤더가 되므로 크기를 직접 준다(planning 10-A) */
.mobile-menu-container {
    position: fixed; top: 0; inset-inline-start: 0; width: 100%; height: 100vh; height: 100dvh;
    background: var(--bg); z-index: 200; padding: 84px 32px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.mobile-menu-container.active { opacity: 1; visibility: visible; }
.close-btn { position: absolute; top: 8px; inset-inline-end: 20px; width: 40px; height: 40px; display: block; }
.close-btn span { position: absolute; top: 50%; left: 50%; width: 20px; height: 1.5px; background: var(--ink); }
.close-btn span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.close-btn span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav > a:not(.btn) {
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: 28px; font-weight: 600; letter-spacing: -.025em; text-decoration: none; color: var(--ink);
}
.mobile-nav > a.btn { margin-top: 32px; align-self: flex-start; }
.mobile-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; max-width: 340px; }
.mobile-langs a {
    padding: 11px 0; text-align: center; border: 1px solid var(--line); border-radius: 980px;
    font-size: 15px; text-decoration: none; color: var(--muted);
}
.mobile-langs a.current { border-color: var(--ink); color: var(--ink); font-weight: 500; }

/* ---------- Sections ---------- */
.main-content { padding-top: 0; }
.sec { padding-block: clamp(76px, 10.5vw, 140px); }
.sec-tight { padding-block: clamp(56px, 7vw, 96px); }
.sec-alt { background: var(--bg-alt); }
.sec-ink { background: var(--ink); color: #FFFFFF; }
.sec-ink .eyebrow { color: #7FB0FF; }
.sec-ink .lead { color: rgba(255, 255, 255, .7); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 68px); }
.sec-head .lead { margin-top: 20px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- Hero (공용 버튼 줄) ---------- */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 34px; }
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 84px); }
.page-hero .lead { max-width: 700px; margin-top: 24px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }

/* ---------- 작은 화면 조각(.ui-*) — 홈 화면 그림·벤토·플랫폼 장에서 같이 쓴다 (www/ui_parts.php) ---------- */
.ui-k { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ui-v { font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ui-v { text-align: end; }
.ui-v small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-inline-end: 6px; }
.ui-n { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 980px;
    font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap;
    background: rgba(12, 18, 32, .06); color: var(--muted);
}
.chip-ok { background: rgba(13, 148, 136, .12); color: #0B7A70; }
.chip-now { background: rgba(37, 99, 235, .11); color: var(--accent-dark); }
.chip-est { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ui-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14.5px; border-top: 1px solid rgba(12, 18, 32, .07); }
.ui-steps li:first-child { border-top: 0; padding-top: 0; }
.ui-steps li:last-child { padding-bottom: 0; }
.ui-steps .mk { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #C3C9D3; }
.ui-steps .done .mk { background: var(--teal); box-shadow: none; position: relative; }
.ui-steps .done .mk::after { content: ''; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #FFFFFF; border-width: 0 1.6px 1.6px 0; transform: rotate(42deg); }
.ui-steps .now .mk { box-shadow: inset 0 0 0 5px var(--accent); }
.ui-steps .next { color: var(--muted); }
.ui-steps .chip { margin-inline-start: auto; }
.ui-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14.5px; border-top: 1px solid rgba(12, 18, 32, .07); }
.ui-rows li:first-child { border-top: 0; padding-top: 0; }
.ui-rows li:last-child { padding-bottom: 0; }
.ui-bars { display: grid; gap: 14px; }
.ui-bar-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.ui-bar-h b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ui-bar { height: 8px; border-radius: 8px; background: rgba(12, 18, 32, .07); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--accent); transform-origin: inline-start; }
.ui-bar.out i { background: #9AA3B2; }

/* ---------- Pillars / facts ---------- */
.cols { display: grid; gap: clamp(28px, 4vw, 56px); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pl { padding-top: 26px; border-top: 1px solid var(--line); }
.sec-ink .pl { border-top-color: rgba(255, 255, 255, .18); }
.pl-num { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; }
.sec-ink .pl-num { color: #7FB0FF; }
.pl h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; }
.pl p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.sec-ink .pl p { color: rgba(255, 255, 255, .68); }
.closing { margin-top: clamp(44px, 6vw, 80px); max-width: 860px; font-size: clamp(22px, 2.7vw, 32px); font-weight: 600; line-height: 1.25; letter-spacing: -.024em; }
.sec-ink .closing { color: #FFFFFF; }
:lang(ko) .closing { line-height: 1.4; }

.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 34px 32px 36px; }
.sec:not(.sec-alt) .card { background: var(--bg-alt); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card .tag { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
:lang(ko) .card .tag, :lang(he) .card .tag { font-family: var(--font-sans); letter-spacing: .03em; font-weight: 600; font-size: 13px; }

/* ---------- Platform chapters ---------- */
.chap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.chap-rev .chap-txt { order: 2; }
.chap-txt h2 { margin-bottom: 18px; }
.chap-txt .lead { font-size: clamp(17px, 1.6vw, 19.5px); }
.need { margin-top: 30px; display: grid; gap: 0; }
.need li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.need li b { display: block; margin-bottom: 3px; font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.012em; }
.panel { background: var(--card); border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow); border: 1px solid rgba(12, 18, 32, .05); }
.sec-alt .panel { box-shadow: none; }
.panel-cap { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }
.chap-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.chap-nav a { padding: 8px 16px; border-radius: 980px; background: var(--bg-alt); font-size: 14.5px; text-decoration: none; color: var(--ink); transition: background .2s; }
.chap-nav a:hover { background: #E9ECF2; }
.chap-nav a span { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-inline-end: 7px; }

/* ---------- Brand story ---------- */
.brand-letters { direction: rtl; font-family: 'Noto Sans Hebrew', var(--font-sans); font-size: clamp(88px, 17vw, 220px); font-weight: 700; line-height: 1; letter-spacing: 0; text-align: center; }
.bl-kol { color: var(--accent); }
.brand-reading { margin-top: 20px; text-align: center; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .06em; color: var(--muted); }
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin: 56px 0 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17.5px; line-height: 1.72; color: #2A3242; }
.prose p + p { margin-top: 16px; }
.prose a { color: var(--accent); }
.verse-band { margin-top: clamp(48px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) 28px; border-radius: 28px; background: var(--ink); color: #FFFFFF; text-align: center; }
.vb-quote { font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.vb-ref { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .62); letter-spacing: .02em; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.checks li { position: relative; padding: 20px 0; padding-inline-start: 34px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 27px; width: 5px; height: 10px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(42deg); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .lead { max-width: 620px; margin: 22px auto 0; }
.cta-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.daat-card, .form-card { background: var(--card); border-radius: 28px; padding: clamp(28px, 3.6vw, 44px); }
.daat-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.daat-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #FFFFFF;
    display: grid; place-items: center; font-family: 'Noto Sans Hebrew', sans-serif; font-size: 26px; font-weight: 700;
}
.daat-id strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.daat-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.daat-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: kdDotBreath 3s ease-in-out infinite; }
.daat-card h2 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.daat-card > p { margin: 12px 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.daat-facts { margin-top: 30px; }
.daat-facts li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card label { display: block; }
.form-card label > span { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.form-card input[type="text"], .form-card input[type="email"], .form-card select, .form-card textarea {
    width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; color: var(--ink);
    background: var(--bg-alt); border: 1px solid transparent; border-radius: 12px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    appearance: none; -webkit-appearance: none;
}
.form-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235A6472' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; padding-inline-end: 40px;
}
[dir="rtl"] .form-card select { background-position: left 15px center; }
.form-card textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    outline: none; background: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.form-ok, .form-err { padding: 16px 18px; border-radius: 14px; font-size: 15.5px; margin-bottom: 20px; }
.form-ok { background: rgba(13, 148, 136, .1); color: #0B6B62; margin-bottom: 0; }
.form-err { background: #FDECEC; color: #A32020; }
/* 허니팟: 화면 밖으로 밀지 않고 잘라서 숨긴다(음수 offset 은 RTL 에서 가로 스크롤을 만든다) */
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* ---------- Legal ---------- */
.legal { max-width: 720px; }
.legal h2 { margin: 40px 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.legal p { font-size: 16.5px; line-height: 1.7; color: #2A3242; }
.legal a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding: 64px 0 36px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-tagline { margin-top: 16px; max-width: 280px; font-size: 14.5px; line-height: 1.55; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 22px; }
.footer-langs a { text-decoration: none; font-size: 13.5px; }
.footer-langs a:hover, .footer-langs a.current { color: var(--ink); }
.footer-col h2 { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-addr { line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ==========================================================================
   3세대 홈(B1-6, 2026-11-14) — 시안 wiki/platform/portal-mock/home-v3-mock.html 승인본.
   오퍼 띠 · 히어로(포털 화면) · 신뢰 띠 · 4단계 · 프리존 + 계산기 · 플랫폼 · 가격 · 파트너(어두운 절 하나) · 사례 · FAQ · 마지막 CTA.
   금액은 .m(숫자 방향 LTR 고정) — 히브리어에서도 'AED 18,500' 순서 그대로. 규칙 정본 wiki/design-guide.md 30절.
   ========================================================================== */
.m { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #FFFFFF; text-decoration: none; font-size: 14px; }
.skip:focus { top: 10px; }
#main:focus { outline: none; }
.btn-lg { padding: 16px 30px; font-size: 17px; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #B9C1CE; background: #FFFFFF; }
.btn-block { display: flex; width: 100%; }
.btn-sm { font-weight: 600; }

/* 오퍼 띠 — 홈 맨 위 한 줄(머리글은 그 아래에 붙는다) */
.offer { background: var(--ink); color: #E8EDF6; font-size: 13.5px; line-height: 1.5; text-align: center; padding: 10px 20px; }
.offer b { color: #FFFFFF; font-weight: 600; }
.offer a { color: #A9C4FF; font-weight: 600; text-decoration: none; margin-inline-start: 8px; white-space: nowrap; }
.offer a::after { content: ' ›'; }
.offer a:hover { text-decoration: none; color: #FFFFFF; }

/* 머리글 — 메뉴 · 로그인 · 언어 · [무료 진단 시작] */
.desktop-nav { gap: 24px; }
.desktop-nav a { white-space: nowrap; }
.hd-login { font-size: 14px; color: rgba(12, 18, 32, .78); text-decoration: none; white-space: nowrap; }
.hd-login:hover { color: var(--ink); }
.hd-cta { white-space: nowrap; }

/* 히어로 — 왼쪽 약속 · 오른쪽 고객 포털 화면 */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero .h-display { font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; line-height: 1.07; margin-block: 4px 22px; }
:lang(ko) .hero .h-display { line-height: 1.18; }
.hero .h-display span { color: var(--accent); }
:lang(es) .hero .h-display { font-size: clamp(36px, 4.6vw, 60px); }
:lang(he) .hero .h-display { font-size: clamp(34px, 3.7vw, 52px); }   /* 히브리어 굵은 글자는 넓다 — 1440 에서 세 줄(<br> 그대로) */
.hero .lead { max-width: 540px; }
.hero .hero-actions { justify-content: flex-start; margin-top: 32px; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.micro li { display: inline-flex; align-items: center; gap: 7px; }
.micro li::before { content: ''; width: 5px; height: 9px; margin-top: -3px; border: solid var(--kd-done); border-width: 0 2px 2px 0; transform: rotate(42deg); flex: none; }
.hero-vis { position: relative; margin: 0; }
.hero-vis::before {
    content: ''; position: absolute; inset: 8% 0 -4%; z-index: 0; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(37, 99, 235, .18), rgba(13, 148, 136, .07) 55%, transparent); filter: blur(40px);
}
.screen-cap { position: relative; z-index: 1; margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

/* 포털 화면(예시) — 고객 포털의 여정 지도·할 일·기다림을 같은 토큰으로 */
.pscreen {
    position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    box-shadow: var(--shadow-lg); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center;
}
[dir="rtl"] .pscreen { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); transform-origin: right center; }
.ps-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FCFCFD; direction: ltr; }
.ps-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ps-top b { margin-inline-start: 10px; font: 500 11.5px var(--font-mono); color: var(--muted); }
.ps-body { padding: 18px 20px 20px; font-size: 13px; }
.ps-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ps-h b { font-size: 15px; direction: ltr; unicode-bidi: isolate; }
.ps-tag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--kd-blue-t); color: var(--accent-dark); white-space: nowrap; }
.jm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin: 6px 0 16px; }
.jm::before { content: ''; position: absolute; inset-inline: 10%; top: 13px; height: 2px; background: var(--line); }
.jm::after { content: ''; position: absolute; inset-inline-start: 10%; top: 13px; height: 2px; width: 20%; background: linear-gradient(90deg, var(--kd-done), var(--accent)); }
[dir="rtl"] .jm::after { background: linear-gradient(-90deg, var(--kd-done), var(--accent)); }
.jm li { position: relative; z-index: 1; text-align: center; font-size: 11px; line-height: 1.3; color: var(--muted); padding-inline: 2px; }
.jm i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font: 600 11px var(--font-mono); font-style: normal; color: var(--muted); }
.jm .d i { background: var(--kd-done); border-color: var(--kd-done); color: #FFFFFF; }
.jm .n { color: var(--accent-dark); font-weight: 600; }
.jm .n i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.ps-task { display: flex; gap: 10px; align-items: center; border: 1px solid var(--kd-blue-l); background: linear-gradient(180deg, #F7F9FF, #FFFFFF); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.ps-task .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--kd-blue-t); display: grid; place-items: center; color: var(--accent); font-weight: 700; flex: none; }
.ps-task div { flex: 1; min-width: 0; }
.ps-task b { display: block; font-size: 12.5px; }
.ps-task small, .ps-wait small, .fc-vis small { display: block; color: var(--muted); font-size: 11px; }
.ps-task .bt { font-size: 11px; font-weight: 600; background: var(--accent); color: #FFFFFF; border-radius: 8px; padding: 5px 10px; white-space: nowrap; }
.ps-wait { display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 12px; }
.ps-wait .who { font-size: 10.5px; font-weight: 600; background: var(--kd-wait-t); color: var(--kd-ink-2); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ps-wait div { flex: 1; min-width: 0; }
.ps-wait .tr { width: 70px; height: 5px; border-radius: 3px; background: #EEF1F5; overflow: hidden; flex: none; }
.ps-wait .tr i { display: block; height: 100%; width: var(--w); background: var(--kd-wait); }

/* 신뢰 띠 */
.tband { padding: 8px 0 12px; }
.tband ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tband li { font-size: 13.5px; color: var(--kd-ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.tband b { color: var(--ink); font-weight: 600; }
.tb-k { display: inline-block; margin-inline-end: 8px; padding-inline-end: 8px; border-inline-end: 1px solid var(--line); font-size: 12px; font-weight: 600; color: #0B7A70; }
.tb-n { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }

/* 4단계 */
.home .sec-head.center .lead { margin-inline: auto; max-width: 660px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stp { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.stp-n { font: 500 12px var(--font-mono); color: var(--accent); letter-spacing: .1em; }
.stp h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 8px; }
.stp-where { align-self: flex-start; font-size: 12px; font-weight: 600; color: #0B7A70; background: var(--kd-teal-t); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.stp > p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.stp ul { margin-top: 12px; font-size: 13.5px; color: var(--kd-ink-2); }
.stp ul li { position: relative; padding-block: 3px; padding-inline-start: 14px; }
.stp ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.stp .stp-dur { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--kd-ink-2); }
.stp ul + .stp-dur { margin-top: 16px; }
.stp-dur b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.foot-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 24px; }
.foot-note .link { font-size: 13.5px; }

/* 프리존 비교 + 계산기 */
.fzc { display: grid; gap: 12px; }
.fz-asof { font-size: 12.5px; color: var(--muted); line-height: 1.55; padding-inline: 4px; }

.seg { display: flex; background: var(--bg-alt); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 4px; border-radius: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s ease, color .15s ease; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 18, 32, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg label:hover span { color: var(--ink); }

/* 플랫폼 — 세 기능 + 포털 조각 */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fc { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); padding: 28px 26px 26px; }
.fc h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.fc > p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.fc-vis { margin-top: 22px; background: var(--card); border-radius: 16px; padding: 16px; font-size: 12.5px; flex: 1; }
.jm-sm { margin: 4px 0 8px; }
.dbar { margin: 10px 0; }
.dbar div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.dbar .t { display: flex; height: 8px; background: #E6E9EF; border-radius: 5px; overflow: hidden; }
.dbar .t i { display: block; height: 100%; width: var(--w); background: var(--kd-done); }
.dbar .t i.late { background: var(--kd-late); }
.fc-n { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.dl { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.dl:first-child { border-top: 0; padding-top: 0; }
.dl .dd { width: 42px; flex: none; text-align: center; border-radius: 9px; background: var(--bg-alt); padding: 4px 0; font-weight: 700; font-size: 15px; line-height: 1.2; }
.dl .dd small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 500; }

/* 가격 */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.plans-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.plan.pop { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .for { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 44px; }
.plan .price { margin: 18px 0 4px; font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-inline-start: 2px; }
.plan .unit { font-size: 13px; color: var(--muted); }
.plan ul { margin: 22px 0 26px; font-size: 14.5px; flex: 1; }
.plan li { position: relative; padding-block: 8px; padding-inline-start: 24px; border-top: 1px solid var(--line); line-height: 1.5; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 13px; width: 5px; height: 10px; border: solid var(--kd-done); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.plan li.x { color: var(--muted); }
.plan li.x::before { width: 9px; height: 0; top: 19px; inset-inline-start: 2px; border-width: 0 0 2px 0; border-color: var(--kd-faint); transform: none; }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 30px auto 0; }
.layers div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.layers b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.price-note { max-width: 820px; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* 파트너 — 페이지에 하나뿐인 어두운 절 */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 16px; align-items: center; }
.person .av { width: 56px; height: 56px; border-radius: 50%; background: #1E2A44; display: grid; place-items: center; font: 700 22px var(--font-logo); color: #A9C4FF; }
.person .pn { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #FFFFFF; }
.person .pr { font-size: 14px; color: rgba(232, 236, 244, .72); }
.bio { grid-column: 1 / -1; margin-top: 10px; }
.bio li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; line-height: 1.55; color: rgba(232, 236, 244, .82); }
.creds { display: grid; gap: 12px; }
.cred { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; padding: 18px 20px; }
.cred b { display: block; color: #FFFFFF; font-size: 16px; font-weight: 600; }
.cred span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: rgba(232, 236, 244, .72); }
.pa-more { margin-top: 36px; }
.sec-ink .link { color: #A9C4FF; }

/* 사례 */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.case .k { font: 500 12px var(--font-mono); color: #0B7A70; letter-spacing: .06em; }
.case h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin: 10px 0; line-height: 1.35; }
.case > p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.case .num { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--kd-ink-2); }
.case h3 + p + .num, .case p + .num { margin-top: 16px; }
.case .num b { font-size: 16px; color: var(--ink); }
:lang(ko) .case .k, :lang(he) .case .k, :lang(ko) .stp-n, :lang(he) .stp-n { font-family: var(--font-sans); letter-spacing: .02em; font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1.1; }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { padding: 0 4px 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* 마지막 CTA */
.final { text-align: center; }
.final .h-sec { font-size: clamp(34px, 4.6vw, 60px); }
.final .lead { max-width: 580px; margin: 18px auto 0; }

/* 바닥글 — 연락처·법적 고지 */
.footer-col .fc-k { display: block; font-size: 12px; color: var(--muted); margin-bottom: 1px; }
.footer-col li:has(.fc-k) { margin-bottom: 12px; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.footer-legal b { color: var(--ink); font-weight: 600; }
.link-q { color: var(--accent); font-weight: 500; text-decoration: none; }

/* ---------- Scroll reveal — JS 가 켜져 있고 움직임을 줄이지 않았을 때만 ---------- */
.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .3, 1), transform .9s cubic-bezier(.2, .7, .3, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-rv].in { opacity: 1; transform: none; }
.js [data-rv] .ui-bar i { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .3, 1) .35s; }
.js [data-rv].in .ui-bar i { transform: scaleX(1); }

/* Daat 챗봇(.kd-chat-*)의 모양은 css/chat.css 한 곳(B1-15, design-guide 69절) */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .logo-word .lg, .logo-word .lg-dot, .daat-badge::before { animation: none; }
    .js [data-rv], .js [data-rv] .ui-bar i { opacity: 1; transform: none; transition: none; }
    .pscreen, [dir="rtl"] .pscreen { transform: none; }
    .btn, .link::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .desktop-nav { gap: 18px; }
    .desktop-nav a:not(.btn), .hd-login { font-size: 13.5px; }
    .header-inner { gap: 18px; }
}
/* 스페인어 메뉴는 글이 길어 1100 아래에서 머리 단추가 밀려난다(1024 가로 넘침) — 간격만 줄인다 */
@media (max-width: 1100px) {
    :lang(es) .desktop-nav, :lang(es) .header-inner { gap: 4px; }
    :lang(es) .desktop-nav a:not(.btn) { padding-inline: 8px; }
}
@media (max-width: 1000px) {
    .hero-grid, .partner { grid-template-columns: minmax(0, 1fr); }
    .pscreen, [dir="rtl"] .pscreen { transform: none; }
    .hero-vis { max-width: 620px; }
    .steps4, .feat, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
    .plan .for { min-height: 0; }
    .cols-3 { grid-template-columns: 1fr; gap: 0; }
    .cols-3 .pl { padding-block: 26px; }
    .cards-3 { grid-template-columns: 1fr; }
    .chap { grid-template-columns: 1fr; }
    .chap-rev .chap-txt { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .desktop-nav, .lang-switch, .hd-login { display: none; }
    .hamburger-btn { display: flex; }
    .logo { margin-inline-end: auto; }
}
@media (max-width: 720px) {
    body { font-size: 16.5px; }
    .container { padding-inline: 22px; }
    .cards-2, .cols-2, .checks { grid-template-columns: 1fr; }
    .card { padding: 28px 26px 30px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-actions .btn { width: 100%; max-width: 340px; }
    .hero .hero-actions { justify-content: center; }
    .hero-txt { text-align: center; }
    .hero .lead { margin-inline: auto; }
    .micro { justify-content: center; }
    .steps4, .feat, .cases, .layers { grid-template-columns: minmax(0, 1fr); }
    .seg span { font-size: 13px; padding-inline: 2px; }
    .ps-body { padding: 14px 14px 16px; }
    .jm li { font-size: 10px; }
    .ps-wait .tr { display: none; }
    .tband li { font-size: 12.5px; padding: 7px 13px; }
    .faq summary { font-size: 16.5px; }
    .offer { font-size: 12.5px; }
}
@media (max-width: 560px) {
    .hd-cta { display: none; }
}

/* ==========================================================================
   4세대 — 디자인 v3 (2026-11-15, Joseph "새로운 디자인으로 공식 홈페이지 전면 개편 · 로고도 새 디자인에 어울리게")
   관리 콘솔 rc.12 · 고객 포털과 같은 규칙(정본 wiki/design-guide.md 34·35절, 기준 화면 cportal/admin/assets/v3/sample.html).
   배치(격자·순서·절 리듬)는 3세대 그대로 — 이 블록은 글자·색·모양·크롬만 바꾼다. 색은 토큰만(--kd-fb-* · 상태 --kd-*).
   ① 한 서체 Inter + Pretendard(히브리 Noto Sans Hebrew) — 제목 500 + 강한 음수 자간, 굵게는 600까지
   ② 남색 크롬: 오퍼 띠 · 머리글 · 히어로 · 파트너 절 — 그 밖은 중성 지면 + 흰 카드(헤어라인 + 숨 그림자)
   ③ 강조 = 인디고(밝은 바탕) · 라벤더(남색 바탕). 파랑은 쓰지 않는다
   ④ 반경: 큰 카드 16 · 카드 12 · 단추·입력 8 · 칩 6. 주 단추 = 잉크(밝은 바탕) · 밝은 채움(남색 바탕)
   ========================================================================== */
:root {
    --bg: var(--kd-fb-canvas);
    --bg-alt: var(--kd-fb-soft);
    --ink: var(--kd-fb-ink);
    --muted: var(--kd-fb-mute);
    --soft: var(--kd-fb-faint);
    --line: var(--kd-fb-line);
    --card: var(--kd-fb-card);
    --accent: var(--kd-fb-indigo);
    --accent-dark: var(--kd-fb-indigo-d);
    --radius: var(--kd-fb-r-layer);
    --radius-sm: var(--kd-fb-r-card);
    --header-h: 64px;
    --shadow: 0 0 0 1px var(--kd-fb-line), var(--kd-fb-sh);
    --shadow-lg: 0 0 0 1px var(--kd-fb-line), var(--kd-fb-sh-float);
    --font-sans: 'Inter', 'Pretendard Variable', 'Pretendard', 'Noto Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
    --font-logo: var(--font-sans);
    --font-mono: var(--font-sans);
    --nv: var(--kd-fb-navy); --nv-2: var(--kd-fb-navy-2); --nv-3: var(--kd-fb-navy-3); --nv-line: var(--kd-fb-navy-line);
    --on: var(--kd-fb-on-navy); --on-2: var(--kd-fb-on-navy-2); --on-3: var(--kd-fb-on-navy-3); --lav: var(--kd-fb-lav);
}
body { font-size: 16px; line-height: 1.6; letter-spacing: var(--kd-fb-tr-b); font-feature-settings: 'cv11', 'ss01'; font-optical-sizing: auto; -moz-osx-font-smoothing: grayscale; }
:where(b, strong) { font-weight: 600; }
::selection { background: var(--kd-fb-lav-l2); color: var(--ink); }
:focus-visible { outline-color: var(--accent); }
.num, .m, .tb-n, .stp-n, .case .k { font-variant-numeric: tabular-nums; }

/* 글자 — 크기·자간으로 위계, 굵기 500 */
.eyebrow, :lang(ko) .eyebrow, :lang(he) .eyebrow { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: var(--kd-fb-tr-cap); text-transform: none; color: var(--accent); margin-bottom: 16px; }
.h-display, .h-page, .h-sec { font-weight: 500; }
.h-display { letter-spacing: -.045em; line-height: 1.04; }
.h-page { letter-spacing: -.04em; }
.h-sec { letter-spacing: -.035em; line-height: 1.1; }
:lang(ko) .h-display, :lang(ko) .h-page, :lang(ko) .h-sec { font-weight: 600; letter-spacing: -.035em; line-height: 1.18; }
:lang(he) .h-display, :lang(he) .h-page, :lang(he) .h-sec { font-weight: 600; letter-spacing: -.012em; }
.lead { letter-spacing: var(--kd-fb-tr-s); color: var(--muted); }

/* 단추 — 반경 8. 밝은 바탕 주 단추 = 잉크 */
.btn { border-radius: var(--kd-fb-r-ctl); font-size: 15px; font-weight: 500; letter-spacing: var(--kd-fb-tr-s); padding: 12px 20px; }
.btn-primary { background: var(--ink); color: #FFFFFF; box-shadow: 0 1px 2px rgba(16, 16, 26, .14), inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn-primary:hover { background: var(--kd-fb-ink-h); }
.btn-lg { padding: 15px 26px; font-size: 16px; font-weight: 500; }
.btn-sm, .btn-sm.btn { padding: 8px 14px; font-size: 14px; font-weight: 500; }
.btn-ghost { background: var(--card); box-shadow: 0 0 0 1px var(--kd-fb-line-s), var(--kd-fb-sh); }
.btn-ghost:hover { background: var(--kd-fb-faint-bg); box-shadow: 0 0 0 1px var(--kd-fb-line-h), var(--kd-fb-sh); }
.link { font-size: 15.5px; color: var(--ink); }
.link::after { color: var(--accent); }

/* 로고 v3 — B '기반과 앎'(kd_logo(), inc/helpers.php). 남색 바탕은 밝은 네모 · 남색 위 인디고 원. 첫 방문에 원이 오른쪽에서 들어와 겹친다 */
.logo-lock { font-size: 22px; }
.site-header .kd-logo { --lm-sq: var(--kd-logo-d-sq); --lm-ci: var(--kd-logo-d-ci); --lm-ov: var(--kd-logo-d-ov); --lm-w: var(--kd-logo-d-w); }
.mobile-menu-container .kd-logo { --lm-sq: var(--kd-logo-sq); --lm-ci: var(--kd-logo-ci); --lm-ov: var(--kd-logo-ov); --lm-w: var(--kd-logo-w); }
.logo-lock .kd-lm-ci, .logo-lock .kd-lm-ov { animation: kdLmIn .8s cubic-bezier(.2, .8, .2, 1) .15s both; }
.logo-lock .kd-lm-ov { animation-name: kdLmOv; animation-delay: .55s; }
.logo-lock.played .kd-lm-ci, .logo-lock.played .kd-lm-ov { animation: none; }
@keyframes kdLmIn { from { transform: translateX(7px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kdLmOv { from { opacity: 0; } to { opacity: 1; } }

/* 오퍼 띠 · 머리글 — 남색 크롬 */
.offer { background: var(--nv-2); color: var(--on-2); border-bottom: 1px solid var(--nv-line); font-size: 13px; padding: 9px 20px; }
.offer b { color: var(--on); font-weight: 500; }
.offer a { color: var(--lav); font-weight: 500; }
.site-header { background: rgba(11, 12, 30, .92); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--nv-line); }
.desktop-nav a:not(.btn), .hd-login { color: var(--on-2); font-size: 14px; font-weight: 500; letter-spacing: var(--kd-fb-tr-s); }
.desktop-nav a:not(.btn):hover, .desktop-nav a.active, .hd-login:hover { color: var(--on); }
.lang-switch summary { color: var(--on-2); }
.lang-switch summary:hover { color: var(--on); }
.lang-menu { border-radius: var(--kd-fb-r-card); border-color: var(--line); box-shadow: var(--kd-fb-sh-float); }
.lang-menu a { border-radius: var(--kd-fb-r-ctl); font-size: 14px; }
.lang-menu a.current { color: var(--ink); font-weight: 600; }
.site-header .hd-cta, .site-header .hd-cta.btn-primary { background: var(--on); color: var(--nv); box-shadow: none; }
.site-header .hd-cta:hover { background: #FFFFFF; }
.hamburger-btn span { background: var(--on); }
.mobile-nav > a:not(.btn) { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.mobile-langs a { border-radius: var(--kd-fb-r-ctl); }

/* 히어로 — 남색 + 라벤더·파랑 빛, 포털 화면은 흰 카드로 떠 있다 */
.hero { background: var(--kd-fb-hero); color: var(--on); padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); }
.hero .eyebrow { color: var(--lav); }
.hero .h-display { color: var(--on); font-weight: 500; letter-spacing: -.048em; }
:lang(ko) .hero .h-display { font-weight: 600; letter-spacing: -.04em; }
:lang(he) .hero .h-display { font-weight: 600; }
.hero .h-display span { color: var(--lav); }
.hero .lead { color: var(--on-2); }
.hero .btn-primary { background: var(--on); color: var(--nv); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.hero .btn-primary:hover { background: #FFFFFF; }
.hero .link { color: var(--on); }
.hero .link::after { color: var(--lav); }
.micro { color: var(--on-2); font-size: 14px; }
.micro li::before { border-color: var(--kd-fb-teal-on); }
.hero-vis::before { background: radial-gradient(closest-side, rgba(169, 171, 245, .22), rgba(110, 155, 255, .08) 55%, transparent); }
.screen-cap { color: var(--on-3); }
.pscreen { color: var(--ink); border: 0; border-radius: var(--kd-fb-r-layer); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px -24px rgba(0, 0, 0, .55); }
.ps-top { background: var(--kd-fb-faint-bg); border-bottom-color: var(--line); }
.ps-top b { font: 500 11.5px var(--font-sans); }
.ps-tag { border-radius: var(--kd-fb-r-chip); font-weight: 500; background: var(--kd-fb-lav-l); color: var(--accent); }
.jm::after { background: linear-gradient(90deg, var(--kd-done), var(--accent)); }
[dir="rtl"] .jm::after { background: linear-gradient(-90deg, var(--kd-done), var(--accent)); }
.jm i { font: 500 11px var(--font-sans); }
.jm .n { color: var(--accent); font-weight: 500; }
.jm .n i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(63, 68, 162, .12); }
.ps-task { border-color: var(--kd-fb-lav-l2); background: var(--kd-fb-lav-l); box-shadow: none; border-radius: var(--kd-fb-r-ctl); }   /* 주 할 일 = 라벤더 면(39절 4-2) */
.ps-task .ic { background: var(--card); }
.ps-task .ic { background: var(--kd-fb-lav-l); color: var(--accent); border-radius: 6px; }
.ps-task .bt { background: var(--ink); border-radius: 6px; font-weight: 500; }
.ps-wait .who { border-radius: 5px; font-weight: 500; }

/* 신뢰 띠 — 히어로 아래 가는 줄 */
.tband { padding: 22px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.tband li { border-radius: var(--kd-fb-r-ctl); border-color: var(--line); background: var(--kd-fb-faint-bg); font-size: 13px; padding: 7px 14px; }
.tband b { font-weight: 500; }
.tb-k { color: var(--accent); font-weight: 500; }
.tb-n { font-family: var(--font-sans); font-size: 12.5px; }

/* 절 · 카드 — 흰 카드 = 헤어라인 + 숨 그림자 */
.sec-alt { background: var(--bg-alt); }
.card { border-radius: var(--kd-fb-r-card); box-shadow: var(--shadow); }
.sec:not(.sec-alt) .card { background: var(--card); }
.card h3, .stp h3, .fc h3, .plan h3, .case h3 { font-weight: 600; letter-spacing: -.022em; }
.stp { border-radius: var(--kd-fb-r-card); box-shadow: var(--shadow); padding: 24px 22px; }
.stp-n { font: 500 12px var(--font-sans); letter-spacing: var(--kd-fb-tr-cap); color: var(--accent); }
.stp-where { border-radius: var(--kd-fb-r-chip); font-weight: 500; color: var(--kd-done-d); background: var(--kd-done-t); }
.stp ul li::before { background: var(--accent); }
.stp .stp-dur b, .stp .stp-dur strong { font-weight: 500; letter-spacing: -.03em; }
.seg { border-radius: var(--kd-fb-r-ctl); padding: 3px; gap: 2px; background: var(--bg-alt); }
.seg span { font-weight: 500; font-size: 13.5px; border-radius: var(--kd-fb-r-chip); }
.seg input:checked + span { box-shadow: 0 1px 2px rgba(16, 16, 26, .08), 0 0 0 1px var(--line); }
.fc { background: var(--card); border-radius: var(--kd-fb-r-card); box-shadow: var(--shadow); }
.fc-vis { background: var(--kd-fb-faint-bg); border: 1px solid var(--line); border-radius: var(--kd-fb-r-card); }
.dbar .t { background: var(--bg-alt); }
.dl .dd { border-radius: var(--kd-fb-r-ctl); font-weight: 500; background: var(--card); border: 1px solid var(--line); }
.plan { border-radius: var(--kd-fb-r-card); box-shadow: var(--shadow); }
.plan.pop { box-shadow: 0 0 0 1.5px var(--accent), var(--kd-fb-sh-float); }
.plan .badge { background: var(--accent); border-radius: var(--kd-fb-r-chip); font-weight: 500; }
.plan .price { font-weight: 500; letter-spacing: -.045em; }
.plan .price small { font-weight: 500; }
.layers div { border-radius: var(--kd-fb-r-card); background: var(--card); }
.layers b { font-weight: 600; }
.case { background: var(--card); border-radius: var(--kd-fb-r-card); box-shadow: var(--shadow); }
.case .k { font: 500 12px var(--font-sans); letter-spacing: var(--kd-fb-tr-cap); color: var(--accent); }
.case .num b { font-weight: 600; }
.faq summary { font-weight: 500; letter-spacing: var(--kd-fb-tr-s); }

/* 파트너 — 남색 절 */
.sec-ink { background: var(--nv); color: var(--on); }
.sec-ink .eyebrow, .sec-ink .pl-num { color: var(--lav); }
.sec-ink .lead { color: var(--on-2); }
.sec-ink .link { color: var(--on); }
.sec-ink .link::after { color: var(--lav); }
.person .av { background: var(--nv-3); color: var(--lav); font: 600 22px var(--font-sans); }
.person .pn { font-weight: 500; letter-spacing: -.03em; }
.person .pr, .cred span { color: var(--on-2); }
.bio li { color: var(--on-2); border-top-color: var(--nv-line); }
.cred { background: rgba(237, 237, 239, .04); border-color: var(--nv-line); border-radius: var(--kd-fb-r-card); }
.cred b { font-weight: 500; }

/* 바닥글 — 흰 바탕, 로고 + 히브리 이름 */
.site-footer { background: var(--card); border-top: 1px solid var(--line); }
.site-footer .logo-lock { font-size: 22px; }
.footer-brand .logo { flex-direction: column; align-items: flex-start; gap: 10px; }
.logo-foot-heb { font-size: 15px; font-weight: 500; color: var(--muted); }
.logo-foot-heb i { color: var(--accent); font-style: normal; }
.footer-col h2 { font-weight: 500; color: var(--ink); }
.footer-col a:hover, .footer-langs a:hover { color: var(--ink); }

/* 다른 화면(플랫폼·이야기·신뢰·시작) — 같은 카드·단추 규칙 */
.panel { border-radius: var(--kd-fb-r-card); }
.chip, .chip-ok, .chip-now, .chip-est { border-radius: var(--kd-fb-r-chip); font-weight: 500; }

@media (max-width: 960px) {
    .logo-lock { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-lock .kd-lm-ci, .logo-lock .kd-lm-ov { animation: none; }
}
