/* =============================================================================
   Cofit homepage — marketing/landing surface.
   Shares the v02 interview design language (warm neutral foundation, single
   slate accent, Source Serif 4 + Inter). Static document; plain media queries.
   No JavaScript, no scroll-driven motion.
   ============================================================================= */

/* Self-hosted fonts (latin subset) — same files used by style-interview.css. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/source-serif-4-500.woff2') format('woff2');
}

:root {
  /* Backgrounds */
  --bg-page: #f0eee9;
  --bg-stage: #faf8f4;
  --bg-elev: #ffffff;
  --bg-soft: #f3efe7;
  --bg-quiet: #ebe5db;

  /* Lines */
  --line: #e0d9cc;
  --line-strong: #c9bfaf;

  /* Ink */
  --ink: #1f1a14;
  --ink-2: #4a4238;
  --ink-3: #80766a;
  --ink-4: #a89e90;

  /* Brand + state */
  --accent: #2f4a6b;
  --accent-soft: #e1e7ef;
  --accent-ink: #1d3252;
  --listen: #3a6b4a;
  --listen-soft: #e1ebe1;

  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(31,26,20,0.04), 0 1px 1px rgba(31,26,20,0.02);
  --shadow-md: 0 4px 16px rgba(31,26,20,0.06), 0 1px 2px rgba(31,26,20,0.04);

  --content-max: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); }

/* ---------------------------------------------------------------------------
   Wordmark (shared look with the interview UI)
   --------------------------------------------------------------------------- */
.cf-wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.cf-wordmark-badge { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; font-family: var(--font-sans); }

/* ---------------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------------- */
.m-wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

.m-header {
  background: var(--bg-stage);
  border-bottom: 1px solid var(--line);
}
.m-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.m-header-tagline { font-size: 13.5px; color: var(--ink-3); display: none; }
.m-header-cta { font-size: 14px; font-weight: 500; color: var(--accent-ink); text-decoration: none; }
.m-header-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------------- */
.m-eyebrow { font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.m-section-title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.18; letter-spacing: -0.014em; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.m-lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 64ch; text-wrap: pretty; }
.m-prose { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; max-width: 68ch; text-wrap: pretty; }
.m-prose:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.m-hero { background: var(--bg-stage); border-bottom: 1px solid var(--line); }
.m-hero-inner { max-width: var(--content-max); margin: 0 auto; padding: 72px 24px 76px; }
.m-hero-pill { display: inline-flex; align-items: center; align-self: flex-start; padding: 6px 13px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.m-hero-title { font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; max-width: 18ch; text-wrap: balance; }
.m-hero-sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 32px; max-width: 60ch; text-wrap: pretty; }
.m-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.m-btn-primary { appearance: none; border: none; padding: 15px 26px; border-radius: 14px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 6px 18px color-mix(in oklch, var(--accent) 24%, transparent); transition: transform 160ms ease, box-shadow 160ms ease; }
.m-btn-primary:hover { transform: translateY(-1px); }
.m-btn-secondary { appearance: none; padding: 15px 22px; border-radius: 14px; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; transition: background 160ms ease, border-color 160ms ease; }
.m-btn-secondary:hover { background: var(--bg-soft); border-color: var(--ink-3); }

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.m-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.m-section.is-stage { background: var(--bg-stage); }
.m-section.is-elev { background: var(--bg-elev); }
.m-section-head { max-width: 68ch; margin-bottom: 36px; }

/* Card grid (recruiter benefits) */
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
/* Cards/people sit white on off-white stage sections, and tinted on white elev sections. */
.is-stage .m-card, .is-stage .m-person { background: var(--bg-elev); }
.is-elev .m-card, .is-elev .m-person { background: var(--bg-soft); box-shadow: none; }
.m-card-title { font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.005em; }
.m-card-body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* Numbered steps (how it works) */
.m-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.m-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.m-step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); font-weight: 400; letter-spacing: 0.04em; padding-top: 3px; min-width: 2.5ch; }
.m-step-title { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 5px; }
.m-step-body { font-size: 15px; line-height: 1.58; color: var(--ink-2); margin: 0; }

/* Term chips (methodology) */
.m-terms { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.m-term { display: inline-flex; align-items: center; padding: 7px 13px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* People (team) */
.m-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.m-person { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.m-person-name { font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.01em; }
.m-person-role { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.m-person-links { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.m-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink-2); transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.m-icon-link:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.m-icon-link svg { width: 18px; height: 18px; }

/* Closing / contact */
.m-contact-note { font-size: 14px; color: var(--ink-3); margin: 28px 0 0; max-width: 60ch; }
.m-contact-note a { color: var(--accent-ink); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.m-footer { background: var(--bg-stage); }
.m-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.m-footer p { font-size: 13px; color: var(--ink-3); margin: 0; }
.m-footer a { color: var(--ink-3); text-decoration: none; }
.m-footer a:hover { color: var(--accent-ink); }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .m-header-tagline { display: inline; }
}

@media (max-width: 768px) {
  .m-hero-inner { padding: 52px 24px 56px; }
  .m-hero-title { font-size: 34px; }
  .m-hero-sub { font-size: 16.5px; }
  .m-section { padding: 48px 0; }
  .m-section-title { font-size: 24px; }
  .m-grid { grid-template-columns: 1fr; }
  .m-people { grid-template-columns: 1fr; }
}
