:root { --site-header-height: 80px; }
.site-header {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: var(--site-header-height);
  color: #17243a;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid #e2e9f4;
  box-shadow: 0 2px 7px rgb(20 58 107 / 6%);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header [hidden] { display: none !important; }
.site-header-container { height: 100%; max-width: 1920px; margin-inline: auto; padding-inline: clamp(24px, 3.1vw, 64px); }
.site-header-inner { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(350px, 1fr); align-items: center; height: 100%; gap: clamp(24px, 3vw, 56px); }
.site-header a { color: inherit; text-decoration: none; }
.site-header button { font: inherit; cursor: pointer; }
.site-header-brand { display: inline-flex; align-items: center; justify-self: start; gap: 13px; font-size: 25px; font-weight: 800; letter-spacing: -.045em; }
.site-header-brand img { display: block; flex: none; width: 43px; height: 43px; border-radius: 10px; }
.site-header-menu { position: relative; display: flex; align-items: center; gap: clamp(7px, 1.1vw, 22px); }
.site-header-group { position: static; }
.site-header .site-header-trigger, .site-header .site-header-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #344258;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: transform 280ms cubic-bezier(.2,.85,.3,1.25), color 220ms ease, background-color 220ms ease;
}
.site-header-label { display: inline-block; }
.site-header-chevron { flex: none; color: #7c8ba3; transition: transform 240ms ease; }
.site-header-trigger[aria-expanded="true"] { color: #146eeb; background: #eef5ff; }
.site-header-trigger[aria-expanded="true"] .site-header-chevron { transform: rotate(180deg); }
.site-header-trigger:focus-visible, .site-header-flat:focus-visible { color: #146eeb; background: #edf4ff; transform: scale(1.1); }
.site-header-trigger:active, .site-header-flat:active { transform: scale(.95); }
.site-header-panel {
  position: fixed;
  /* Touch the header edge so pointer travel into the panel has no dead gap. */
  top: var(--site-header-height);
  left: max(24px, calc((100vw - 1000px) / 2));
  right: max(24px, calc((100vw - 1000px) / 2));
  max-height: calc(100svh - var(--site-header-height) - 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dde7f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(26 57 99 / 11%);
  animation: site-header-panel-in 220ms cubic-bezier(.22,1,.36,1) both;
}
.site-header-panel-inner { display: grid; grid-template-columns: 166px 1fr; min-width: 0; }
.site-header-rail { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 18px 12px; background: #f6f9fe; }
.site-header-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 18px 16px; min-width: 0; }
.site-header-col { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
/* Draw between existing grid rows without increasing the compact menu height. */
.site-header-cols > .site-header-col:nth-child(n+4)::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -6px;
  right: -6px;
  height: 1px;
  background: #dce6f4;
  pointer-events: none;
}
.site-header-cols > .site-header-col:nth-child(3n+4)::before { left: 0; right: calc(-200% - 24px); }
.site-header-col-label { margin: 0 0 4px; color: #73849c; font-size: 13px; font-weight: 700; line-height: 1.35; letter-spacing: .035em; }
.site-header-sub, .site-header-rail-link { padding: 5px 7px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; transition: color 180ms ease, background-color 180ms ease; }
.site-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.site-header-login, .site-header-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid #c9d7eb;
  border-radius: 11px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 260ms cubic-bezier(.2,.85,.3,1.25), background-color 180ms ease, box-shadow 220ms ease;
}
.site-header .site-header-signup { color: #fff; background: #2b74fb; border-color: #2b74fb; }
.site-header-login:active, .site-header-signup:active { transform: scale(.95); }
.site-header-mobile-actions, .site-header-mobile-links { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 3px solid #8dbbff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .site-header-trigger:hover, .site-header-flat:hover { color: #146eeb; background: #edf4ff; transform: scale(1.1); }
  .site-header-trigger:active, .site-header-flat:active { transform: scale(.95); }
  .site-header-login:hover, .site-header-signup:hover { transform: scale(1.06); box-shadow: 0 6px 14px rgb(29 83 155 / 12%); }
  .site-header-login:hover { background: #f6f9fe; }
  .site-header .site-header-signup:hover { background: #1765f1; }
  .site-header-sub:hover, .site-header-rail-link:hover { color: #146eeb; background: #eaf3ff; }
}
@keyframes site-header-panel-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1199px) {
  :root { --site-header-height: 72px; }
  .site-header-container { padding-inline: clamp(14px, 3vw, 30px); }
  .site-header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .site-header-brand { gap: 10px; font-size: 23px; }
  .site-header-brand img { width: 38px; height: 38px; border-radius: 9px; }
  .site-header-actions { display: none; }
  .site-header-mobile-actions { display: flex; align-items: center; gap: 10px; }
  .site-header-mobile-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: #2b74fb; color: #fff !important; font-size: 15px; font-weight: 700; transition: transform 180ms ease; }
  .site-header-mobile-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #dce5f2; border-radius: 11px; background: #fff; color: #283954; }
  .site-header-menu-close { display: none; }
  .site-header-mobile-toggle[aria-expanded="true"] .site-header-menu-open { display: none; }
  .site-header-mobile-toggle[aria-expanded="true"] .site-header-menu-close { display: block; }
  .site-header-menu {
    display: none;
    position: fixed;
    top: calc(var(--site-header-height) + 8px);
    left: 12px;
    right: 12px;
    max-height: calc(100svh - var(--site-header-height) - 20px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid #dce7f6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgb(27 55 94 / 12%);
    animation: site-header-panel-in 220ms cubic-bezier(.22,1,.36,1) both;
  }
  .site-header[data-mobile-open="true"] .site-header-menu { display: flex; }
  .site-header .site-header-trigger, .site-header .site-header-flat { width: 100%; justify-content: space-between; min-height: 48px; padding-inline: 14px; font-size: 20px; }
  .site-header-trigger:focus-visible, .site-header-flat:focus-visible { transform: none; }
  .site-header-trigger:active, .site-header-flat:active, .site-header-mobile-cta:active { transform: scale(.97); }
  .site-header-panel { position: static; max-height: none; margin-top: 6px; overflow: visible; border-radius: 12px; box-shadow: none; }
  .site-header-panel-inner { grid-template-columns: 1fr; }
  .site-header-rail { position: relative; padding: 10px; gap: 2px; }
  .site-header-rail::after { content: ''; position: absolute; bottom: 0; left: 10px; right: 10px; height: 1px; background: #dce6f4; pointer-events: none; }
  .site-header-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 12px 10px; }
  .site-header-cols > .site-header-col:nth-child(n+3)::before { content: ''; position: absolute; top: -7px; left: -5px; right: -5px; height: 1px; background: #dce6f4; pointer-events: none; }
  .site-header-cols > .site-header-col:nth-child(2n+3)::before { left: 0; right: calc(-100% - 10px); }
  .site-header-sub, .site-header-rail-link { padding: 5px; font-size: 14px; line-height: 1.4; }
  .site-header-col-label { font-size: 12px; }
  .site-header-mobile-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; padding-top: 14px; border-top: 1px solid #e6edf6; }
  .site-header-mobile-links a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 3px; border-radius: 9px; background: #edf4ff; color: #146eeb; font-size: 14px; font-weight: 700; }
}
@media (max-width: 380px) {
  .site-header-brand { gap: 8px; font-size: 20px; }
  .site-header-brand img { width: 34px; height: 34px; border-radius: 8px; }
  .site-header-mobile-actions { gap: 8px; }
  .site-header-mobile-cta { padding-inline: 12px; font-size: 14px; }
  .site-header-cols { grid-template-columns: 1fr; }
  .site-header-cols > .site-header-col:nth-child(n+2)::before { content: ''; position: absolute; top: -7px; left: 0; right: 0; height: 1px; background: #dce6f4; pointer-events: none; }
}
/* Keep all three actions in the existing top-right header, at every width. */
@media (max-width: 1199px) {
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-header-actions { display: flex; }
  .site-header-mobile-actions .site-header-mobile-cta { display: none; }
}
@media (max-width: 600px) {
  .site-header-container { padding-inline:12px; }
  .site-header-inner { grid-template-columns:minmax(0,1fr) auto 44px; gap:8px; }
  .site-header-brand { font-size:18px; gap:8px; }
  .site-header-brand img { width:32px; height:32px; border-radius:8px; }
  .site-header-actions { justify-self:end; }
  .site-header-actions .header-action-link { font-size:13px; padding-inline:6px; }
}
@media (max-width:380px) {
  .site-header-brand span { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header-menu, .site-header-panel { animation: none; }
  .site-header *, .site-header *::before, .site-header *::after { transition: none !important; }
  .site-header-trigger:hover, .site-header-flat:hover, .site-header-login:hover, .site-header-signup:hover,
  .site-header-trigger:focus-visible, .site-header-flat:focus-visible,
  .site-header-trigger:active, .site-header-flat:active, .site-header-login:active, .site-header-signup:active, .site-header-mobile-cta:active { transform: none; }
}

/* Public registry supplies compact intro/integration panels and real app marks. */
.site-header-panel-inner.site-header-panel-inner--no-rail { grid-template-columns:minmax(0,1fr); }
.site-header a.site-header-icon-link { display:flex; align-items:center; gap:12px; }
.site-header-icon-link img { width:32px; height:32px; flex:none; object-fit:contain; }

/* Match public feature-page mega menus: one wide grid with icon links. */
.site-header-panel { left:0; right:0; border-radius:0; border:0; border-bottom:1px solid #e2e9f4; box-shadow:none; }
.site-header-panel-inner { max-width:1320px; margin-inline:auto; }
.site-header-cols { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:26px; padding:28px 24px 32px; }
.site-header-col-label { border-bottom:1px solid #dce6f4; padding-bottom:8px; margin-bottom:12px; }
.site-header-panel .site-header-cols > .site-header-col::before { content:none; }
/* Size each desktop menu around its existing category columns. */
@media(min-width:1200px) {
  #ms-panel-product { --menu-width:1120px; --menu-columns:6; }
  #ms-panel-integration { --menu-width:640px; --menu-columns:2; }
  #ms-panel-company { --menu-width:880px; --menu-columns:4; }
  .site-header-panel { left:50%; right:auto; width:min(var(--menu-width),calc(100vw - 48px)); transform:translateX(-50%); border:1px solid #dde7f5; border-radius:12px; animation:none; }
  .site-header-panel .site-header-cols { grid-template-columns:repeat(var(--menu-columns),minmax(0,1fr)); gap:24px; padding:24px; }
}
@media(max-width:1199px) { .site-header-panel { border:1px solid #dde7f5; border-radius:12px; } .site-header-cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; padding:12px 10px; } }
@media(max-width:380px) { .site-header-cols { grid-template-columns:minmax(0,1fr); } }

/* Shared C widget: src/styles/marketing-category-nav.ts. */

.ms-category-nav {
  width: 100%; min-width: 0; container: marketing-categories / inline-size;
  color: var(--neutral-800, #17243a); background: #fff; text-align: left;
}
.ms-category-nav, .ms-category-nav * { box-sizing: border-box; }
.ms-category-nav .ms-category-nav__layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-width: 0; }
.ms-category-nav .ms-category-nav__tabs {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 18px 12px; background: var(--neutral-50, #f7faff);
  border-right: 1px solid var(--brand-100, #e3ebf7);
}
.ms-category-nav .ms-category-nav__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 38px; margin: 0; padding: 8px 12px;
  border: 0; border-radius: var(--r-lg, 12px); cursor: pointer;
  background: transparent; color: var(--neutral-600, #617b9d);
  font: inherit; font-size: 14px; font-weight: 650; line-height: 1.4;
  letter-spacing: -.035em; text-align: left; word-break: keep-all;
  transition: color 180ms ease, background-color 180ms ease;
}
.ms-category-nav .ms-category-nav__tab[aria-selected="true"] {
  color: var(--brand-700, #176eef); background: var(--brand-50, #e6f0ff); font-weight: 750;
}
.ms-category-nav .ms-category-nav__arrow { color: var(--brand-500, #669deb); font-size: 20px; line-height: 1; opacity: 0; }
.ms-category-nav .ms-category-nav__tab[aria-selected="true"] .ms-category-nav__arrow { opacity: 1; }
.ms-category-nav .ms-category-nav__panels { min-width: 0; min-height: 0; padding: 20px; }
.ms-category-nav .ms-category-nav__panel { min-width: 0; margin: 0; }
.ms-category-nav .ms-category-nav__panel + .ms-category-nav__panel { margin-top: 32px; }
.ms-category-nav[data-category-initialized="true"] .ms-category-nav__panel { margin-top: 0; }
.ms-category-nav .ms-category-nav__panel[hidden] { display: none; }
.ms-category-nav .ms-category-nav__title {
  margin: 0 0 14px; padding: 0; color: #111; font: inherit;
  font-size: 20px; font-weight: 750; line-height: 1.35; letter-spacing: -.05em;
}
.ms-category-nav .ms-category-nav__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; min-width: 0; }
.ms-category-nav a.ms-category-nav__link {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  min-width: 0; min-height: 44px; margin: 0; padding: 7px 10px;
  border: 0; border-radius: var(--r-md, 8px); background: transparent;
  color: #111; font: inherit; font-size: 16px;
  font-weight: 650; line-height: 1.35; letter-spacing: -.035em;
  text-align: left; white-space: normal; text-decoration: none; word-break: keep-all; overflow-wrap: anywhere;
  transition: color 180ms ease, background-color 180ms ease;
}
.ms-category-nav a.ms-category-nav__link::before, .ms-category-nav a.ms-category-nav__link::after { content: none; }
.ms-category-nav .ms-category-nav__icon, .ms-category-nav .ms-page-menu-icon { display: block; width: 30px; height: 30px; flex: none; object-fit: contain; }
.ms-category-nav .ms-category-nav__copy { min-width: 0; }
.ms-category-nav .ms-category-nav__label { display: block; }
.ms-category-nav :where(button, a, [role="tabpanel"]):focus-visible { outline: 3px solid var(--brand-300, #7fb8ff); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .ms-category-nav .ms-category-nav__tab:hover { color: var(--brand-700, #176eef); background: var(--brand-50, #edf5ff); }
  .ms-category-nav a.ms-category-nav__link:hover { color: #111; background: var(--brand-50, #edf5ff); }
}
@container marketing-categories (max-width: 700px) {
  .ms-category-nav .ms-category-nav__layout { grid-template-columns: minmax(0, 1fr); }
  .ms-category-nav .ms-category-nav__tabs { flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; gap: 6px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--brand-100, #e3ebf7); scrollbar-width: thin; }
  .ms-category-nav .ms-category-nav__tab { flex: none; width: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .ms-category-nav .ms-category-nav__arrow { display: none; }
  .ms-category-nav .ms-category-nav__panels { min-height: 0; padding: 20px 16px; }
  .ms-category-nav .ms-category-nav__title { font-size: 20px; margin-bottom: 12px; }
  .ms-category-nav .ms-category-nav__links { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ms-category-nav a.ms-category-nav__link { min-height: 44px; padding: 7px 10px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-category-nav .ms-category-nav__tab, .ms-category-nav a.ms-category-nav__link { transition: none; }
}

.site-header-panel .site-header-panel-inner.site-header-panel-inner--categories { display:block; padding:0; overflow:hidden; }
.site-header:not([data-initialized="true"]) .site-header-panel { display:none; }
.site-header:not([data-initialized="true"]) .site-header-group:hover .site-header-panel,
.site-header:not([data-initialized="true"]) .site-header-group:focus-within .site-header-panel { display:block !important; }

/* Shared menu sizing: src/styles/marketing-menu-sizing.ts. */

:is(.site-header, .ms-nav) :is(#ms-panel-product, #ms-panel-integration, #ms-panel-company) { --menu-width: 960px; }
:is(.site-header, .ms-nav) :is(.site-header-panel, .ms-nav-panel, .ms-mobile-panel) { box-sizing: border-box; min-width: 0; overflow-x: hidden; }
.site-header .site-header-panel .site-header-panel-inner { max-width: 960px; min-width: 0; padding: 0; }
.site-header .site-header-panel .site-header-cols,
.ms-nav .ms-nav-panel .ms-nav-panel-inner { padding: 20px; gap: 20px; }
.ms-nav .ms-nav-panel .ms-nav-cols { min-width: 0; gap: 20px; }
.site-header .site-header-panel .site-header-col,
.ms-nav .ms-nav-panel .ms-nav-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 2px; }
.site-header .site-header-panel .site-header-col-label,
.ms-nav .ms-nav-panel .ms-nav-col-label { margin: 0 0 8px; padding: 0 0 8px; font-size: 14px; line-height: 1.4; letter-spacing: 0; border-bottom: 1px solid var(--brand-100, #dce6f4); }
.site-header .site-header-panel a.site-header-sub,
.ms-nav .ms-nav-panel .ms-nav-cols a.ms-nav-sub,
.ms-nav .ms-mobile-menu .ms-mobile-panel a.ms-mobile-link { display: flex; align-items: center; justify-content: flex-start; min-width: 0; min-height: 44px; gap: 10px; margin: 0; padding: 7px 8px; color: #111; font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.site-header .site-header-panel .ms-category-nav a.ms-category-nav__link,
.ms-nav .ms-nav-panel .ms-category-nav a.ms-category-nav__link,
.ms-nav .ms-mobile-panel .ms-category-nav a.ms-category-nav__link { color: #111; font-size: 16px; min-height: 44px; gap: 10px; }
.site-header .site-header-panel a.site-header-icon-link img { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.ms-nav .ms-nav-panel a.ms-nav-sub::before,
.ms-nav .ms-mobile-panel a.ms-mobile-link::before { flex-basis: 30px; width: 30px; height: 30px; }
.site-header .site-header-panel .site-header-panel-inner.site-header-panel-inner--categories,
.ms-nav .ms-nav-panel .ms-nav-panel-inner.ms-nav-panel-inner--categories { padding: 0; gap: 0; }
.site-header .site-header-actions,
.ms-nav .ms-nav-actions { flex-wrap: nowrap; white-space: nowrap; }
@media (min-width: 1200px) {
  .site-header .site-header-panel { left: 50%; right: auto; width: min(960px, calc(100vw - 48px)); transform: translateX(-50%); }
  .site-header .site-header-panel .site-header-cols { grid-template-columns: repeat(var(--menu-columns), minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .ms-nav .ms-nav-panel { left: 50%; right: auto; width: min(960px, calc(100vw - 48px)); transform: translateX(-50%); }
  .ms-nav .ms-nav-panel .ms-nav-cols { grid-template-columns: repeat(var(--menu-columns), minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .site-header .site-header-menu { min-width: 0; overflow-x: hidden; }
}
@media (max-width: 1024px) {
  .ms-nav .ms-mobile-panel { min-width: 0; overflow-x: hidden; }
}
@media (hover: hover) and (pointer: fine) {
  .site-header .site-header-panel a.site-header-sub:hover,
  .ms-nav .ms-nav-panel .ms-nav-cols a.ms-nav-sub:hover,
  .ms-nav .ms-mobile-menu .ms-mobile-panel a.ms-mobile-link:hover { color: #111; background: var(--brand-50, #edf5ff); }
}
