/* Shared top + bottom navigation bars for home + pricing */

/* Top navigation */
header {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  backdrop-filter: blur(12px);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 68px;
}

header a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  margin-left: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1;
}

.nav-actions .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-left: 18px;
}

.lang-switch .lang-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-switch .lang-btn.is-active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.lang-switch--dropdown {
  position: relative;
  margin-left: 18px;
}

.lang-menu-trigger {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-menu-trigger:hover,
.lang-switch--dropdown.is-open .lang-menu-trigger {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.lang-menu-trigger svg {
  width: 21px;
  height: 21px;
  color: #0f172a;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 122px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 20;
}

.lang-switch--dropdown.is-open .lang-menu {
  display: grid;
  gap: 6px;
}

.lang-switch--dropdown .lang-menu .lang-btn {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
}

.lang-switch--dropdown .lang-menu .lang-btn:hover {
  background: #f1f5f9;
}

.lang-switch--dropdown .lang-menu .lang-btn.is-active {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* Bottom navigation */
.shared-footer-nav {
  width: min(1320px, calc(100% - 32px));
  margin: 56px auto 40px;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(10px);
}

.shared-footer-shell {
  padding: 42px 36px 26px;
}

.shared-footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 44px;
}

.shared-footer-brand-col {
  display: grid;
  gap: 16px;
}

.shared-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  text-decoration: none;
}

.shared-footer-brand-logo {
  height: 44px;
}

.shared-footer-brand-title {
  height: 32px;
}

.shared-footer-copy {
  color: #1f2937;
  font-size: 1.05rem;
  max-width: 500px;
}

.shared-footer-copy--headline {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.shared-footer-pill {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #dbe0ea;
}

.shared-footer-pill--violet {
  color: #ffffff;
  background: linear-gradient(135deg, #6d6be6, #5452cf);
}

.shared-footer-pill--dark {
  color: #ffffff;
  background: linear-gradient(135deg, #2b2d33, #16181d);
}

.shared-footer-links-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.shared-footer-links-group h4 {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.shared-footer-links-group a {
  display: block;
  margin-bottom: 12px;
  color: #4b5563;
  text-decoration: none;
}

.shared-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.shared-footer-lang {
  margin-left: 0;
}

.shared-footer-lang-label {
  color: #1f2937;
  font-size: 1.05rem;
}

.shared-footer-signature {
  text-align: center;
  color: #6b7280;
}

.shared-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shared-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .shared-footer-main {
    grid-template-columns: 1fr;
  }

  .shared-footer-links-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shared-footer-shell {
    padding: 28px 20px 20px;
  }

  .shared-footer-links-col {
    grid-template-columns: 1fr;
  }

  .shared-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .shared-footer-signature {
    text-align: left;
  }
}
