/*
 * entreprenoid.com — one stylesheet, three pages.
 *
 * ⚠️ **External, not inline, and that is the whole reason it exists.** The site
 * was one page with ~40 lines of inline `<style>`. Three pages would have been
 * three copies of it, which is the "a list nothing checks should not be written
 * down twice" failure in CSS form: the third page's dark mode is the one that
 * quietly stops matching.
 *
 * ⚠️ **Still no build step.** No framework, no preprocessor, no purge. The
 * page's speed is part of the pitch -- a site that sells measuring what agents
 * see should not ship a megabyte of JavaScript to say so.
 *
 * ── The palette ──────────────────────────────────────────────────────────────
 * Chartreuse #C6F335 and near-black #161816, from `docs/design/brand/`.
 *
 * ⚠️ **Chartreuse is NOT a link colour on white.** Against #FFFFFF it measures
 * about 1.4:1 -- far below the 4.5:1 floor and, in practice, invisible. It is
 * used here as a FILL (button, rule, marker, underline) with near-black text on
 * it, which is ~13:1 and excellent. In dark mode it becomes the text accent on
 * #161816, which is ~14:1. So `--accent` is deliberately a different KIND of
 * token in each theme, and `--accent-ink` is what you put on top of it.
 */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/lexend-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "B612 Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/b612-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-chartreuse: #c6f335;
  --brand-ink: #161816;

  --ink: var(--brand-ink);
  --muted: #5b6672;
  --line: #e4e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f8f5;

  /* Light: the accent is a FILL. Text on it is near-black. */
  --accent: var(--brand-chartreuse);
  --accent-ink: var(--brand-ink);
  /* Light: link TEXT stays ink, and the chartreuse arrives as an underline. */
  --link: var(--brand-ink);

  --font-sans: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1ec;
    --muted: #9aa5a0;
    --line: #2a2e2a;
    --bg: var(--brand-ink);
    --bg-soft: #1d201d;

    --accent: var(--brand-chartreuse);
    --accent-ink: var(--brand-ink);
    /* Dark: chartreuse on near-black is ~14:1, so here it CAN be text. */
    --link: var(--brand-chartreuse);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header and nav ─────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem 0;
}

/*
 * ⚠️ The height sets the CANVAS, not the letters. The wordmark PNG carries
 * about 8% transparent padding (530x98 with the ink inset at +4+4), so the
 * lettering renders ~8% shorter than whatever is set here. `Shell.tsx` in the
 * dashboard carries the same note for the same reason. Re-measure with
 * `magick <file> -trim info:` if the pack is re-exported.
 */
.brand img {
  display: block;
  height: 2rem;
  width: auto;
}

nav.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

/* ── Type ───────────────────────────────────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

li {
  margin: 0.4rem 0;
}

li::marker {
  color: var(--muted);
}

strong {
  font-weight: 600;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.6;
}

:not(pre) > code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.3em;
}

a {
  color: var(--link);
  text-decoration-color: var(--brand-chartreuse);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

header.hero {
  padding: 2.5rem 0 3rem;
}

section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
 * The one number on the page big enough to be read on its own. Kept as a
 * class rather than a heading because it is a statistic, not a section: a
 * screen reader should meet it in the flow of the paragraph that sources it.
 */
.stat {
  font-size: clamp(1.375rem, 3.4vw, 1.875rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--brand-chartreuse);
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 2rem 0 0;
}

/* The line that follows a CTA row -- integrations, a caveat -- needs air, or it
   reads as part of the button. */
.cta-row + p {
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
}

.button:hover {
  filter: brightness(0.94);
}

footer {
  padding: 2.75rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--link);
}

/*
 * A source citation sitting directly under the claim it supports.
 *
 * ⚠️ Every statistic on this site carries one. That is not a legal habit, it
 * is the product's whole differentiator rendered in CSS: a page that will not
 * overstate what it knows cannot print a round number it cannot source.
 */
.cite {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin: -0.5rem 0 1.25rem;
}
