/* ============================================================
   Gitvance theme — shared across all pages
   Light, modern, trustworthy. Import this on every page:
   <link rel="stylesheet" href="theme.css">
   ============================================================ */

/* Fonts are loaded via <link> tags in each page's <head>, not @import,
   since @import blocks rendering and is slower on most CDNs. */

:root {
  /* Surfaces & ink */
  --bg:            #F6F7FA;   /* page background — cool light gray, not cream */
  --surface:       #FFFFFF;   /* cards, nav */
  --surface-2:     #FBFBFD;   /* subtle inset panels */
  --ink:           #181B26;   /* primary text */
  --ink-soft:      #51566A;   /* secondary text */
  --ink-faint:     #878CA0;   /* hints, captions */
  --border:        #E7E9F0;   /* hairline */
  --border-strong: #D4D7E3;   /* hover / emphasis */

  /* Brand */
  --brand:         #4339C9;   /* primary actions, links */
  --brand-hover:   #372FA8;
  --brand-tint:    #ECEBFB;   /* brand-wash backgrounds */
  --brand-ink:     #FFFFFF;   /* text on brand */

  /* Module accents — the recurring visual language */
  --m-assess:      #0E9A78;   --m-assess-tint:  #E2F4EE;
  --m-forms:       #2A6BD4;   --m-forms-tint:   #E6EEFB;
  --m-product:     #6B57E0;   --m-product-tint: #ECE9FB;
  --m-ai:          #DD6B3E;   --m-ai-tint:      #FBEDE5;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Shape & rhythm */
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(24,27,38,0.04), 0 1px 3px rgba(24,27,38,0.06);
  --shadow-md: 0 4px 16px rgba(24,27,38,0.06), 0 1px 4px rgba(24,27,38,0.04);
  --maxw: 1080px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(24,27,38,0.035) 1px, transparent 1.5px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

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

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  padding: 11px 20px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .16s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-faint); }

/* ---------- module chip (the signature element) ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex: none;
}
.chip .ic { font-size: 18px; }
/* inline svg icons: size via font-size, color via currentColor */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none;
      fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-assess  { background: var(--m-assess-tint);  color: var(--m-assess); }
.chip-forms   { background: var(--m-forms-tint);   color: var(--m-forms); }
.chip-product { background: var(--m-product-tint); color: var(--m-product); }
.chip-ai      { background: var(--m-ai-tint);      color: var(--m-ai); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,250,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.brand-glyph {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 26px; height: 26px;
}
.brand-glyph span { border-radius: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 450; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .nav-sec { display: none; }
  .nav-links { gap: 16px; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 36px 0; }
.footer a { color: var(--ink-soft); font-size: 14px; }
.footer a:hover { color: var(--ink); }

/* ---------- motion ---------- */

/* ---------- legal documents (privacy, terms, refunds) ---------- */
.doc-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 56px 0 40px; }
.doc-head h1 { font-size: 38px; letter-spacing: -0.02em; }
.doc-head .updated { color: var(--ink-faint); font-size: 14px; margin-top: 12px; }
.doc-head .intro { color: var(--ink-soft); font-size: 17px; margin-top: 16px; max-width: 60ch; }
.draft-note { background: #FBF3E2; border: 1px solid #E9D9B0; border-radius: var(--radius); padding: 14px 18px; margin-top: 22px; color: #7A5B12; font-size: 14px; line-height: 1.6; }
.draft-note strong { color: #5E450C; font-weight: 500; }

.doc-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 52px; padding: 48px 0 72px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc p { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.toc a { display: block; color: var(--ink-soft); padding: 5px 0; line-height: 1.4; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.toc a:hover { color: var(--ink); border-color: var(--border-strong); }

.doc-body { max-width: 720px; }
.doc-body section { padding: 0 0 8px; scroll-margin-top: 84px; }
.doc-body h2 { font-size: 22px; margin: 32px 0 12px; }
.doc-body h2:first-child, .doc-body section:first-child h2 { margin-top: 0; }
.doc-body h3 { font-size: 16px; margin: 22px 0 8px; }
.doc-body p { color: var(--ink-soft); margin: 0 0 14px; }
.doc-body ul, .doc-body ol { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { text-decoration: underline; }
.doc-body .ph { background: var(--brand-tint); color: var(--brand); padding: 1px 6px; border-radius: 5px; font-size: 14px; font-family: var(--font-mono); }

@media (max-width: 820px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .doc-head h1 { font-size: 30px; }
}
