@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
}

:root {
  --kb-font-display: 50px;
  --kb-font-hero: 40px;
  --kb-font-page-title: 32px;
  --kb-font-section-title: 24px;
  --kb-font-card-title: 18px;
  --kb-font-body: 15px;
  --kb-font-label: 13px;
  --kb-font-caption: 12px;
  --kb-leading-display: 1.14;
  --kb-leading-title: 1.28;
  --kb-leading-body: 1.65;
  --kb-tracking-title: -0.035em;

  --kb-ds-canvas: #f7f9fc;
  --kb-ds-surface: #ffffff;
  --kb-ds-surface-muted: #f1f5f9;
  --kb-ds-ink: #0f172a;
  --kb-ds-muted: #64748b;
  --kb-ds-line: #e2e8f0;
  --kb-ds-line-strong: #cbd5e1;
  --kb-ds-primary: #2563eb;
  --kb-ds-primary-strong: #1d4ed8;
  --kb-ds-primary-soft: #eff6ff;
  --kb-ds-navy: #0b1220;
  --kb-ds-navy-soft: #111c31;
  --kb-ds-success: #0f9f72;
  --kb-ds-radius-sm: 10px;
  --kb-ds-radius-md: 16px;
  --kb-ds-radius-lg: 22px;
  --kb-ds-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --kb-ds-shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
}

