/*
 * FounderOS — article layout.
 *
 * Shared by the pillar pages (FR + EN) so the two locales can never drift apart
 * visually. It reuses the EXACT design tokens of the landing page: same blue,
 * same ink, same radius, same font stack. The landing page's inline <style> is
 * deliberately untouched — this is an additive file, not a refactor of the page
 * that converts.
 */

:root {
  --fos-blue: #3b6eff;
  --fos-blue-ink: #1e4bd8;
  --fos-ink: #0b0e14;
  --fos-body: #3a4256;
  --fos-muted: #667085;
  --fos-line: #e6e9f2;
  --fos-card-bg: #f2f5ff;
  --fos-card-border: #d9e0f2;
  --fos-white: #ffffff;
  --fos-green: #1fa45b;
  --fos-amber: #e8930c;
  --fos-red: #d64541;
  --fos-radius: 14px;
  --fos-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fos-sans);
  color: var(--fos-body);
  background: var(--fos-white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--fos-ink); letter-spacing: -0.02em; line-height: 1.14; font-weight: 800; }
a { color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; color: var(--fos-blue); margin-bottom: 14px;
}

/* Header — same lockup as the landing, minus the mega-nav. */
.topbar { border-bottom: 1px solid var(--fos-line); background: var(--fos-white); }
.topbar .wrap { max-width: 1080px; display: flex; align-items: center; gap: 16px; height: 64px; }
.lock { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--fos-ink); text-decoration: none; }
.lock em { font-style: normal; color: var(--fos-blue); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.topbar nav a { color: var(--fos-muted); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--fos-ink); }
/* `.topbar nav a` outranks `.btn` on specificity, so without this the header CTA
   renders muted-blue on blue — caught in a browser, invisible in review. */
.topbar nav a.btn, .topbar nav a.btn:hover { color: #fff; font-size: 14px; padding: 9px 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fos-blue); color: #fff; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--fos-blue-ink); }
.btn:active { transform: translateY(1px); }
.btn.lg { font-size: 17px; padding: 17px 34px; }
.btn.ghost { background: transparent; color: var(--fos-ink); border: 1px solid var(--fos-card-border); }
.btn.ghost:hover { background: var(--fos-card-bg); }

/* Article */
.hero-article { padding: 56px 0 8px; }
.hero-article h1 { font-size: 42px; max-width: 18ch; }
.hero-article .lede { font-size: 19px; color: var(--fos-muted); margin-top: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--fos-muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--fos-ink); font-weight: 600; }

article { padding: 8px 0 40px; }
article h2 { font-size: 28px; margin: 52px 0 16px; }
article h3 { font-size: 19px; margin: 30px 0 10px; }
article p { margin: 0 0 16px; font-size: 17px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 9px; font-size: 17px; }
article strong { color: var(--fos-ink); font-weight: 650; }
article a:not(.btn) { color: var(--fos-blue-ink); text-decoration: underline; text-underline-offset: 2px; }

/* The direct answer — the block a person AND a machine should be able to lift. */
.answer {
  background: var(--fos-card-bg); border: 1px solid var(--fos-card-border);
  border-left: 4px solid var(--fos-blue); border-radius: var(--fos-radius);
  padding: 22px 24px; margin: 28px 0 8px;
}
.answer p:last-child { margin-bottom: 0; }
.answer p { font-size: 17.5px; color: var(--fos-ink); }

.callout {
  border: 1px solid var(--fos-line); border-radius: var(--fos-radius);
  padding: 20px 22px; margin: 26px 0; background: #fbfcff;
}
.callout .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fos-blue); margin-bottom: 10px;
}
.callout p:last-child { margin-bottom: 0; }

/* Lived case — the Sortlist stories. Visually distinct from theory. */
.lived {
  border-left: 3px solid var(--fos-ink); background: #fafbfd;
  padding: 18px 22px; margin: 24px 0; border-radius: 0 var(--fos-radius) var(--fos-radius) 0;
}
.lived .tag { color: var(--fos-ink); }
.lived p { color: var(--fos-ink); }

/* Self-diagnostic checklist */
.check { list-style: none; margin-left: 0; }
.check li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--fos-line);
}
.check li:last-child { border-bottom: none; }
.check .n {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--fos-card-bg);
  color: var(--fos-blue-ink); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

.scale { display: grid; gap: 10px; margin: 20px 0 8px; }
.scale div { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--fos-line); font-size: 15.5px; }
.scale .g { border-color: #bfe6cf; background: #f3fbf6; }
.scale .a { border-color: #f2ddb4; background: #fffaf0; }
.scale .r { border-color: #f2c4c2; background: #fff5f5; }

/* Books */
.books { display: grid; gap: 14px; margin: 22px 0; }
.book { border: 1px solid var(--fos-line); border-radius: var(--fos-radius); padding: 18px 20px; }
.book h3 { margin: 0 0 4px; font-size: 17px; }
.book .who { font-size: 13px; color: var(--fos-muted); margin-bottom: 10px; }
.book p { margin: 0; font-size: 16px; }

.reslist { columns: 2; column-gap: 28px; font-size: 15px; margin: 16px 0 0; }
.reslist li { break-inside: avoid; margin-bottom: 7px; }
@media (max-width: 620px) { .reslist { columns: 1; } }

/* FAQ — visible on the page, which is the only reason FAQPage markup is allowed. */
.faq { margin: 20px 0; }
.faq details {
  border: 1px solid var(--fos-line); border-radius: var(--fos-radius);
  padding: 16px 20px; margin-bottom: 10px; background: #fff;
}
.faq summary { font-weight: 650; color: var(--fos-ink); cursor: pointer; font-size: 17px; }
.faq summary::marker { color: var(--fos-blue); }
.faq details p { margin: 12px 0 0; }

/* CTA band — same treatment as the landing's final band. */
.ctaband { background: var(--fos-ink); color: #fff; padding: 56px 0; margin-top: 56px; }
.ctaband h2 { color: #fff; font-size: 30px; max-width: 20ch; }
.ctaband p { color: #b7becf; margin: 14px 0 24px; font-size: 17px; }
.ctaband .kicker { color: #8ba6ff; }

footer { border-top: 1px solid var(--fos-line); padding: 34px 0; font-size: 14px; color: var(--fos-muted); }
footer a { color: var(--fos-muted); }

@media (max-width: 620px) {
  .hero-article h1 { font-size: 32px; }
  article h2 { font-size: 24px; }
  .ctaband h2 { font-size: 25px; }
}
