/*
 * Leadflow shared styles — brand tokens + repeated chrome (nav, buttons, cards, signup, footer).
 * Per-section hero/spotlight layout stays inline in each page; only the components repeated
 * across pages live here. Change the brand once via the custom properties below.
 */

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-mono-700-latin.woff2') format('woff2');
}

:root {
  --brand: oklch(0.52 0.13 150);
  --brand-active: oklch(0.5 0.13 150);
  --brand-strong: oklch(0.45 0.12 150);
  --brand-on-dark: oklch(0.68 0.13 150);
  --brand-bright: oklch(0.72 0.14 150);
  --brand-tint: oklch(0.94 0.045 150);
  --brand-tint-soft: oklch(0.96 0.03 150);

  --ink: #1d1d1f;
  --muted: #6e6e73;
  --panel: #f5f5f7;

  --font-sans: -apple-system, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* base reset (was an inline <style> in every page head) */
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

.site {
  width: 100%;
  background: #fff;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* fallback nav shown only without JavaScript */
.noscript-note {
  margin: 0;
  padding: 14px 20px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  background: var(--panel);
}
.noscript-note a { color: var(--brand); }

/* ---- nav (sticky, translucent) ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  height: 52px;
}
.nav__brand { display: flex; align-items: center; gap: 8px; }
.nav__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); }
.nav__wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 13px; color: var(--ink); }
.nav__link { opacity: 0.85; }
.nav__link--active { color: var(--brand-active); font-weight: 500; opacity: 1; }
.nav__aux { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.nav__signin { opacity: 0.85; }

/* ---- buttons / pills (font-size inherited from context) ---- */
.btn {
  display: inline-block;
  cursor: pointer;
  font-weight: 400;
  padding: 11px 26px;
  border-radius: 22px;
}
.btn--sm { padding: 6px 14px; border-radius: 16px; font-weight: 500; }
.btn--lg { padding: 12px 30px; }
.btn--primary { color: #fff; background: var(--brand); }
.btn--bright { color: #000; background: var(--brand-bright); }

/* ---- shadowed content card (lesson / feature tiles) ---- */
.card { background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }

/* ---- role / feature tag pill ---- */
.tag {
  font-size: 15px;
  color: var(--ink);
  background: var(--panel);
  padding: 11px 22px;
  border-radius: 20px;
}

/* ---- signup / CTA form ---- */
.signup { background: var(--panel); padding: 100px 40px; scroll-margin-top: 60px; }
.signup__inner { max-width: 520px; margin: 0 auto; text-align: center; }
.signup__title { font-size: 44px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; }
.signup__lede { font-size: 19px; color: var(--muted); margin: 0 0 36px; letter-spacing: -0.01em; }
.signup__form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.signup__requiredf { position: absolute; left: -5000px; }
.field {
  font: 400 16px/1 var(--font-sans);
  padding: 15px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea.field { line-height: 1.4; resize: vertical; }
.signup__submit {
  font: 500 17px/1 var(--font-sans);
  color: #fff;
  background: var(--brand);
  padding: 15px 26px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 4px;
}
.signup__status { display: none; font-size: 14px; text-align: center; margin-top: 4px; }
.signup__note { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; }

/* ---- footer ---- */
.footer { background: var(--panel); border-top: 1px solid rgba(0, 0, 0, 0.06); }
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 40px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__links { display: flex; gap: 24px; }
