/* ==========================================================================
   App chrome — header, navigation, footer, wordmark
   ========================================================================== */

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--athera-line);
}
.app-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}

/* Inline wordmark */
.wordmark {
  font-family: var(--athera-display);
  font-size: 26px; font-weight: 300;
  color: var(--athera-charcoal); letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap;
}
.wordmark .a { color: var(--athera-blue); }
.wordmark .partners {
  font-family: var(--athera-sans); font-size: 0.46em; font-weight: 400;
  color: var(--athera-grey); letter-spacing: 0.08em; margin-left: 5px;
  vertical-align: super;
}
.brand-lockup { display: flex; align-items: baseline; gap: 14px; }
.brand-lockup .product {
  font-family: var(--athera-sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--athera-grey);
  padding-left: 14px; border-left: 1px solid var(--athera-line);
}

/* Primary nav */
.app-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--athera-grey); padding: 8px 14px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--athera-charcoal); text-decoration: none; }
.nav-link.active { color: var(--athera-charcoal); }
.nav-link .step-no { font-family: var(--athera-mono); font-size: 10px; color: var(--athera-grey-light); }
.nav-link.active .step-no { color: var(--athera-blue-deep); }
.nav-link.locked { opacity: 0.4; cursor: not-allowed; }

/* Progress flow rail under header (shows the 5-step path) */
.flow-rail {
  display: flex; align-items: center; gap: 0;
  border-top: 1px solid var(--athera-line-light);
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--athera-line);
  margin-top: var(--sp-7);
  padding: var(--sp-5) 0 var(--sp-6);
}
.app-footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.app-footer .emblem { height: 26px; width: auto; opacity: 0.8; }
.app-footer .fine { font-size: 11px; color: var(--athera-grey-light); max-width: 60ch; line-height: 1.6; }

/* View host */
#view { display: block; min-height: 60vh; }

/* AI placeholder container — used wherever session-3 narrative will live */
.ai-placeholder {
  border: 1px dashed var(--athera-line);
  border-radius: var(--radius);
  background: var(--athera-surface);
  padding: var(--sp-3);
  display: flex; gap: var(--sp-2); align-items: flex-start;
}
.ai-placeholder .ai-mark {
  font-family: var(--athera-display); font-size: 22px; line-height: 1;
  color: var(--athera-blue); flex-shrink: 0;
}
.ai-placeholder .label { color: var(--athera-blue-deep); display: block; margin-bottom: 6px; }
.ai-placeholder p { font-size: 13px; color: var(--athera-grey); line-height: 1.6; }
