/* gramic.ai: shared by every page (landing, Privacy, Support) so the header, footer and base
   type are identical everywhere and nothing moves when a visitor goes from page to page. */
:root {
  --bg: #17181b; --fg: #f2f2f2; --muted: #9a9da5; --faint: #6f727a; --line: #3a3c42; --quiet: #5c5f66;
  --blue: #8fb8ff; --blue-hover: rgba(143,184,255,.12); --error: #ff9b9b;
  --font: "Outfit", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
  /* Content sits in a centred frame (max 1200px); on big screens the side margins grow, so the
     text column and the enso stay near the middle of the screen instead of hugging its edges. */
  --gutter: max(24px, calc((100vw - 1200px) / 2));
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; /* same width with or without a scrollbar: no sideways shift between pages */
  scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%;
  overflow-anchor: none; /* sections have fixed heights; browser scroll anchoring only made language switches jump */ }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); line-height: 1.5; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* header */
/* Stays at the top on every device. Invisible over the first screen; once the page scrolls it gains a
   frosted page-colour backdrop that ends in a soft fade (no hard line). */
.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  transition: background-color .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease; }
.top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background: linear-gradient(rgba(23,24,27,.8), rgba(23,24,27,0)); opacity: 0; transition: opacity .3s ease; }
.top.scrolled { background-color: rgba(23,24,27,.8); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); }
.top.scrolled::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 19px; text-decoration: none; color: var(--fg); }
.brand img { width: 28px; height: 28px; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.lang svg { width: 16px; height: 16px; }
.lang select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.lang:focus-within { color: var(--fg); }
.langs { display: inline-flex; align-items: center; gap: 18px; }
.quick { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--quiet); cursor: pointer; }
.quick:hover { color: var(--muted); }
.quick[aria-pressed=true] { color: var(--fg); cursor: default; }

/* footer: once, at the end of every page */
footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 0 24px max(32px, env(safe-area-inset-bottom)); color: var(--quiet); font-size: 13px; position: relative; }
footer a { text-decoration: none; } footer a:hover { color: var(--muted); }