html {
  font-family: "Pretendard Variable" !important;
  font-size: 16px;
  font-synthesis: none !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after,
button,
input,
select,
textarea,
table,
thead,
tbody,
tfoot,
tr,
th,
td,
code,
pre,
kbd,
samp,
input::placeholder,
textarea::placeholder,
input::file-selector-button,
input::-webkit-file-upload-button {
  font-family: "Pretendard Variable" !important;
  font-synthesis: none !important;
}

body {
  font-size: var(--kb-font-body);
  line-height: var(--kb-leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

time,
.metric,
.balance,
.asset-total,
[data-balance-value],
.account-number,
.amount-credit,
.amount-debit,
.account-list-balance,
.transaction-table,
.table,
.certificate-mono,
.certificate-approval-code strong,
.document-code,
.confirmation-result,
input[inputmode="numeric"],
input[inputmode="decimal"],
input[autocomplete="one-time-code"] {
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

/* Fixed defaults. Later page styles may choose another explicit px token per breakpoint. */
.kb-hero-copy h1,
.home-hero h1,
.customer-surface .hero h1 {
  font-size: var(--kb-font-display);
  line-height: var(--kb-leading-display);
  letter-spacing: -0.045em;
}

.certificate-hero h1,
.document-hero h1 {
  font-size: var(--kb-font-hero);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.customer-surface .page-head h1,
.banking-page-head h1,
.profile-page-head h1,
.member-welcome h1,
.journey-heading h1,
.certificate-page-heading h1,
.document-page-heading h1,
.certificate-login-card__heading h1 {
  font-size: var(--kb-font-page-title);
  line-height: var(--kb-leading-title);
  letter-spacing: var(--kb-tracking-title);
}

.customer-surface .page-head h2,
.kb-products-head h2,
.kb-section-title h2,
.kb-board-title h2,
.member-card-head h2,
.member-section-head h2,
.journey-section-head h2,
.certificate-section__heading h2,
.document-section-heading h2,
.document-panel-heading h2,
.certificate-detail-card__header h2,
.certificate-info-panel h2,
.bank-search-results-head h2 {
  font-size: var(--kb-font-section-title);
  line-height: var(--kb-leading-title);
  letter-spacing: var(--kb-tracking-title);
}

.customer-surface .card h2,
.customer-surface .card h3,
.kb-insight-card h3,
.member-account-name h3,
.certificate-product-card h3,
.certificate-guide-grid h3,
.certificate-task-card h2,
.document-product-card h3,
.document-verification-callout h2,
.manual-copy h2,
.resource-copy h2 {
  font-size: var(--kb-font-card-title);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.customer-surface .page-head p,
.banking-page-head p,
.profile-page-head p,
.member-welcome p,
.journey-heading p,
.certificate-page-heading > p,
.certificate-page-heading > div > p:last-child,
.document-page-heading > div > p:last-child,
.certificate-hero__copy > p:not(.certificate-eyebrow),
.document-hero > div > p:last-child,
.kb-hero-copy > p {
  font-size: var(--kb-font-body);
  line-height: var(--kb-leading-body);
}

.kb-products-head > div > p,
.kb-section-title p,
.member-section-head > div > p,
.journey-section-head > p,
.certificate-section__heading > p,
.document-section-heading > p,
.document-panel-heading > p {
  font-size: 14px;
  line-height: 1.6;
}

/* Shared customer header */
.customer-surface .customer-utility,
.public-home .customer-utility {
  height: 38px;
  border-bottom: 0;
  background: var(--kb-ds-navy);
  color: #cbd5e1;
  font-size: var(--kb-font-caption);
}

.customer-utility .bank-utility-inner {
  height: 38px;
}

.customer-utility .bank-utility-inner nav {
  gap: 4px;
}

.customer-utility .bank-utility-inner nav a,
.customer-utility .secure-session {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: var(--kb-font-caption);
}

.customer-utility .bank-utility-inner nav:first-child a {
  padding-right: 10px;
  padding-left: 10px;
}

.customer-utility .bank-utility-inner nav:first-child a:first-child {
  padding-left: 10px;
}

.customer-utility .bank-utility-inner a:hover,
.customer-utility .bank-utility-inner a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.customer-utility .bank-utility-inner nav:first-child a.active::after {
  display: none;
}

.customer-utility .secure-session {
  color: #dbeafe;
}

.customer-utility .secure-session i {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.customer-header {
  top: 0;
  z-index: 50;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.customer-header .customer-brand-row {
  height: 72px;
  gap: 28px;
}

.customer-brand {
  gap: 11px;
  color: var(--kb-ds-ink) !important;
}

.customer-brand .brand-mark,
.public-home .public-brand .brand-mark,
.member-app .public-brand .brand-mark,
.customer-footer-grid .home-footer-brand .brand-mark {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  font-size: 20px;
  font-weight: 850;
}

.brand-wordmark {
  gap: 9px;
  color: var(--kb-ds-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand-wordmark small {
  padding-left: 9px;
  border-left-color: var(--kb-ds-line);
  color: var(--kb-ds-muted);
  font-size: var(--kb-font-caption);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.customer-header-actions {
  gap: 8px;
}

.header-search-button {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #475569;
  font-size: var(--kb-font-label);
}

.header-search-button:hover {
  background: var(--kb-ds-surface-muted);
  color: var(--kb-ds-ink);
}

.customer-header-actions .btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: var(--kb-font-label);
}

.customer-header-actions .btn-outline {
  border-color: var(--kb-ds-line-strong);
  background: #ffffff;
  color: #334155;
}

.customer-header-actions .btn-primary {
  border-color: var(--kb-ds-primary);
  background: var(--kb-ds-primary);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.18);
}

.customer-header-actions .btn-primary:hover {
  border-color: var(--kb-ds-primary-strong);
  background: var(--kb-ds-primary-strong);
}

.customer-header .member-avatar {
  border-radius: 10px;
  background: var(--kb-ds-primary-soft);
  color: var(--kb-ds-primary-strong);
}

.customer-primary-bar {
  height: 56px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
}

.customer-primary-inner {
  gap: 20px;
}

.customer-primary-list {
  gap: 4px;
}

.mega-menu-trigger {
  padding: 0 5px;
}

.customer-primary-nav .mega-parent-link {
  min-width: 0;
  padding: 3px 7px 0;
  border-radius: 9px;
  color: #334155;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.customer-primary-nav .mega-parent-link:hover,
.customer-primary-nav .mega-parent-link.active,
.mega-menu-item.is-open .mega-parent-link {
  background: var(--kb-ds-primary-soft);
  color: var(--kb-ds-primary-strong);
}

.mega-menu-trigger::after {
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--kb-ds-primary);
}

.mega-menu-toggle {
  width: 30px;
  height: 36px;
  border-radius: 9px;
  color: #64748b;
}

.mega-menu-toggle:hover,
.mega-menu-toggle[aria-expanded="true"] {
  background: var(--kb-ds-primary-soft);
  color: var(--kb-ds-primary-strong);
}

.nav-login-badge,
.auth-required-badge {
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: var(--kb-font-caption);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.nav-login-badge {
  top: 0;
  padding: 1px 6px;
}

.primary-support-link,
.primary-dashboard-link {
  border-left-color: var(--kb-ds-line);
  color: #475569;
  font-size: var(--kb-font-label);
}

.primary-support-link:hover,
.primary-dashboard-link:hover {
  color: var(--kb-ds-primary-strong);
}

/* Full-width hit area with a floating, card-like mega menu inside it. */
.customer-mega-panel {
  top: 100%;
  z-index: 60;
  padding: 10px 24px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-mega-panel[hidden] {
  display: none;
}

.customer-mega-inner {
  min-height: 292px;
  grid-template-columns: 255px minmax(0, 1fr);
  margin: 0 auto;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--kb-ds-radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kb-ds-shadow-lg);
}

.mega-menu-intro {
  padding: 36px 30px;
  border-right: 1px solid #dbeafe;
  background: linear-gradient(150deg, #eff6ff 0%, #eef2ff 100%);
}

.mega-menu-intro::before {
  display: none;
}

.mega-menu-intro > span {
  color: var(--kb-ds-primary-strong);
  font-size: var(--kb-font-caption);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mega-menu-intro h2 {
  margin: 9px 0 12px;
  color: var(--kb-ds-ink);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.mega-menu-intro p {
  max-width: 190px;
  color: #64748b;
  font-size: var(--kb-font-label);
  line-height: 1.65;
}

.customer-primary-nav .mega-menu-intro > a {
  min-height: 40px;
  margin-top: 24px;
  padding: 0 13px;
  border-color: #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--kb-ds-primary-strong);
  font-size: var(--kb-font-caption);
}

.mega-menu-groups {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  padding: 30px;
}

.mega-menu-group {
  padding: 3px 22px 8px;
  border-left-color: var(--kb-ds-line);
}

.mega-menu-group h3 {
  margin-bottom: 10px;
  color: #475569;
  font-size: var(--kb-font-label);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mega-menu-links {
  gap: 3px;
}

.customer-primary-nav .mega-menu-links > a {
  min-height: 50px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #1e293b;
}

.customer-primary-nav .mega-menu-links > a:hover,
.customer-primary-nav .mega-menu-links > a:focus-visible {
  background: var(--kb-ds-primary-soft);
  color: var(--kb-ds-primary-strong);
}

.mega-link-copy strong {
  font-size: 14px;
  font-weight: 750;
}

.mega-link-copy small {
  margin-top: 3px;
  color: #64748b;
  font-size: var(--kb-font-caption);
  line-height: 1.45;
}

.mega-menu-links > a > b {
  color: #94a3b8;
  font-size: 14px;
}

/* Mobile navigation uses the same information architecture. */
.customer-mobile-navigation > summary {
  border-color: var(--kb-ds-line-strong);
  border-radius: 11px;
  background: #ffffff;
}

.customer-mobile-navigation .mobile-navigation-panel {
  padding: 12px;
  border-color: var(--kb-ds-line);
  border-radius: var(--kb-ds-radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--kb-ds-shadow-lg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mobile-menu-section {
  border-bottom-color: var(--kb-ds-line);
}

.mobile-menu-section > summary {
  min-height: 50px;
  border-radius: 10px;
  color: #1e293b;
  font-size: 15px;
}

.mobile-menu-section[open] > summary {
  background: var(--kb-ds-primary-soft);
  color: var(--kb-ds-primary-strong);
}

.mobile-menu-section-body {
  margin: 3px 0 8px;
  padding: 9px;
  border-radius: 12px;
  background: #f8fafc;
}

.mobile-menu-overview {
  min-height: 44px;
  border-color: var(--kb-ds-line);
  border-radius: 9px;
  color: #1e293b;
  font-size: var(--kb-font-label);
}

.mobile-menu-group h3 {
  color: #64748b;
  font-size: var(--kb-font-caption);
}

.mobile-menu-group > a {
  min-height: 40px;
  border-radius: 8px;
  color: #334155;
  font-size: var(--kb-font-label);
}

.mobile-menu-group > a:hover {
  background: #eef2ff;
  color: #3730a3;
}

/* Shared customer footer */
.customer-footer {
  border: 0;
  background: var(--kb-ds-navy);
  color: #cbd5e1;
}

.customer-footer-service {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--kb-ds-navy-soft);
}

.customer-footer-service-inner {
  min-height: 104px;
  grid-template-columns: 245px 245px 1fr;
  gap: 28px;
}

.customer-footer-service-inner > div > span {
  color: #94a3b8;
  font-size: var(--kb-font-caption);
}

.customer-footer-service-inner strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 760;
}

.customer-footer-service-inner small,
.customer-footer-service-inner a {
  color: #94a3b8;
  font-size: var(--kb-font-caption);
}

.customer-footer-service-inner nav {
  gap: 9px;
}

.customer-footer-service-inner nav a {
  min-width: 98px;
  padding: 10px 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: var(--kb-font-caption);
  font-weight: 700;
}

.customer-footer-service-inner nav a:hover {
  border-color: rgba(147, 197, 253, 0.64);
  background: rgba(37, 99, 235, 0.14);
  color: #ffffff;
}

.customer-footer-grid {
  grid-template-columns: 1.45fr 0.7fr 0.7fr 1.1fr;
  gap: 46px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.customer-footer-grid .home-footer-brand {
  gap: 13px;
}

.customer-footer-grid .home-footer-brand strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.customer-footer-grid .home-footer-brand p {
  max-width: 280px;
  margin-top: 9px;
  color: #94a3b8;
  font-size: var(--kb-font-label);
  line-height: 1.65;
}

.customer-footer-grid > div > strong {
  margin-bottom: 15px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 760;
}

.customer-footer-grid > div > a,
.customer-footer-grid > div > span {
  color: #94a3b8;
  font-size: var(--kb-font-label);
  line-height: 1.55;
}

.customer-footer-grid > div > a:hover {
  color: #ffffff;
}

.customer-footer .home-footer-bottom {
  min-height: 66px;
  border-top-color: rgba(148, 163, 184, 0.18);
  color: #7f8da3;
  font-size: var(--kb-font-caption);
}

.customer-footer .home-footer-bottom nav {
  gap: 20px;
}

.customer-footer .home-footer-bottom nav a:first-child {
  color: #e2e8f0;
}

.customer-surface :focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1120px) and (min-width: 901px) {
  .customer-primary-nav .mega-parent-link {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 14px;
  }

  .customer-mega-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .mega-menu-groups {
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    padding: 25px 20px;
  }

  .mega-menu-group {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 900px) {
  .customer-header .customer-brand-row {
    height: 68px;
  }

  .customer-mobile-navigation .mobile-navigation-panel {
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100% - 90px);
  }

  .customer-footer-service-inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .customer-footer-service-inner nav {
    grid-column: 1 / -1;
  }

  .customer-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  :root {
    --kb-font-display: 34px;
    --kb-font-hero: 30px;
    --kb-font-page-title: 28px;
    --kb-font-section-title: 22px;
    --kb-font-card-title: 17px;
    --kb-font-body: 15px;
    --kb-font-label: 13px;
    --kb-font-caption: 12px;
  }

  .customer-header .customer-brand-row {
    height: 64px;
  }

  .customer-brand .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .customer-mobile-navigation .mobile-navigation-panel {
    top: 70px;
    right: 10px;
    left: 10px;
    max-height: calc(100% - 80px);
  }

  .customer-footer-service-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .customer-footer-service-inner nav {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .customer-footer-service-inner nav a {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .customer-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .customer-footer-grid .home-footer-brand,
  .customer-footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .customer-footer .home-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .customer-footer .home-footer-bottom nav {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-header *,
  .customer-header *::before,
  .customer-header *::after,
  .customer-footer *,
  .customer-footer *::before,
  .customer-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
