/*
  Shared styling for tfrbrowser.com.

  One stylesheet across all four pages so the palette can't drift. This file is
  the only place the brand colours are defined — if a colour appears as a hex
  literal anywhere in an HTML file, that's a bug waiting to happen.

  Dark only, deliberately. It matches the social infographic, and a marketing
  site that flips to white in light mode stops reading as the same product.
*/

/*
  One exception to the rule above: each page repeats --bg as a literal in its
  <meta name="theme-color"> tag, because that attribute can't read a CSS
  variable. If --bg changes, change those four tags too.
*/
:root {
  --bg:      #0b1017;
  --panel:   #161d27;
  --line:    #1e2733;
  --text:    #ffffff;
  --muted:   #8d9aab;
  --dim:     #6b7887;
  --accent:  #e8462c;
  --amber:   #f5b544;
  --radius:  14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.011em;
  /* The faint grid from the infographic. Two hairline gradients, no image. */
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
}

a { color: var(--accent); }
main { max-width: 44rem; margin: 0 auto; padding: 0 22px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
strong { color: var(--text); }

hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* ---- brand bar ---- */
.brand { display: flex; align-items: center; gap: 14px; padding: 40px 0 44px; }
.brand img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.brand a { text-decoration: none; color: inherit; }
.brand-name { font-size: 1.16rem; font-weight: 800; letter-spacing: .045em; margin: 0; }
.brand-sub { color: var(--dim); font-size: .84rem; margin: 2px 0 0; }

/* ---- headings ---- */
h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.35rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.032em;
  margin: 0 0 18px;
}
h2 {
  font-size: clamp(1.35rem, 3.6vw, 1.72rem); font-weight: 800;
  letter-spacing: -.024em; margin: 0 0 16px; line-height: 1.2;
}
h3 { font-size: 1.02rem; font-weight: 700; margin: 26px 0 6px; }
section { padding: 46px 0; }

/* ---- document pages (faq, support, privacy) ---- */
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 8px; }
.doc h2 {
  font-size: 1.22rem; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }
.doc h3 { font-size: 1.04rem; margin-top: 28px; color: var(--text); }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: 9px; }
.doc .stamp { color: var(--dim); font-size: .9rem; margin-bottom: 30px; }
.doc { padding-bottom: 20px; }

/* ---- callout ---- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: rgba(245,181,68,.045); border-radius: var(--radius);
  padding: 16px 18px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--muted); }
.callout b { color: var(--amber); display: block; margin-bottom: 4px; }

/* ---- advisory strip ---- */
.advisory {
  border-top: 1px solid var(--line); background: rgba(245,181,68,.045);
  margin-top: 40px; padding: 26px 0 30px;
}
.advisory .in { max-width: 44rem; margin: 0 auto; padding: 0 22px; }
.advisory b { color: var(--amber); display: block; margin-bottom: 4px; }
.advisory p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- footer ---- */
footer { text-align: center; color: var(--dim); font-size: .88rem; padding: 30px 22px 54px; }
footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--text); }
footer p { margin: 0 0 8px; }
