/* Shared public footer. The same layout and settings power the former chat footer. */
.global-footer {
  --footer-text: #f5f4f8;
  --footer-muted: #aaa8b8;
  --footer-line: #34343f;
  --footer-accent: #a895ef;
  --footer-soft: #292638;
  width: 100%;
  margin-top: auto;
  background: var(--page, #14141b);
  color: var(--footer-text);
}
html[data-landing-theme="day"] .global-footer {
  --footer-text: #1c1b32;
  --footer-muted: #68677e;
  --footer-line: #e1dfed;
  --footer-accent: #654ac7;
  --footer-soft: #efecfa;
}
.global-footer[hidden] { display: none !important; }
.global-footer a { color: inherit; text-decoration: none; }
.global-footer button { font: inherit; cursor: pointer; }
.global-footer__inner,
.global-footer__fallback { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }
.global-footer__inner::before,
.global-footer__fallback::before { content: ""; display: block; height: 1px; background: var(--footer-line); }
.global-footer__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  min-height: 252px;
  padding: 44px 0 40px;
}
.global-footer__left { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; align-self: stretch; }
.global-footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; min-height: 38px; }
.global-footer__social-heading { display: none; }
.global-footer__socials a { width: 30px; height: 30px; display: grid; place-items: center; color: var(--footer-muted); font-size: 22px; font-weight: 700; transition: color .2s, transform .2s; }
.global-footer__socials a:hover { color: var(--footer-text); transform: translateY(-2px); }
.global-footer__about { max-width: 270px; }
.global-footer__about strong { display: block; font-size: 13px; line-height: 1.45; }
.global-footer__about p { margin: 7px 0 0; color: var(--footer-muted); font-size: 12px; line-height: 1.6; }
.global-footer__meta { margin-top: auto; display: grid; gap: 4px; color: var(--footer-muted); font-size: 11px; line-height: 1.5; }
.global-footer__meta a:hover { color: var(--footer-text); }
.global-footer__brand { display: flex; flex-direction: column; align-items: center; justify-self: center; text-align: center; }
.global-footer__brand img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 20px rgb(75 146 220 / 17%)); }
.global-footer__brand strong { display: block; margin-top: 10px; color: var(--footer-text); font-size: 26px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.global-footer__brand strong span { color: var(--footer-accent); }
.global-footer__brand small { display: block; max-width: 220px; margin-top: 10px; color: var(--footer-muted); font-size: 11px; line-height: 1.5; }
.global-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: clamp(20px, 3vw, 50px); min-width: 0; justify-self: end; }
.global-footer__group { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.global-footer__group-title { margin-bottom: 17px; font-size: 14px; font-weight: 700; }
.global-footer__group a,
.global-footer__group button { padding: 0; border: 0; background: transparent; color: var(--footer-muted); text-align: left; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; transition: color .2s; }
.global-footer__group a:hover,
.global-footer__group button:hover { color: var(--footer-text); }
.global-footer__link-icon, .global-footer__link-arrow { display: none; }
.global-footer :is(a, button):focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; border-radius: 3px; }
.global-footer__fallback { min-height: 130px; }
.global-footer__fallback > a { display: inline-block; margin-top: 30px; font-weight: 800; }
.global-footer__fallback nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--footer-muted); font-size: 13px; }
.global-footer__fallback nav a:hover { color: var(--footer-text); }

/* Feedback is available from any public page. */
.global-footer-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; overflow: auto; border: 1px solid var(--footer-line, #34343f); border-radius: 16px; background: var(--page, #14141b); color: var(--footer-text, #f5f4f8); box-shadow: 0 24px 80px rgb(0 0 0 / 35%); }
html[data-landing-theme="day"] .global-footer-dialog { --footer-line: #e1dfed; --footer-text: #1c1b32; --footer-muted: #68677e; --footer-accent: #654ac7; }
.global-footer-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.global-footer-dialog h2 { margin: 0 0 8px; font-size: 23px; }
.global-footer-dialog p { margin: 0 0 20px; color: var(--footer-muted, #aaa8b8); font-size: 14px; }
.global-footer-dialog form { display: grid; gap: 12px; }
.global-footer-dialog label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.global-footer-dialog input, .global-footer-dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--footer-line, #34343f); border-radius: 9px; background: var(--page, #14141b); color: var(--footer-text, #f5f4f8); font: inherit; font-size: 16px; resize: vertical; }
.global-footer-dialog input:focus, .global-footer-dialog textarea:focus { outline: 2px solid var(--footer-accent, #a895ef); outline-offset: 2px; }
.global-footer-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; }
.global-footer-dialog__actions button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--footer-line, #34343f); border-radius: 9px; background: transparent; color: var(--footer-text, #f5f4f8); }
.global-footer-dialog__actions button[type="submit"] { border-color: var(--footer-accent, #a895ef); background: var(--footer-accent, #a895ef); color: #fff; }
.global-footer-dialog__status { min-height: 1.4em; margin: 2px 0 0 !important; }

@media (max-width: 900px) {
  .global-footer__stage { grid-template-columns: minmax(0, 1fr) minmax(125px, .7fr) minmax(0, 1.2fr); gap: 20px; }
  .global-footer__nav { grid-template-columns: 1fr; gap: 18px; }
  .global-footer__group { gap: 8px; }
  .global-footer__group-title { margin-bottom: 2px; }
}
@media (max-width: 720px) {
  .global-footer__inner, .global-footer__fallback { width: min(100% - 40px, 520px); }
  .global-footer__stage { display: flex; flex-direction: column; gap: 0; min-height: 0; padding: 23px 0 28px; }
  .global-footer__left { display: contents; }
  .global-footer__brand { order: 1; }
  .global-footer__brand img { width: 70px; height: 70px; }
  .global-footer__brand strong { margin-top: 5px; font-size: 30px; }
  .global-footer__brand small { max-width: 300px; margin-top: 6px; font-size: 14px; line-height: 1.4; }
  .global-footer__about { order: 2; max-width: 340px; margin-top: 13px; text-align: center; }
  .global-footer__about strong { font-size: 16px; }
  .global-footer__about p { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .global-footer__nav { order: 3; align-self: stretch; display: flex; flex-direction: column; gap: 0; margin-top: 22px; padding: 5px 14px; border: 1px solid var(--footer-line); border-radius: 13px; background: var(--footer-soft); }
  .global-footer__group { display: contents; }
  .global-footer__group-title { display: none; }
  .global-footer__group a, .global-footer__group button { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 3px; border-bottom: 1px solid var(--footer-line); color: var(--footer-text); font-size: 15px; }
  .global-footer__group:last-child > :last-child { border-bottom: 0; }
  .global-footer__link-icon, .global-footer__link-arrow { display: block; flex: none; color: var(--footer-accent); font-size: 19px; }
  .global-footer__link-arrow { margin-left: auto; color: var(--footer-muted); font-size: 17px; }
  .global-footer__socials { order: 4; align-self: stretch; min-height: 0; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--footer-line); }
  .global-footer__social-heading { display: block; flex-basis: 100%; font-size: 16px; font-weight: 700; }
  .global-footer__socials a { width: 44px; height: 44px; border-radius: 10px; background: var(--footer-soft); color: var(--footer-accent); }
  .global-footer__meta { order: 5; align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 13px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--footer-line); text-align: center; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-footer__socials a, .global-footer__group a, .global-footer__group button { transition: none; }
  .global-footer__socials a:hover { transform: none; }
}
