/*
 * Shared styles for the plain site pages (/support, /privacy).
 * Follows docs/brand/BRAND.md: Home tokens, Inter only, solid navy surfaces,
 * nothing under 15px. /about carries its own copy of the tokens inline.
 */
:root {
  --bg: #070b15;
  --raised: #141d2f;
  --card: #1f2b42;
  --line: #33445f;
  --text: #f8fafc;
  --text-2: #d5deea;
  --muted: #a7b3c5;
  --orange: #f97316;
  --cyan: #22d3ee;
  --on-accent: #0b0f1a;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/27px 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1.5px solid var(--raised); }
.top .wrap { max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  color: var(--text); text-decoration: none;
  font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em;
}
.brand img { width: 44px; height: auto; }
.top-links { display: flex; align-items: center; gap: 8px; }
.top-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 999px;
  color: var(--text-2); text-decoration: none;
  font-size: 16px; line-height: 22px; font-weight: 600;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.top-link:hover, .top-link[aria-current='page'] { color: var(--text); background: var(--raised); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 14px;
  background: var(--orange); color: var(--on-accent); text-decoration: none;
  font-size: 17px; line-height: 25px; font-weight: 700;
  transition: background-color 160ms var(--ease);
}
.btn:hover { background: #fb923c; }
.btn-compact { min-height: 48px; padding: 0 20px; font-size: 16px; margin-left: 8px; }
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--line); }
.btn-secondary:hover { background: var(--line); }

/* Page head */
main { padding: 48px 0 72px; }
.kicker {
  margin: 0 0 12px; color: var(--cyan);
  font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(36px, 7vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin: 16px 0 0; color: var(--text-2); font-size: 19px; line-height: 28px; }
.updated { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 20px; font-weight: 600; }

/* Prose (privacy) */
.prose { margin-top: 32px; }
.prose h2 {
  margin: 36px 0 10px; padding-top: 28px; border-top: 1.5px solid var(--raised);
  font-size: 22px; line-height: 28px; font-weight: 800;
}
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.callout {
  background: var(--raised); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 20px; margin: 20px 0 0;
}
.prose .callout p { margin: 0; }

/* Panels (support) */
.panels { margin-top: 32px; display: grid; gap: 16px; }
.panel { background: var(--raised); border: 1.5px solid var(--line); border-radius: 24px; padding: 24px; scroll-margin-top: 96px; }
.panel h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; }
.panel h3 { margin: 20px 0 0; font-size: 17px; line-height: 25px; font-weight: 700; }
.panel p { margin: 8px 0 0; color: var(--text-2); }
.panel ol, .panel ul { margin: 10px 0 0; padding-left: 22px; color: var(--text-2); }
.panel li { margin-bottom: 6px; }
.panel strong { color: var(--text); font-weight: 700; }
.panel .actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.panel-lead { border: 2px solid #b2590f; } /* orange edge, 72% into the night */
.mail { font-size: 22px; line-height: 28px; font-weight: 800; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }

/* Footer */
.foot { border-top: 1.5px solid var(--raised); padding: 28px 0 40px; }
.foot .wrap { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot .brand { font-size: 19px; }
.foot .brand img { width: 36px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-copy { margin: 0; color: var(--muted); font-size: 15px; line-height: 20px; }

@media (max-width: 720px) {
  main { padding: 32px 0 56px; }
  .top .top-link { display: none; }
  .panel { padding: 20px; }
  .panel .actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .top-link { transition: none; }
}
