/* ============================================================
   The Freelancer Guide — Shared stylesheet for standalone pages
   (Used by /blog/*, /about, /pricing standalone pages, etc.)
   Mirrors the design tokens of the main app so brand is consistent.
   ============================================================ */

:root {
  --ink: #0b0d11;
  --ink-2: #1f2330;
  --ink-soft: #5a6177;
  --muted: #8b91a3;
  --line: #e7e9ee;
  --line-strong: #cdd1dc;
  --bg: #fafbfc;
  --surface: #ffffff;
  --accent: #3b5bfd;
  --accent-soft: rgba(59, 91, 253, 0.08);
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout containers ---------- */
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: white;
  font-weight: 700; font-size: 15px;
}
.nav-links {
  display: flex; align-items: center; gap: 18px;
  flex: 1; flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft); font-size: 13.5px;
  font-weight: 500; text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .15s; border: 1px solid transparent;
  font-family: inherit; text-decoration: none;
  color: var(--ink); background: transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: white; border-color: var(--ink); }
.btn-primary:hover { background: #000; color: white; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: white; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.ic-svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic-svg.sm { width: 14px; height: 14px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { color: var(--ink-2); margin: 0 0 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: all .15s;
}
.card:hover { border-color: var(--line-strong); }

/* ---------- Page sections ---------- */
.section {
  padding: 64px 0;
}
.section-head {
  margin-bottom: 40px;
  max-width: 760px;
}
.kicker {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  margin-top: 80px;
}
footer .footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px;
}
footer .foot-brand p {
  margin: 10px 0 0; font-size: 13px; color: var(--muted);
  max-width: 280px; line-height: 1.55;
}
footer h5 {
  margin: 0 0 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted); font-weight: 600;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer ul a { color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
footer ul a:hover { color: var(--ink); }
.foot-bar {
  max-width: 1200px; margin: 32px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.foot-bar a { color: inherit; text-decoration: none; margin-right: 14px; }

/* ---------- Eyebrow / badges ---------- */
.ai-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 600; margin-bottom: 16px;
}
.eyebrow .dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-inner { padding: 12px 18px; gap: 16px; }
  .nav-links { gap: 14px; }
  .container, .container-narrow { padding: 0 18px; }
  footer .footer-inner { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .section { padding: 44px 0; }
}
