/*
 * SPA-aligned public header (Kommai). Matches kommai-fe marketing shell.
 * Typography uses Noir Pro (@font-face in assets/fonts/noir-pro/style.css).
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--kommai-font-sans);
  font-size: 14px;
  color: #475259;
  background-color: rgb(246, 247, 249);
  min-height: 100vh;
}

.drawer-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding-top: 32px;
  margin-top: 20px;
  pointer-events: none;
}

.public-header * {
  pointer-events: auto;
}

@media (min-width: 600px) {
  .public-header {
    margin-top: 20px;
  }
}

@media (min-width: 900px) {
  .public-header {
    padding-top: 32px;
    margin-top: 32px;
  }
}

.header-container {
  max-width: 1536px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.toolbar {
  position: relative;
  min-height: 48px;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  flex-shrink: 0;
  border-radius: calc(16px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(194, 201, 214, 0.4);
  background-color: rgba(246, 247, 249, 0.7);
  box-shadow:
    rgba(9, 11, 17, 0.07) 0px 4px 16px 0px,
    rgba(19, 23, 32, 0.07) 0px 8px 16px -5px;
  padding: 8px 12px;
}

.toolbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .toolbar-right {
    gap: 16px;
  }
}

.logo-link {
  display: inline-block;
  padding: 0;
  margin: 0;
  line-height: 0;
  text-decoration: none;
}

.logo-wrap {
  position: relative;
  display: inline-block;
}

.logo-wrap svg {
  height: 34px;
  width: auto;
  vertical-align: middle;
}

.beta-badge {
  position: absolute;
  top: -3px;
  right: -8px;
  width: 30px;
  height: 10px;
  background-color: rgb(95, 97, 242);
  border-radius: 80px;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  color: white;
  font-size: 8px;
}

.nav-desktop {
  display: none;
  align-items: center;
  padding-left: 22px;
  gap: 8px;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  box-sizing: border-box;
  font-family: var(--kommai-font-sans);
  line-height: 1.75;
  min-width: 64px;
  --variant-textBg: transparent;
  background-color: var(--variant-textBg);
  --variant-textColor: hsl(239.18, 84.97%, 70%);
  --variant-outlinedColor: hsl(239.18, 84.97%, 70%);
  --variant-outlinedBorder: hsla(239.18, 84.97%, 70%, 0.5);
  --variant-containedColor: hsl(220, 35%, 97%);
  --variant-containedBg: hsl(239.18, 84.97%, 70%);
  font-size: 0.8125rem;
  box-shadow: none;
  text-transform: none;
  height: 2.25rem;
  color: rgb(71, 83, 107);
  font-weight: 400 !important;
  outline: 0px;
  margin: 0px;
  text-decoration: none;
  border-width: 0px;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  padding: 8px 12px;
}

.nav-desktop a:hover {
  color: rgb(95, 97, 242);
  background: inherit;
  --variant-containedBg: hsl(239.18, 84.97%, 48%);
  --variant-textBg: hsla(239.18, 84.97%, 70%, 0.04);
  --variant-outlinedBorder: hsl(239.18, 84.97%, 70%);
  --variant-outlinedBg: hsla(239.18, 84.97%, 70%, 0.04);
}

.lang-switch {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.lang-switch__seg {
  position: relative;
  appearance: none;
  max-width: 100%;
  font-family: var(--kommai-font-sans);
  font-size: 0.8125rem;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  color: rgb(11, 14, 20);
  vertical-align: middle;
  box-sizing: border-box;
  height: 24px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: rgb(235, 238, 244);
  max-height: 20px;
  min-width: 40px;
  font-weight: 400 !important;
  margin: 0px;
  white-space: nowrap;
  transition:
    background-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: 0px;
  text-decoration: none;
  padding: 0px;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  border-radius: 999px;
  border-color: rgb(218, 222, 231);

  font-size: 0.75rem;

  color: rgb(86, 100, 129);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 7px;
  padding-right: 7px;
}

.lang-switch__seg--active {
  background-color: rgb(95, 97, 242);
  color: rgb(231, 232, 253);
}

.cta-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 900px) {
  .cta-desktop {
    display: flex;
  }
}

.btn-contained {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  box-sizing: border-box;
  font-family: var(--kommai-font-sans);
  font-size: 0.875rem;
  line-height: 1.75;
  min-width: 64px;
  --variant-textColor: hsl(239.18, 84.97%, 66.08%);
  --variant-outlinedColor: hsl(239.18, 84.97%, 66.08%);
  --variant-outlinedBorder: hsla(239.18, 84.97%, 66.08%, 0.5);
  --variant-containedColor: hsl(239.18, 84.97%, 95%);
  --variant-containedBg: hsl(239.18, 84.97%, 66.08%);
  box-shadow: none;
  text-transform: none;
  height: 2.5rem;
  color: white;
  background-color: rgb(95, 97, 242);
  font-weight: 400 !important;
  outline: 0px;
  margin: 0px;
  text-decoration: none;
  padding: 6px 16px;
  border-width: 0px;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.btn-contained:hover {
  background-image: none;
  background-color: rgb(43, 45, 238);
  box-shadow: none;
}

.menu-button {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.5rem;
  --IconButton-hoverBg: rgba(0, 0, 0, 0.04);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0px;
  color: rgb(11, 14, 20);
  background-color: rgba(245, 246, 250, 0.3);
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 400 !important;
  outline: 0px;
  margin: 0px;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 8px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  border-color: rgb(218, 222, 231);
}

.menu-button:hover {
  background-color: rgb(235, 238, 244);
  border-color: rgb(194, 201, 214);
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 899px) {
  .menu-button {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .menu-button {
    display: none;
  }
}

.drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.drawer-toggle:checked ~ .drawer-scrim {
  display: block;
}

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: min(100vh, 480px);
  overflow: auto;
  background: #f5f7fa;
  padding: 16px;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.drawer-toggle:checked ~ .drawer-panel {
  transform: translateY(0);
}

.drawer-head {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.drawer-close {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.5rem;
  --IconButton-hoverBg: rgba(0, 0, 0, 0.04);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0px;
  color: rgb(11, 14, 20);
  background-color: rgba(245, 246, 250, 0.3);
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 400 !important;
  outline: 0px;
  margin: 0px;
  margin-left: auto;
  text-decoration: none;
  flex: 0 0 auto;
  padding: 8px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  border-image: initial;
  border-color: rgb(218, 222, 231);
}

.drawer-close:hover {
  background-color: rgb(235, 238, 244);
  border-color: rgb(194, 201, 214);
}

.drawer-divider {
  height: 1px;
  background: #dee2e6;
  margin: 24px 0;
}

ul.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav li {
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  color: inherit;
  transition: 100ms ease-in;
  font-size: 0.875rem;
  font-family: var(--kommai-font-sans);
  line-height: 1.5;
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 400 !important;
  min-height: auto;
}

.drawer-nav li:hover {
  text-decoration: none;
  background-color: rgba(218, 222, 231, 0.2);
}

.drawer-nav li a {
  margin: 0px;
  font: inherit;
  letter-spacing: inherit;
  color: rgb(95, 97, 242);
  --Link-underlineColor: hsla(239.18, 84.97%, 66.08%, 0.4);
  text-decoration: none;
}

.drawer-nav li a:hover {
  text-decoration: none;
}

.drawer-actions {
  padding-top: 8px;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}

.kommai-site-header-spacer {
  height: 124px;
}

@media (min-width: 900px) {
  .kommai-site-header-spacer {
    height: 152px;
  }
}

/* Hero illustration layer (SPA .css-17uqmv6::after), scoped to body.kommai-hero-bg */
body.kommai-hero-bg {
  position: relative;
}

body.kommai-hero-bg::after {
  content: "";
  position: absolute;
  will-change: auto;
  inset: 0 -20% 0 0;
  z-index: -1;
  background: none;
  pointer-events: none;
}

@media (min-width: 600px) {
  body.kommai-hero-bg::after {
    background: none;
  }
}

@media (min-width: 900px) {
  body.kommai-hero-bg::after {
    background: url("../images/hero-illustration.svg") right top no-repeat;
  }
}

