/* Shared architectural foundation & accessibility helpers for zHodowli.pl mockups */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding-inline: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile menu drawer */
.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 74px 16px auto 16px;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  flex-direction: column;
  gap: 10px;
}
.mobile-drawer.open {
  display: flex;
}
.mobile-drawer a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-drawer a:hover {
  background: var(--bg);
}

/* Interactive reveal box */
.phone-revealed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.atlas-preview-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.login-toast {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(28, 107, 90, 0.12);
  color: #145345;
  border: 1px solid rgba(28, 107, 90, 0.25);
}
.login-toast.show {
  display: block;
}

/* Official zhodowli.pl live brand lockup (ADR 0041) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #2648a8;
  text-decoration: none;
}

.brand-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
  display: block;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #2648a8;
  font-family: 'Plus Jakarta Sans', var(--font-display), system-ui, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand-lockup--sm .brand-logo-mark {
  width: 28px;
  height: 28px;
}

.brand-lockup--sm .brand-wordmark {
  font-size: 19px;
}

.brand-lockup--on-dark,
.brand-lockup--on-dark .brand-wordmark {
  color: #FFFFFF;
}

.brand-lockup--on-dark .brand-logo-mark {
  filter: brightness(0) invert(1);
}

/* Smooth SVG chart responsiveness */
.tunnel-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .container {
    padding-inline: 18px;
  }
  .nav-links,
  .nav-actions {
    display: none !important;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
