/* Glynce shared chrome for the generated sub-sites (help centre + legal pages),
   so the two don't each carry a copy. The marketing pages keep their own in
   site.css.

   The whole site is light-only for now; the host sheets pin color-scheme so
   browser-drawn controls stay light under a dark OS.

   Expects the host sheet to define the palette tokens (--ink, --bg, --card,
   --rule, --blue-dark, --blue-soft). */

/* ── Top nav: the marketing site's floating pill ──────────────── */
.topnav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(20, 34, 59, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 18px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.topnav .brand img { height: 22px; width: auto; display: block; }
.topnav .nav-link {
  padding: 8px 12px;
  color: var(--ink);
  font-size: 15px;
  border-radius: 999px;
}
.topnav .nav-link:hover { background: rgba(20, 34, 59, 0.06); }
.topnav .nav-link.current { font-weight: 600; background: rgba(20, 34, 59, 0.06); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding: 10px 18px;
  background: #0d1524;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-dark:hover { background: #1c2942; }
.btn-dark svg { width: 15px; height: 18px; flex-shrink: 0; margin-top: -2px; }

/* legal.css underlines every <a>; chrome links opt out. */
.topnav a, .site-footer a, .lang-picker a { text-decoration: none; border: none; }

/* ── Language switcher (a footer column) ──────────────────────────
   Collapsed to the current language; opening it reveals the rest. Built on
   <details>, so it needs no JS and stays keyboard-operable. */
.lang-picker { font-size: 14px; }

.lang-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  /* Hide the native disclosure triangle; the chevron below replaces it. */
  list-style: none;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::marker { content: ""; }
.lang-picker summary:hover { border-color: #cfd6e4; }

.lang-picker .chev { width: 13px; height: 13px; color: var(--muted); transition: transform 0.15s ease; }
.lang-picker[open] .chev { transform: rotate(180deg); }

/* In flow rather than an overlay: this sits in the footer, so pushing the
   column open is simpler than positioning a panel and can't be clipped. */
.lang-picker .lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
}
.lang-picker .lang-list a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  line-height: 1.6;
}
.lang-picker .lang-list a:hover { color: var(--blue-dark); background: var(--blue-soft); }

/* ── Footer: the marketing site's sitemap ─────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px max(24px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: grid;
  /* brand + Features / Learn / Support / Company + language on the far right */
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer .brand-col .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.site-footer .brand-col .brand img { height: 24px; width: auto; display: block; }
/* Brand column matched to the marketing footer: tagline, then the Download CTA
   with real space above it (last chance to act), then the copyright. */
.site-footer .brand-col .tagline {
  margin: 14px 0 0;
  max-width: 15em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.site-footer .brand-col .btn-dark { margin-top: 22px; }
.site-footer .brand-col .copyright { margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.site-footer .socials { display: flex; gap: 18px; margin-top: 28px; }
.site-footer .socials a { color: var(--ink); display: inline-flex; }
.site-footer .socials a:hover { opacity: 0.7; }
.site-footer .socials svg { width: 22px; height: 22px; }
.site-footer .col h4 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer .col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer .col a { color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.site-footer .col a:hover { color: var(--blue-dark); }
.site-footer .lang-col .lang-picker { margin-top: -2px; }

@media (max-width: 900px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .site-footer .brand-col { grid-column: 1 / -1; }
  .site-footer .socials { margin-top: 24px; }
}
@media (max-width: 620px) {
  /* Pill drops its text links on narrow screens, like the marketing site. */
  .topnav .nav-link { display: none; }
  .topnav .brand { margin-right: 6px; }
}
