/* Shared base for the static pages (/contact/, /privacy/, /support/).
   Light paper + near-black ink to match the main landing page; brand blue
   (#2563EB) is reserved for links, focus and the one primary button.
   Contrast (WCAG, on #fff): ink 19.8:1 · ink-2 11.4:1 · muted 6.5:1 ·
   accent 5.2:1 · field border 3.5:1 (non-text, needs 3:1) · error 6.6:1. */

@font-face {
  /* Same Geist variable font the Vite bundle ships, at a stable path —
     static pages can't reference the hashed /assets/ copy. */
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --paper: #ffffff;
  --paper-2: #fafafa;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --muted: #5e5e5e;
  --rule: #e6e6e6;
  --field-border: #8a8a8a;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --error: #b42318;
  --error-bg: #fef3f2;
  --success: #067647;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: max(24px, env(safe-area-inset-left));
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(24px, env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  padding: 8px 14px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand:focus-visible { border-radius: 6px; }

.login {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out);
}
.login:hover { background: #262626; color: var(--paper); }
.login svg { width: 14px; height: 14px; opacity: 0.7; }
.login:focus-visible { border-radius: 999px; }

/* ---------- Main ---------- */
main { flex: 1; }

h1, h2, h3 { color: var(--ink); font-style: normal; }

/* ---------- Footer (mirrors src/components/site-chrome.tsx) ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
  padding-bottom: env(safe-area-inset-bottom);
}
.site-footer .wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 32px; padding-bottom: 32px;
}
.site-footer ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 24px; margin: 0; padding: 0; list-style: none;
}
.site-footer a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-footer a:hover { color: var(--ink); }
.site-footer a[aria-current="page"] { color: var(--ink); }
.site-footer .footer-brand { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.site-footer p { margin: 0; font-size: 12px; }
@media (min-width: 640px) {
  .site-footer .wrap { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
