/* Shared site footer (landing, marketing subpages, /status, /api). Extracted from landing.css so app-shell pages can use it too. */
:root { --sz-ft-ink: #0f1420; --sz-ft-ink-hover: #1f2937; }

/* Footer */
.sz-footer {
  --ft-blue: #0a25dc;
  background: var(--ft-blue);
  color: #fff;
  padding-bottom: 16px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Inner column matches the header wrap. Background and wordmark stay full-bleed. */
.sz-footer-inner {
  width: min(var(--max, 1200px), calc(100% - 40px));
  margin: 0 auto;
}

.sz-footer-top {
  display: flex;
  gap: 48px;
  padding: 64px 0 0;
}

.sz-footer-editorial {
  flex: 1.4 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.sz-footer-h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sz-footer-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 22px;
}

.sz-footer-cols {
  flex: 2 1 0;
  display: flex;
  gap: 48px;
}

.sz-footer-col { flex: 1; min-width: 0; }

.sz-footer-label {
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 14px;
}

.sz-footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.sz-footer-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.sz-footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sz-footer-link:hover { opacity: 0.92; }
.sz-footer-link:hover::after { transform: scaleX(1); }
.sz-footer-link:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; }

.sz-footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.sz-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.sz-footer-social:hover { opacity: 0.82; transform: translateY(-1px); }
.sz-footer-social:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; }

/* Floating Telegram support widget (replaces tawk.to) */
.sz-support-widget {
  position: fixed;
  right: 36px;
  bottom: 32px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sz-ft-ink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s, background 0.18s;
}

.sz-support-widget svg { flex: none; }

.sz-support-widget:hover {
  background: var(--sz-ft-ink-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(0, 0, 0, 0.6), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.sz-support-widget:focus-visible { outline: 2px solid var(--sz-ft-ink); outline-offset: 3px; }

.sz-support-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px);
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.18s, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.sz-support-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}

.sz-support-widget:hover .sz-support-tooltip,
.sz-support-widget:focus-visible .sz-support-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sz-footer-fine {
  margin: 32px 0 0;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  line-height: 1.6;
}

.sz-footer-copy-row {
  display: flex;
  justify-content: flex-end;
  padding: 32px 0 0;
}

.sz-footer-copy {
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 16px;
  white-space: nowrap;
}

.sz-footer-wordmark-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 0;
  font-size: clamp(64px, 15.15vw, 290px);
  overflow: visible;
}

.sz-footer-wordmark {
  margin: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.sz-footer-wordmark-dot { color: rgba(255, 255, 255, 0.35); }

@media (max-width: 900px) {
  .sz-footer-top { flex-direction: column; gap: 40px; padding: 48px 0 0; }
  .sz-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 720px) {
  body.sza-body .sz-footer-inner { width: calc(100% - 32px); }
}

@media (max-width: 600px) {
  .sz-support-widget { width: 50px; height: 50px; right: 20px; bottom: 20px; }
  .sz-support-widget svg { width: 22px; height: 22px; }
  .sz-footer-inner { width: calc(100% - 28px); }
  body.sza-body .sz-footer-inner { width: calc(100% - 32px); }
  .sz-footer-top { padding: 40px 0 0; }
  .sz-footer-h2 { font-size: 24px; line-height: 30px; }
  .sz-footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .sz-footer-fine { margin: 28px 0 0; }
  .sz-footer-copy-row { justify-content: center; padding: 24px 0 0; }
  .sz-footer-copy { white-space: normal; text-align: center; }
}
