/* Typography base — Inter only, WCAG AA contrast */
body {
  font-family: 'Inter', sans-serif;
  overflow-wrap: break-word;
  word-break: break-word;
}

:root {
  --k-shell-blue: #2563eb;
  --k-shell-blue-deep: #1d4ed8;
  --k-shell-navy: #0f172a;
  --k-shell-slate-50: #f8fafc;
  --k-shell-slate-100: #f1f5f9;
  --k-shell-slate-200: #e2e8f0;
  --k-shell-slate-400: #94a3b8;
  --k-shell-slate-500: #64748b;
  --k-shell-slate-700: #334155;
  --k-shell-white: #ffffff;
}

.k-shell-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--k-shell-slate-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.k-shell-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.k-shell-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.k-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--k-shell-navy);
  text-decoration: none;
}

.k-shell-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--k-shell-blue);
  color: var(--k-shell-white);
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.k-shell-brand-text {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.k-shell-summary,
.k-shell-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--k-shell-slate-700);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.k-shell-link:hover,
.k-shell-summary:hover,
.k-shell-dropdown[open] > .k-shell-summary,
.k-shell-link-current {
  background: #eff6ff;
  color: var(--k-shell-blue-deep);
}

.k-shell-dropdown {
  position: relative;
}

.k-shell-summary {
  list-style: none;
  cursor: pointer;
}

.k-shell-summary::-webkit-details-marker {
  display: none;
}

.k-shell-summary-icon {
  transition: transform 180ms ease;
}

.k-shell-dropdown[open] .k-shell-summary-icon {
  transform: rotate(180deg);
}

.k-shell-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 380px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: var(--k-shell-white);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.k-shell-panel-grid {
  display: grid;
  gap: 8px;
}

.k-shell-panel-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.k-shell-panel-link:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  transform: translateY(-1px);
}

.k-shell-panel-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.k-shell-panel-title {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--k-shell-navy);
}

.k-shell-panel-desc {
  display: block;
  margin-top: 4px;
  color: var(--k-shell-slate-500);
  font-size: 0.8rem;
  line-height: 1.45;
}

.k-shell-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.k-shell-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--k-shell-blue);
  color: var(--k-shell-white);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
  transition: background-color 180ms ease, transform 180ms ease;
}

.k-shell-cta:hover {
  background: var(--k-shell-blue-deep);
  transform: translateY(-1px);
}

.k-shell-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--k-shell-slate-200);
  border-radius: 999px;
  background: var(--k-shell-white);
  color: var(--k-shell-slate-700);
  cursor: pointer;
}

.k-shell-mobile {
  display: none;
  border-top: 1px solid var(--k-shell-slate-200);
  background: var(--k-shell-white);
}

.k-shell-mobile.is-open {
  display: block;
}

.k-shell-mobile-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 24px;
}

.k-shell-mobile-group + .k-shell-mobile-group {
  margin-top: 18px;
}

.k-shell-mobile-label {
  margin-bottom: 10px;
  color: var(--k-shell-slate-500);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.k-shell-mobile-grid {
  display: grid;
  gap: 8px;
}

.k-shell-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--k-shell-slate-200);
  border-radius: 16px;
  color: var(--k-shell-slate-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.k-shell-mobile-link:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: var(--k-shell-blue-deep);
}

.k-shell-mobile-cta {
  margin-top: 18px;
}

.k-shell-mobile-cta .k-shell-cta {
  display: inline-flex;
  width: 100%;
}

.k-shell-footer {
  margin-top: 56px;
  border-top: 1px solid var(--k-shell-slate-200);
  background: var(--k-shell-white);
}

.k-shell-footer-grid {
  display: grid;
  gap: 28px;
  padding: 44px 0 28px;
}

.k-shell-footer-copy {
  max-width: 28rem;
  color: var(--k-shell-slate-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

.k-shell-footer-title {
  margin-bottom: 14px;
  color: var(--k-shell-slate-500);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.k-shell-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.k-shell-footer-links a {
  color: var(--k-shell-slate-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.k-shell-footer-links a:hover {
  color: var(--k-shell-blue-deep);
}

.k-shell-footer-bottom {
  padding: 20px 0 30px;
  border-top: 1px solid var(--k-shell-slate-200);
  color: var(--k-shell-slate-500);
  text-align: center;
  font-size: 0.92rem;
}

@media (min-width: 960px) {
  .k-shell-desktop {
    display: flex;
  }

  .k-shell-toggle {
    display: none;
  }

  .k-shell-cta {
    display: inline-flex;
  }

  .k-shell-footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }
}

@media (max-width: 640px) {
  .k-shell-inner,
  .k-shell-mobile-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .k-shell-nav {
    min-height: 70px;
  }

  .k-shell-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .k-shell-brand-text {
    font-size: 1.08rem;
  }
}
