/* Font loading moved to <link rel="preconnect"> + <link> tags in each
   page's <head> — a CSS @import here blocks rendering behind an extra
   round trip, a real, measurable Core Web Vitals cost. */

:root {
  /* Matches the actual BluCollar app's real palette exactly (see
     fieldslip/css/home.css). Variable names below are kept as they
     were in the first draft (navy, line, ink, copper-light) even
     though the app's own variable names differ — renaming risks
     missing a reference somewhere across five pages of inline
     styles, so only the values changed here, not the names. */
  --navy: #101C2C;
  --navy-deep: #0A1420;
  --line: #F5F3EE;
  --line-dim: #A0ACBC;
  --paper: #EEEAE0;
  --paper-deep: #E3DDCE;
  --ink: #1C1B17;
  --ink-soft: #55523F;
  /* The app's own "--copper" variable is actually blue (#3355FF) —
     an old naming leftover, kept under the same name here for the
     same low-risk reason as above. */
  --copper: #3355FF;
  --copper-deep: #1830B8;
  --copper-light: #8FA6FF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(245, 243, 238, 0.14);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 0;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-logo-mark { display: block; line-height: 0; flex: none; }
.nav-logo-mark img { display: block; width: 44px; height: 44px; }
@media (max-width: 560px) {
  .nav-logo-mark img { width: 36px; height: 36px; }
  /* the round mark needs a little breathing room at the screen edge */
  .site-nav .wrap { padding-left: 14px; padding-right: 14px; }
}
.nav-slogan {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--line-dim);
  margin: 2px 0 0;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--line);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--line-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--line); }
.nav-signin {
  border: 1px solid rgba(245, 243, 238, 0.4);
  border-radius: 6px;
  padding: 9px 20px !important;
  color: var(--line) !important;
}
.nav-signin:hover {
  background: rgba(245, 243, 238, 0.1);
  border-color: var(--line);
}
.nav-heartworks {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(51, 85, 255, 0.5);
  border-radius: 6px;
  padding: 9px 16px !important;
  color: var(--copper-light) !important;
  font-size: 14px !important;
}
.nav-heartworks:hover {
  background: rgba(51, 85, 255, 0.1);
  border-color: var(--copper-light);
  color: var(--line) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--line);
  cursor: pointer;
  padding: 8px;
}

.nav-template-download {
  font-size: 14px !important;
  white-space: nowrap;
  text-decoration: none !important;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-template-download { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 32px 24px;
    border-bottom: 1px solid rgba(245, 243, 238, 0.14);
  }
  .nav-links.is-open a { padding: 10px 0; width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-copper {
  background: var(--copper);
  color: #FFF7EE;
}
.btn-copper:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(245, 243, 238, 0.4);
  color: var(--line);
}
.btn-outline-light:hover { border-color: var(--line); background: rgba(245, 243, 238, 0.08); }
.btn-outline-dark {
  background: transparent;
  border: 1px solid rgba(28, 27, 23, 0.3);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(28, 27, 23, 0.05); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-navy { background: var(--navy); color: var(--line); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-copper { background: var(--copper); color: #FFF7EE; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-navy .section-head p { color: var(--line-dim); }

/* ---------- Blueprint corner ticks — a recurring structural device,
   marking sections like corner registration marks on a real
   blueprint sheet. ---------- */
.blueprint-frame {
  position: relative;
  border: 1px solid rgba(245, 243, 238, 0.25);
}
.blueprint-frame::before, .blueprint-frame::after,
.blueprint-frame .tick-br, .blueprint-frame .tick-bl {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-dim);
}
.blueprint-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.blueprint-frame::after { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.blueprint-frame .tick-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.blueprint-frame .tick-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--line-dim);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.12);
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo-mark { display: block; width: 52px; height: 52px; flex: none; }
.footer-brand .nav-logo { display: block; margin-bottom: 4px; }
.footer-slogan {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--line-dim);
  margin: 0 0 14px;
}
.footer-brand p { max-width: 34ch; font-size: 14px; margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--line);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--line-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--line); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .footer-top { flex-direction: column; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Feature grid — a fixed 2-column layout (not auto-fit,
   which produced an unpredictable column count at wide viewports and
   broke the hand-placed dividers below) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > div { border-right: none !important; }
  .stack-mobile, .stack-mobile-3, .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-grid > div { border-left: none !important; border-top-width: 4px !important; }
}
