/* ─── SHARED SUPPORT-PAGE STYLESHEET ──────────────────────────────────────────
 *
 * Canonical styles for public pages under /support/. Brand tokens mirror the
 * marketing site (web/src/App.css).
 *
 * WHY A FILE AND NOT A <style> BLOCK: the two original support pages each carry
 * their own ~250-line inline copy, and they have already drifted apart (179
 * differing lines as of 2026-07-28). That was survivable at two pages and is not
 * at ten. New pages link this; one edit reaches all of them, and browsers cache
 * it across the set.
 *
 * The two originals are deliberately NOT migrated yet:
 *   · /support/quickbooks-desktop/ is mid-indexing in Search Console and a
 *     cosmetic refactor is not worth the risk while that settles.
 *   · the internal noindex playbook in this directory has page-specific styles
 *     this file does not carry. Its path is deliberately not written here — it
 *     is unlisted rather than authenticated, and a CSS comment ships to the
 *     public just like the HTML does.
 * Fold them in when both are quiet; until then treat this as the source of
 * truth for anything new.
 *
 * Ships automatically — deploy.sh rsyncs web/dist/support/ wholesale.
 */

@font-face {
  font-family: "Outfit";
  src: url("/brand/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/brand/fonts/orbitron-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0711;
  --card: #13101f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ece9f5;
  --text2: #a39bbd;
  --muted: #4a4363;
  --accent: #8b46ff;
  --accent-deep: #5b12d6;
  --accent2: #47bfff;
  --accent-soft: rgba(139, 70, 255, 0.1);
  --font-display: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "Orbitron", "Outfit", sans-serif;
  --max: 760px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── Chrome ──────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 7, 17, 0.82);
  backdrop-filter: blur(16px);
  padding: 16px 24px;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 28px;
  width: auto;
  display: block;
}
.back {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
}
.back:hover {
  color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 96px;
}
/* Hub pages run a card grid and want more room than a column of prose. */
main.wide {
  max-width: 1040px;
}

/* Breadcrumbs are here for humans; the machine-readable copy is the
   BreadcrumbList JSON-LD each page carries. Keep the two saying the same
   thing — structured data contradicting the visible page is a spam signal. */
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs span {
  margin: 0 8px;
}

/* ── Type ────────────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(139, 70, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.lede {
  color: var(--text2);
  font-size: 19px;
  margin: 0 0 40px;
}
.effective {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 44px 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
h2 .num {
  color: var(--accent);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
h3 {
  font-size: 13px;
  margin: 24px 0 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
p,
ul,
ol {
  color: var(--text2);
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin-bottom: 6px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
strong {
  color: var(--text);
  font-weight: 500;
}
code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

/* ── Blocks ──────────────────────────────────────────────────────────────── */

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(139, 70, 255, 0.2);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--text2);
  background: var(--card);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td {
  color: var(--text2);
}
tr:last-child td {
  border-bottom: none;
}
/* Wide field-mapping tables must scroll inside themselves rather than pushing
   the page sideways on a phone. */
.table-scroll {
  overflow-x: auto;
}

/* ── Hub cards ───────────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.card-grid li {
  margin: 0;
}
.card {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.card:hover {
  border-color: rgba(139, 70, 255, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.card-desc {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(139, 70, 255, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.cta {
  margin: 56px 0 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.cta h2 {
  margin-top: 0;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 8px;
}
.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer.wide {
  max-width: 1040px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}
footer a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  h1 {
    font-size: 32px;
  }
  main {
    padding: 48px 20px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card:hover {
    transform: none;
  }
}
