/* ProEye-Safe · ProEye-Biz 홈 — factory-twin.co.kr(twin/site.css · header.css) 위에 브랜드 색과 섹션만 더한다.
   다크가 기본, html[data-theme=light] 에서 라이트. */
body.page-brand { margin: 0; background: var(--tw-bg); }
body.brand-safe { --tw-accent: #fbbf24; --bh-tone: #fbbf24; --bh-tone2: #f97316; --bh-glow: #f59e0b33; }
body.brand-biz  { --tw-accent: #7cb8ff; --bh-tone: #7cb8ff; --bh-tone2: #a78bfa; --bh-glow: #3b82f633; }
html[data-theme=light] body.brand-safe { --tw-accent: #b45309; --bh-tone: #b45309; --bh-tone2: #c2410c; --bh-glow: #f59e0b22; }
html[data-theme=light] body.brand-biz  { --tw-accent: #1d5fbf; --bh-tone: #1d5fbf; --bh-tone2: #6d28d9; --bh-glow: #3b82f622; }

.page-brand .ft-brand img { border-radius: 8px; }
.page-brand .ft-brand span { width: 108px; }
.page-brand .ft-btn { color: #1a1206 !important; }
.page-brand.brand-biz .ft-btn { color: #061a33 !important; }
html[data-theme=light] .page-brand .ft-btn, html[data-theme=light] .page-brand .ft-nav .ft-demo { color: #fff !important; }
html[data-theme=light] .page-brand .twin-home .ft-btn.outline { color: var(--tw-ink) !important; border-color: var(--bh-tone); background: #fff; }
.page-brand .ft-btn.outline { color: var(--tw-ink) !important; }
html[data-theme=light] body.page-brand .bh-copy h1 em { color: var(--bh-tone); }

/* 히어로 */
.bh-hero { max-width: 1600px; margin: auto; padding: 56px 5vw 0; background: radial-gradient(ellipse at 78% 35%, var(--bh-glow), transparent 62%); }
.bh-copy { min-width: 0; word-break: keep-all; }
.bh-copy h1 { font-size: clamp(34px, 3.3vw, 56px) !important; }
.bh-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; min-height: 600px; padding-bottom: 10px; }
.bh-hero h1 em { background: linear-gradient(90deg, var(--bh-tone), var(--bh-tone2)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.bh-hero .lead { max-width: 560px; }
.bh-tags span { color: var(--bh-tone) !important; }
.bh-stage { transform: perspective(1600px) rotateY(-4deg); transition: transform .4s; }
.bh-stage:hover { transform: none; }
.bh-shot { background: #0b1925; aspect-ratio: 16 / 10; overflow: hidden; }
.bh-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.bh-stage .stage-kpis b { color: #f1f6fa; }

/* 달라지는 점 */
.bh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bh-stats article { background: var(--tw-panel); border: 1px solid var(--tw-border); border-radius: 10px; padding: 26px 24px; }
.bh-stats b { display: block; font-size: 34px; letter-spacing: -1px; font-weight: 800; color: var(--bh-tone); line-height: 1.2; }
.bh-stats small { display: block; font-size: 13px; font-weight: 700; color: var(--tw-ink); margin: 6px 0 12px; }
.bh-stats p { font-size: 13.5px; line-height: 1.8; color: var(--tw-muted); }

/* 핵심 기능 */
.bh-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bh-card { background: var(--tw-panel); border: 1px solid var(--tw-border); border-top: 2px solid var(--bh-tone); border-radius: 9px; padding: 28px; display: flex; flex-direction: column; }
.bh-card small { color: var(--bh-tone); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase; }
.bh-card h3 { font-size: 22px; letter-spacing: -.6px; margin: 16px 0 10px !important; }
.bh-card p { font-size: 13.5px; line-height: 1.9; color: var(--tw-muted); }
.bh-card ul, .bh-show ul { padding: 0; list-style: none; color: var(--tw-ink); opacity: .9; font-size: 12.5px; line-height: 2.3; margin: 18px 0 0; }
.bh-card li:before, .bh-show li:before { content: '+'; color: var(--bh-tone); margin-right: 9px; font-weight: 700; }

/* 화면 */
.bh-screens-wrap { background: linear-gradient(180deg, transparent, #ffffff06 18%, #ffffff06 82%, transparent); }
html[data-theme=light] .bh-screens-wrap { background: #e9f0f5; }
.bh-show { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; margin-bottom: 70px; }
.bh-show:last-child { margin-bottom: 0; }
.bh-show.flip { grid-template-columns: 1fr 1.35fr; }
.bh-show.flip figure { order: 2; }
.bh-show figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--tw-border); box-shadow: 0 30px 60px #0005; background: #fff; aspect-ratio: 16 / 10; }
html[data-theme=light] .bh-show figure { box-shadow: 0 20px 40px #18384d22; }
.bh-show img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.bh-show small { color: var(--bh-tone); font-size: 10px; letter-spacing: 1.6px; font-weight: 700; }
.bh-show h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.8px; line-height: 1.4; margin: 14px 0 14px !important; }
.bh-show p { font-size: 15px; line-height: 1.9; color: var(--tw-muted); }

/* 진행 방식 */
.bh-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.bh-flow li { position: relative; background: var(--tw-panel); border: 1px solid var(--tw-border); border-radius: 10px; padding: 24px 20px; }
.bh-flow li:not(:last-child):after { content: '→'; position: absolute; right: -13px; top: 28px; color: var(--bh-tone); font-weight: 700; z-index: 1; }
.bh-flow b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bh-tone); color: #10151c; font-size: 13px; }
html[data-theme=light] .bh-flow b { color: #fff; }
.bh-flow h3 { font-size: 17px; margin: 16px 0 8px !important; letter-spacing: -.3px; }
.bh-flow p { font-size: 13px; line-height: 1.8; color: var(--tw-muted); }

/* FAQ */
.bh-faq details { max-width: 1000px; }
.bh-faq details { border-bottom: 1px solid var(--tw-border); padding: 4px 0; }
.bh-faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; padding: 20px 36px 20px 0; position: relative; color: var(--tw-ink); }
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary:after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 24px; color: var(--bh-tone); transition: transform .2s; }
.bh-faq details[open] summary:after { transform: rotate(45deg); }
.bh-faq details p { font-size: 15px; line-height: 1.9; color: var(--tw-muted); padding: 0 0 22px; max-width: 880px; }

/* 도입 문의 */
#contact.twin-section { padding-top: 40px; }
.bh-contact { margin: 0 !important; align-items: flex-start !important; gap: 48px !important; border-color: var(--bh-glow) !important;
  background: linear-gradient(115deg, color-mix(in srgb, var(--bh-tone) 16%, #0f2230), #132433) !important; }
html[data-theme=light] .bh-contact { background: linear-gradient(115deg, color-mix(in srgb, var(--bh-tone) 10%, #fff), #eef3f8) !important; }
.bh-contact > div:first-child { flex: 1; }
.bh-contact > div:first-child > p:not(.eyebrow) { color: var(--tw-muted) !important; font-size: 15px !important; line-height: 1.9; max-width: 460px; }
.bh-contact > div:last-child { flex: 1.15; min-width: 0 !important; }
.bh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bh-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tw-ink); }
.bh-form .wide { grid-column: 1 / -1; }
.bh-form input:not([type=checkbox]), .bh-form textarea { background: #0b1925cc; border: 1px solid #ffffff26; color: #eef4fa; border-radius: 6px; padding: 12px 13px; font: inherit; font-size: 15px; font-weight: 400; }
html[data-theme=light] .bh-form input:not([type=checkbox]), html[data-theme=light] .bh-form textarea { background: #fff; border-color: #18384d33; color: #142e40; }
.bh-form input:focus, .bh-form textarea:focus { outline: 2px solid var(--bh-tone); outline-offset: 1px; }
.bh-form .bh-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--tw-muted); line-height: 1.6; }
.bh-form .bh-consent input { margin-top: 3px; accent-color: var(--bh-tone); }
.bh-form button { grid-column: 1 / -1; justify-self: start; cursor: pointer; font-family: inherit; }
.bh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bh-err { grid-column: 1 / -1; background: #4c1515; color: #fecaca; padding: 12px 16px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
html[data-theme=light] .bh-err { background: #fde8e8; color: #8a1c1c; }
.bh-ok { background: color-mix(in srgb, var(--bh-tone) 20%, transparent); border: 1px solid var(--bh-tone); color: var(--tw-ink); padding: 22px; border-radius: 10px; font-size: 15px; line-height: 1.8; }

/* 푸터 */
.bh-footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.bh-footer .brand img { border-radius: 7px; }
.bh-footer .company-contact { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.bh-footer .company-contact a, .bh-footer .maker a { display: inline; }

@media (max-width: 1100px) {
  .bh-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .bh-stage { transform: none; }
  .bh-stats { grid-template-columns: repeat(2, 1fr); }
  .bh-features { grid-template-columns: repeat(2, 1fr); }
  .bh-flow { grid-template-columns: repeat(2, 1fr); }
  .bh-flow li:after { display: none; }
  .bh-show, .bh-show.flip { grid-template-columns: 1fr; gap: 24px; }
  .bh-show.flip figure { order: 0; }
}
@media (max-width: 650px) {
  .bh-hero { padding: 28px 16px 0 !important; }
  .bh-stats, .bh-features, .bh-flow, .bh-form { grid-template-columns: 1fr; }
  .bh-contact { display: block !important; padding: 26px 20px !important; }
  .bh-contact > div:last-child { margin-top: 28px; }
  .bh-stage .stage-kpis { grid-template-columns: 1fr; gap: 10px; }
  .bh-stage .stage-kpis div { border-right: 0; }
  .twin-section { padding-left: 16px !important; padding-right: 16px !important; }
}

/* 공통 로고 — 실제 ProEye® 로고(다크 · 라이트) + 브랜드 꼬리. 두 홈(Safe · Biz) 같은 모양. */
.bh-logo-wrap { display: inline-flex; align-items: center; gap: 2px; font-style: normal; }
.page-brand .ft-brand img.bh-logo, .bh-footer img.bh-logo { border-radius: 0; height: 30px; width: auto; display: block; }
.bh-logo-l { display: none !important; }
html[data-theme=light] .bh-logo-d { display: none !important; }
html[data-theme=light] .bh-logo-l { display: block !important; }
.bh-suffix { font-size: 22px; font-weight: 800; letter-spacing: -.6px; color: #5cb0ff; margin-left: 2px; }
html[data-theme=light] .bh-suffix { color: #1f6fbf; }
.bh-footer .bh-logo-wrap { margin-bottom: 14px; }
@media (max-width: 850px) { .page-brand .ft-brand img.bh-logo { height: 24px; } .bh-suffix { font-size: 18px; } }

/* 로그인 상태(brand_session.js) — 인스턴스에 로그인돼 있으면 「로그인」 대신 이름 */
.ft-nav .ft-login.bh-signed { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; }
.ft-nav .ft-login.bh-signed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-nav .ft-login.bh-signed i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #22c55e33; flex: none; }
