/**
 * Katalyst Public Navigation — Conversion System Styles v2.1
 * P0-PUBLIC-NAV-IA-A
 * 5 groups: Product | Strategy Kit | Solutions | Services | Resources
 * CTAs: Log In | Try OI Free | Get Strategy Kit
 */

/* ── Lock body scroll on mobile menu open ── */
body.pnav-body-lock { overflow: hidden; }

/* ── NAV WRAP ── */
.pnav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* ── LOGO ── */
.pnav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.pnav-logo-k {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ── NAV GROUPS (desktop) ── */
.pnav-groups {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.pnav-group {
  position: relative;
}

/* Group trigger button */
.pnav-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
}
.pnav-trigger:hover,
.pnav-trigger[aria-expanded="true"] {
  color: #fff;
}
.pnav-chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s;
}
.pnav-trigger[aria-expanded="true"] .pnav-chevron {
  transform: rotate(180deg);
}

/* ── STRATEGY KIT — TOP LEVEL VISIBILITY ── */
.pnav-sk-wrap {
  display: flex;
  align-items: center;
}
.pnav-sk-link {
  padding: 8px 16px;
  color: #00d4c8;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,212,200,0.3);
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.pnav-sk-link:hover {
  background: rgba(0,212,200,0.08);
  border-color: #00d4c8;
  color: #00d4c8;
}

/* ── DROPDOWN ── */
.pnav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #12121a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.pnav-dropdown[aria-hidden="false"] {
  display: block;
}
.pnav-dropdown a {
  display: block;
  padding: 8px 14px;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.pnav-dropdown a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.pnav-dropdown a strong {
  color: #fff;
  font-weight: 600;
}
.pnav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 12px;
}

/* ── RIGHT CTAs ── */
.pnav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.pnav-login {
  padding: 8px 14px;
  color: #00d4c8;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(0,212,200,0.3);
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.pnav-login:hover {
  background: rgba(0,212,200,0.08);
  border-color: #00d4c8;
}
.pnav-btn-try {
  padding: 8px 16px;
  background: linear-gradient(135deg, #00d4c8 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.pnav-btn-try:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(0,212,200,0.2);
}
.pnav-btn-sk {
  padding: 8px 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.pnav-btn-sk:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

/* ── HAMBURGER ── */
.pnav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
.pnav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #9ca3af;
  border-radius: 2px;
  transition: all 0.2s;
}
.pnav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pnav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.pnav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE WRAP ── */
.pnav-mobile-wrap {
  display: none;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,15,0.97);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
}
.pnav-mobile-wrap[aria-hidden="false"] {
  display: flex;
}
.pnav-mobile.open {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 24px;
  gap: 4px;
}

/* Mobile link */
.pnav-mobile a {
  display: block;
  padding: 10px 12px;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.pnav-mobile a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

/* Mobile section separator */
.pnav-m-section {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.pnav-m-sk-heading {
  color: #00d4c8 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}
.pnav-m-sub {
  color: #6b7280 !important;
  font-size: 0.85rem !important;
  padding-left: 20px !important;
}
.pnav-m-login {
  color: #00d4c8 !important;
  font-weight: 600 !important;
}
.pnav-m-btn-try,
.pnav-m-btn-sk {
  text-align: center;
  margin-top: 4px;
}
.pnav-m-btn-try {
  background: linear-gradient(135deg, #00d4c8 0%, #7c3aed 100%);
  color: #fff !important;
  font-weight: 600;
}
.pnav-m-btn-sk {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff !important;
  font-weight: 600;
}

/* Mobile accordion trigger */
.pnav-m-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  transition: color 0.2s;
}
.pnav-m-trigger:hover { color: #fff; }
.pnav-m-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  display: inline-block;
}
.pnav-m-trigger[aria-expanded="true"] .pnav-m-arrow {
  transform: rotate(180deg);
}
.pnav-m-group .pnav-m-content {
  display: none;
  flex-direction: column;
  padding-left: 12px;
}
.pnav-m-group .pnav-m-content[aria-hidden="false"] {
  display: flex;
}
.pnav-m-content a {
  padding: 8px 12px;
  font-size: 0.85rem;
}
.pnav-m-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 12px;
}

/* ── RESPONSIVE: TABLET/MOBILE ── */
@media (max-width: 960px) {
  .pnav-groups { display: none; }
  .pnav-ctas { display: none; }
  .pnav-hamburger { display: flex; }
  .pnav-wrap {
    justify-content: space-between;
  }
}

/* ── RESPONSIVE: SMALL MOBILE ── */
@media (max-width: 480px) {
  .pnav-wrap { padding: 0 16px; }
  .pnav-logo { font-size: 0.85rem; margin-right: 16px; }
  .pnav-mobile a,
  .pnav-m-trigger { min-height: 44px; }
}

/* ── ACCESSIBILITY: FOCUS STATES ── */
.pnav-trigger:focus-visible,
.pnav-hamburger:focus-visible {
  outline: 2px solid #00d4c8;
  outline-offset: 2px;
}
.pnav-dropdown a:focus-visible {
  outline: 2px solid #00d4c8;
  outline-offset: -2px;
}
.pnav-m-trigger:focus-visible {
  outline: 2px solid #00d4c8;
  outline-offset: 2px;
}

/* ── WCAG contrast helpers ── */
.pnav-login { color: #00d4c8; } /* on dark bg, passes AA */
.pnav-sk-link { color: #00d4c8; } /* passes AA */

/* ── Auth chip (logged-in state) ── */
.pnav-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #a1a1aa;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.pnav-auth-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a1a1aa;
  flex-shrink: 0;
}
.pnav-auth-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pnav-signout-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #71717a;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pnav-signout-btn:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile auth chip */
.pnav-m-auth-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}
.pnav-m-try-link {
  display: block;
  padding: 10px 12px;
  background: linear-gradient(135deg, #00d4c8 0%, #7c3aed 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 4px;
  text-decoration: none;
}
.pnav-signout-btn-sm {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #71717a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.pnav-signout-btn-sm:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive: auth chip on mobile ── */
@media (max-width: 640px) {
  .pnav-auth-chip { font-size: 0; }
  .pnav-auth-name { display: none; }
  .pnav-signout-btn { font-size: 0.72rem; }
  .pnav-auth-chip { padding: 3px 6px; }
}

/* ═══════════════════════════════════════
   FOOTER — COLUMN GRID REDESIGN (TASK-2674583)
   Columns: Product | Support | Legal | Connect
   Mobile: stacks to 1-2 column grid
═══════════════════════════════════════ */

footer {
  padding: 0 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 40px;
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.footer-col {}
.footer-col-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  padding: 0;
  border: none;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  line-height: 1.4;
}
.footer-col-links a:hover { color: var(--teal); }
.footer-col-links a.footer-cta { color: var(--teal); font-weight: 600; }

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-connect-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-connect-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  width: 100%;
  margin-bottom: 4px;
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social-row a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social-row a:hover { color: var(--teal); }
.footer-social-dot { color: rgba(255, 255, 255, 0.25); font-size: 0.75rem; }

.footer-compliance {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 0 24px;
  text-align: center;
}
.footer-compliance p {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 12px;
}
.footer-legal-note {
  font-size: 0.72rem;
  color: #52525b;
  text-align: center;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 16px;
}
.footer-legal-note a { color: inherit; text-decoration: underline; }
.footer-copyright {
  font-size: 0.78rem;
  color: #52525b;
  text-align: center;
}

/* ── Mobile footer: stack to 2-col then 1-col ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    padding: 0 20px;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  .footer-connect-row { justify-content: flex-start; }
}