/* Help (/faq) signed out, in the homepage's dark look (landing.css): the same
   self-hosted fonts, colours, top bar and TF mark, over a still of the
   homepage's city. Loaded only there (faq.html, block head_extra), on top of
   the app's own styles with data-theme="dark", so it restyles the page's
   Tailwind classes and never changes a word. Signed in, /faq does not load it.

   Selectors start at :root so they outrank Tailwind's single-class utilities
   (dark: ones included) without !important. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-var.woff2) format("woff2");
  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;
}
/* Bricolage's lowercase f, drawn from Hanken Grotesk (Taylor, Oct 19, 2026:
   "fix this bad f in the main page and anywhere else the bad f appears"). A
   later face of the same family wins for the characters its range names, so
   every other letter stays Bricolage. The ads keep theirs. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-var.woff2) format("woff2");
  unicode-range: U+0066;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-var.woff2) format("woff2");
  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: dark;
  --bg: #04060c;
  --ink: #eef1f8;
  --body: #b4bccd;
  --muted: #7c869b;
  --line: rgba(160, 180, 230, .14);
  --line-strong: rgba(160, 180, 230, .26);
  --glass: rgba(12, 17, 30, .62);
  --glass-strong: rgba(14, 20, 36, .82);
  --accent: #8f8cff;
  --accent-2: #b9a6ff;
  --accent-ink: #0b0a1f;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* Page and backdrop: the homepage's still city, darkened so text reads. */
:root { background: var(--bg); }
:root body {
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:root body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(143, 140, 255, .16), transparent 70%),
    radial-gradient(50% 45% at 90% 10%, rgba(56, 189, 248, .10), transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 12, .78), rgba(4, 6, 12, .93) 45%, var(--bg) 85%),
    url(../img/landing/city-desktop.jpg) center top / cover no-repeat,
    var(--bg);
}
@media (max-width: 720px) {
  :root body::before {
    background:
      radial-gradient(70% 40% at 20% 0%, rgba(143, 140, 255, .18), transparent 70%),
      linear-gradient(180deg, rgba(4, 6, 12, .74), rgba(4, 6, 12, .93) 40%, var(--bg) 80%),
      url(../img/landing/city-phone.jpg) center top / cover no-repeat,
      var(--bg);
  }
}
:root [id] { scroll-margin-top: 76px; }
:root ::selection { background: rgba(143, 140, 255, .35); }

/* Top bar, as on the homepage (landing.css .head) */
.pub-head { position: sticky; top: 0; z-index: 30; background: rgba(5, 8, 15, .72); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pub-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.pub-brand .brand-mark { display: block; flex: none; width: 28px; height: 28px; }
.pub-nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; color: var(--body); }
.pub-nav .pub-signin:hover { color: var(--ink); }
.pub-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 12px; font-weight: 650; font-size: 14px; white-space: nowrap;
  color: var(--accent-ink); background: linear-gradient(180deg, #d5ccff, var(--accent) 140%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 30px rgba(143,140,255,.35); transition: transform .18s, box-shadow .2s; }
.pub-btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 14px 40px rgba(143,140,255,.5); }
@media (max-width: 480px) { .pub-nav .pub-signin { display: none; } }
@media (max-width: 420px) { .pub-brand { gap: 8px; } .pub-brand span { font-size: 14.5px; } .pub-brand .brand-mark { width: 24px; height: 24px; } .pub-btn { padding: 8px 11px; font-size: 13px; } }
@media (max-width: 350px) { .pub-brand span { display: none; } }

/* Type */
:root h1, :root h2, :root h3, :root h4 { font-family: var(--font-display); letter-spacing: -.015em; color: var(--ink); }
:root main h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
:root main h2.text-xl { font-size: 1.6rem; font-weight: 700; }
:root main h3.text-lg { font-size: 1.25rem; font-weight: 700; }
:root main { padding-top: 40px; }

/* Colours: the app's zinc greys become the homepage's ink, body and muted. */
:root .dark\:text-zinc-100, :root .text-zinc-900 { color: var(--ink); }
:root .dark\:text-zinc-300, :root .text-zinc-700 { color: var(--body); }
:root .dark\:text-zinc-400, :root .text-zinc-500 { color: var(--muted); }
:root .dark\:border-zinc-800, :root .border-zinc-200 { border-color: var(--line); }
:root .dark\:border-zinc-700, :root .border-zinc-300 { border-color: var(--line-strong); }
:root [data-faq-entry] { color: var(--body); line-height: 1.65; }
:root [data-faq-entry] h4 { color: var(--ink); font-size: 1.05rem; }
:root main a.underline, :root [data-faq-entry] p a, :root [data-faq-entry] li a { color: var(--accent-2); text-underline-offset: 2px; }

/* Panels: glass, as the homepage's cards */
:root .dark\:bg-zinc-950 { background: var(--glass); }
:root main section.rounded-lg { border-radius: 18px; padding: 24px; background: var(--glass); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05); }
:root .bg-indigo-600 { color: var(--accent-ink); background: linear-gradient(180deg, #d5ccff, var(--accent)); box-shadow: 0 0 14px rgba(143, 140, 255, .4); }

/* Search */
:root #faq-q { background: var(--glass-strong); color: var(--ink); border-color: var(--line-strong); border-radius: 12px; padding: 12px 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
:root #faq-q::placeholder { color: var(--muted); }
:root #faq-q:focus { outline: 2px solid var(--accent-2); outline-offset: 2px; border-color: transparent; }

/* Tabs and topic chips */
:root #faq-tabs a, :root [data-faq-chips] a { color: var(--body); background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
:root #faq-tabs a:hover, :root [data-faq-chips] a:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
:root #faq-tabs a[aria-current="true"] { color: var(--accent-ink); background: linear-gradient(180deg, #d5ccff, var(--accent)); border-color: transparent; font-weight: 600; }
:root main a.rounded:hover { background: rgba(255, 255, 255, .08); }

/* Footer */
:root body > footer { color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
:root body > footer a:hover { color: var(--ink); }
