/* 솔루션 목록 페이지: 상단 바로가기, 행사 유형 고르기, 카드, 데모, 비교 */
.hb_page h2, .hb_page h3, .hb-card h3, .hb_demos h2 { font-family: inherit; }
.hb_page [id] { scroll-margin-top: 92px; }

/* 상단 바로가기 */
.hb_quick { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: 0 34px 70px -30px rgba(0,0,0,.65); }
.hb_quick ul { display: grid; margin: 0; padding: 8px; list-style: none; }
.hb_quick a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #fff; transition: background .15s ease; }
.hb_quick a:hover { background: rgba(255,255,255,.1); }
.hb_quick a:focus-visible { outline: 2px solid var(--rd-gold, #D8A82A); outline-offset: -2px; }
.hb_quick_i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); font-size: 18px; color: var(--rd-gold, #D8A82A); }
.hb_quick_t { min-width: 0; }
.hb_quick_t b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.hb_quick_t small { display: block; margin-top: 1px; font-size: 12.5px; color: #B9C7DE; }
.hb_quick_a { font-size: 18px; color: #9FB0CC; transition: transform .15s ease; }
.hb_quick a:hover .hb_quick_a { transform: translateX(3px); color: #fff; }

/* 행사 유형 고르기 */
.hb_finder { padding: 88px 0 72px; }
.hb_filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hb_filter_b { min-height: 46px; padding: 0 22px; border: 1px solid #D5DEEA; border-radius: 100px; background: #fff; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--rd-navy, #0B1B3B); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.hb_filter_b:hover { border-color: #1A4FD6; }
.hb_filter_b.is-on { border-color: var(--rd-navy, #0B1B3B); background: var(--rd-navy, #0B1B3B); color: #fff; }
.hb_filter_b:focus-visible { outline: 3px solid #1A4FD6; outline-offset: 2px; }
.hb_hint { max-width: 720px; min-height: 52px; margin: 18px auto 30px; text-align: center; font-size: 15.5px; line-height: 1.65; color: var(--rd-muted, #5B6B82); word-break: keep-all; }
.hb_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hb_grid.is-few { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.hb_note { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: #7A889C; }

/* 카드 */
.hb-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rd-border, #EAEEF4); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px -22px rgba(11,27,59,.25); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hb-card[hidden] { display: none; }
.hb-card:hover { transform: translateY(-4px); border-color: #C9D8F5; box-shadow: 0 24px 50px -26px rgba(11,27,59,.35); }
.hb-shot { padding: 18px 18px 0; background: linear-gradient(180deg, #EDF2FB, #F7F9FD); }
.hb-win { height: 186px; overflow: hidden; border: 1px solid #DFE6F1; border-bottom: 0; border-radius: 12px 12px 0 0; background: #fff; font-size: 12.5px; color: var(--rd-navy, #0B1B3B); }
.hb-bar { display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px; border-bottom: 1px solid #EDF1F7; background: #F8FAFD; }
.hb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #D4DCE8; }
.hb-bar span { margin-left: 6px; overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; color: #7A889C; }
.hb-win-b { display: grid; align-content: start; gap: 6px; padding: 10px; }
.hb-card-b { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.hb-for { font-size: 12.5px; font-weight: 800; color: #1A4FD6; }
.hb-card h3 { margin: 5px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.hb-link { color: var(--rd-navy, #0B1B3B); text-decoration: none; }
.hb-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.hb-link:focus-visible { outline: 0; }
.hb-link:focus-visible::after { outline: 3px solid #1A4FD6; outline-offset: -3px; }
.hb-card-b p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--rd-muted, #5B6B82); word-break: keep-all; }
.hb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.hb-tags li { padding: 4px 10px; border-radius: 100px; background: #F0F4FA; font-size: 12.5px; font-weight: 600; color: #3A4759; }
.hb-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; margin-top: auto; }
.hb-more { font-size: 15px; font-weight: 700; color: var(--rd-blue, #1A4FD6); }
.hb-more i { margin-left: 3px; transition: transform .15s ease; }
.hb-card:hover .hb-more i { transform: translateX(3px); }
.hb-demo { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border: 1px solid #E0C068; border-radius: 9px; background: #FFF9E8; font-size: 13.5px; font-weight: 800; text-decoration: none; color: #7A5A00; transition: background .15s ease; }
.hb-demo:hover { background: #FFF1C9; color: #7A5A00; }
.hb-demo:focus-visible { outline: 3px solid #1A4FD6; outline-offset: 2px; }

/* 카드 안 예시 화면 */
.hb-r { display: flex; align-items: center; gap: 8px; min-height: 29px; padding: 4px 9px; border: 1px solid #E8EDF4; border-radius: 8px; background: #fff; font-weight: 600; }
.hb-r > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-r em { flex-shrink: 0; margin-left: auto; padding: 1px 7px; border-radius: 100px; background: #EEF2F8; font-size: 10.5px; font-style: normal; font-weight: 700; color: #5B6B82; }
.hb-r em.ok { background: #E3F7EF; color: #047857; }
.hb-r em.blue { background: #E7EEFF; color: #1A4FD6; }
.hb-r em.warn { background: #FFF1E2; color: #C2570C; }
.hb-r em.code { margin-left: 0; background: #E7EEFF; color: #1A4FD6; }
.hb-r.is-sel { border-color: #A9BFF5; background: #F3F6FF; }
.hb-col2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.hb-badge { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border: 1px solid #DCE3EE; border-top: 5px solid #1A4FD6; border-radius: 8px; text-align: center; }
.hb-badge small { font-size: 9px; color: #66758C; white-space: nowrap; }
.hb-badge b { margin-top: 3px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.hb-badge span { font-size: 10px; color: #3A4759; }
.hb-badge i { margin-top: 3px; font-size: 40px; line-height: 1; }
.hb-stack { display: grid; align-content: start; gap: 6px; min-width: 0; }
.hb-site-h { display: flex; align-items: center; gap: 9px; font-size: 10.5px; color: #66758C; }
.hb-site-h b { margin-right: auto; font-size: 13px; font-weight: 800; color: var(--rd-navy, #0B1B3B); }
.hb-site-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 11px; border-radius: 9px; background: linear-gradient(135deg, #0B1B3B, #1A4FD6); color: #fff; }
.hb-site-m b { font-size: 13px; font-weight: 800; }
.hb-site-b { flex-shrink: 0; padding: 3px 8px; border-radius: 6px; background: var(--rd-gold, #D8A82A); font-size: 10.5px; font-weight: 800; color: #0B1B3B; }
.hb-lang { display: flex; gap: 4px; font-size: 10.5px; font-weight: 700; color: #66758C; }
.hb-lang span { padding: 2px 8px; border-radius: 100px; background: #F0F4FA; }
.hb-lang .on { background: #1A4FD6; color: #fff; }
.hb-sub { padding: 6px 9px; border-radius: 8px; background: #F4F7FB; font-size: 12px; line-height: 1.4; color: #66758C; word-break: keep-all; }
.hb-sub.is-now { background: #0B1B3B; font-size: 13px; font-weight: 700; color: #fff; }
.hb-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.hb-wave i { width: 3px; height: 8px; border-radius: 2px; background: #1A4FD6; }
.hb-wave i:nth-child(2n) { height: 14px; }
.hb-wave i:nth-child(3n) { height: 5px; }
.hb-wave span { margin-left: 6px; font-size: 10.5px; color: #66758C; }
.hb-queue { display: grid; justify-items: center; gap: 3px; padding-top: 6px; text-align: center; }
.hb-queue small { font-size: 11px; font-weight: 700; color: #66758C; }
.hb-queue b { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: #1A4FD6; font-variant-numeric: tabular-nums; }
.hb-queue span { font-size: 12px; color: #3A4759; }
.hb-prog { width: 100%; height: 6px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #E8EDF4; }
.hb-prog i { display: block; width: 72%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1A4FD6, #0FA3D9); }
.hb-search { display: flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 10px; border: 1px solid #CFD8E5; border-radius: 8px; color: #7A889C; }

/* 카드가 보일 때 한 번 움직인다. 스크립트가 없거나 동작 줄이기면 그대로 보인다. */
.js-hub .hb-a { opacity: 0; transform: translateY(7px); }
.js-hub .hb-card.is-in .hb-a { opacity: 1; transform: none; transition: opacity .38s ease, transform .38s ease; transition-delay: calc(var(--i, 0) * .12s + .08s); }
.hb-card:hover .hb-prog i { width: 86%; }
.hb-prog i { transition: width .5s ease; }

/* 데모 */
.hb_demos { padding: 72px 0; background: var(--rd-navy, #0B1B3B); color: #fff; }
.hb_tag { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--rd-gold, #D8A82A); }
.hb_demos h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.28; letter-spacing: -.03em; color: #fff; word-break: keep-all; }
.hb_demos_d { max-width: 760px; margin: 0 0 30px; font-size: 16.5px; line-height: 1.7; color: #B9C7DE; word-break: keep-all; }
.hb_demos_g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hb_demo_c { display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.05); text-decoration: none; color: #fff; transition: background .15s ease, transform .15s ease; }
.hb_demo_c:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); color: #fff; }
.hb_demo_c:focus-visible { outline: 3px solid var(--rd-gold, #D8A82A); outline-offset: 2px; }
.hb_demo_c > i { font-size: 24px; color: var(--rd-gold, #D8A82A); }
.hb_demo_c b { margin-top: 12px; font-size: 19px; font-weight: 800; }
.hb_demo_c span { margin: 6px 0 16px; font-size: 14.5px; line-height: 1.6; color: #B9C7DE; word-break: keep-all; }
.hb_demo_c em { margin-top: auto; font-size: 14.5px; font-style: normal; font-weight: 800; color: var(--rd-gold, #D8A82A); }

/* 비교 */
.hb_compare { padding: 88px 0 88px; }
.hb_pairs { display: grid; gap: 16px; }
.hb_pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--rd-border, #E1E7F0); border-radius: 14px; background: #fff; }
.hb_pair a { display: flex; flex-direction: column; padding: 22px 26px; text-decoration: none; transition: background .15s ease; }
.hb_pair a + a { border-left: 1px solid var(--rd-border, #E1E7F0); }
.hb_pair a:hover { background: #F6F8FC; }
.hb_pair a:focus-visible { outline: 3px solid #1A4FD6; outline-offset: -3px; }
.hb_pair b { font-size: 17.5px; font-weight: 800; color: var(--rd-navy, #0B1B3B); }
.hb_pair span { margin: 6px 0 10px; font-size: 15px; line-height: 1.6; color: var(--rd-muted, #5B6B82); word-break: keep-all; }
.hb_pair em { margin-top: auto; font-size: 14px; font-style: normal; font-weight: 700; color: var(--rd-blue, #1A4FD6); }

@media (max-width: 1024px) {
  .hb_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb_demos_g { grid-template-columns: minmax(0, 1fr); }
  .hb_demo_c { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 18px 20px; }
  .hb_demo_c > i { grid-row: 1 / 3; }
  .hb_demo_c b { margin: 0; font-size: 17px; }
  .hb_demo_c span { grid-column: 2; margin: 2px 0 0; }
  .hb_demo_c em { grid-column: 3; grid-row: 1 / 3; margin: 0; white-space: nowrap; }
}
@media (max-width: 768px) {
  .hb_finder { padding: 60px 0 52px; }
  .hb_quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px; }
  .hb_quick a { grid-template-columns: minmax(0, 1fr); gap: 7px; min-height: 96px; align-content: start; padding: 11px; background: rgba(255,255,255,.04); }
  .hb_quick_a { display: none; }
  .hb_quick_i { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
  .hb_quick_t b { font-size: 14px; }
  .hb_quick_t small { font-size: 11.5px; word-break: keep-all; }
  .hb_filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb_filter_b { padding: 0 8px; font-size: 14.5px; }
  .hb_hint { min-height: 76px; margin: 14px 0 18px; font-size: 14.5px; }
  .hb_grid, .hb_grid.is-few { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hb_compare { padding: 60px 0; }
  .hb_pair { grid-template-columns: minmax(0, 1fr); }
  .hb_pair a { padding: 18px 20px; }
  .hb_pair a + a { border-left: 0; border-top: 1px solid var(--rd-border, #E1E7F0); }
  .hb_demos { padding: 56px 0; }
  .hb_demo_c { grid-template-columns: 30px minmax(0, 1fr); }
  .hb_demo_c em { grid-column: 2; grid-row: auto; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-card, .hb_quick a, .hb_quick_a, .hb-more i, .hb_demo_c, .hb-prog i { transition: none; }
  .hb-card:hover, .hb_demo_c:hover { transform: none; }
}
