/* ============================================================
   The Investor's Journey — site stylesheet
   One file, loaded on every page. Deliberately not inline:
   the IncomeTrader pages repeat their CSS in every file, which
   is why a colour change there means editing six documents.
   ============================================================ */

:root {
  /* Ink and paper — this is a school and a book, not a trading floor */
  --ink:        #16202b;
  --ink-soft:   #3c4a5a;
  --ink-mute:   #6b7889;
  --paper:      #ffffff;
  --paper-warm: #faf8f4;
  --paper-tint: #f2f5f8;
  --rule:       #e2e7ec;

  /* Accent: aged gold, like a hardback spine */
  --gold:       #a8791f;
  --gold-soft:  #c9962e;
  --gold-wash:  #fbf4e4;

  /* Deep navy for anchors and inversions */
  --navy:       #1d3350;
  --navy-deep:  #14263d;

  --ok:         #2f6b46;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --w:      1120px;
  --w-read: 720px;
  --r:      10px;
  --shadow: 0 1px 2px rgba(22,32,43,.04), 0 8px 24px -12px rgba(22,32,43,.18);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; }

.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: 24px; }
.read { max-width: var(--w-read); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border: 1px solid var(--navy); border-radius: var(--r);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #8f6718; border-color: #8f6718; color: #fff; }
.btn-quiet { background: transparent; color: var(--navy); border-color: var(--rule); }
.btn-quiet:hover { background: var(--paper-tint); border-color: var(--navy); color: var(--navy); }
.btn-sm { font-size: 14px; padding: 9px 16px; border-radius: 8px; }

.cta-terms { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }

/* ── Masthead ──────────────────────────────────────────────── */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; gap: 24px; min-height: 82px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px;
  background: var(--navy); color: var(--gold-soft);
  font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  display: grid; place-items: center;
}
.brand-name { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.brand-sub  { display: block; font-size: 12px; color: var(--ink-mute); letter-spacing: .01em; }

.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.primary-nav a {
  display: block; padding: 9px 13px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.primary-nav a:hover { background: var(--paper-tint); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-tint); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-cta a { color: #fff !important; }
.nav-cta a:hover { background: var(--navy-deep) !important; }

.nav-toggle { display: none; }

/* ── Educational disclosure band ───────────────────────────── */
.disclosure { background: var(--paper-warm); border-bottom: 1px solid var(--rule); }
.disclosure-inner { padding-block: 18px; }
.disclosure h2 {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.disclosure p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); max-width: 88ch; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding-block: 72px 64px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede { font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hero-fact { font-size: 14px; color: var(--ink-mute); }
.hero-fact strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 600; }

/* Hero card — the book */
.hero-card {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: 14px; padding: 30px; box-shadow: var(--shadow);
}
.hero-card-label { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero-card h2 { font-size: 22px; margin-bottom: 8px; }
.hero-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.hero-card li { position: relative; padding-left: 24px; font-size: 15px; }
.hero-card li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft);
}

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: 68px; border-bottom: 1px solid var(--rule); }
.section-warm { background: var(--paper-warm); }
.section-tint { background: var(--paper-tint); }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.015em; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--ink-soft); }

/* ── Skills grid ───────────────────────────────────────────── */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 26px 26px 28px;
}
.skill-num {
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: var(--gold); letter-spacing: .06em; margin-bottom: 10px;
}
.skill h3 { font-size: 19px; margin-bottom: 8px; }
.skill p { font-size: 15.5px; color: var(--ink-soft); }

/* ── Lesson cards ──────────────────────────────────────────── */
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lesson-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 24px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.lesson-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.lesson-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.lesson-card h3 { font-size: 19px; margin-bottom: 10px; }
.lesson-card p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.lesson-meta { font-size: 13px; color: var(--ink-mute); margin-top: 16px; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.badge-free   { background: var(--gold-wash); color: var(--gold); border: 1px solid #eddfbe; }
.badge-member { background: var(--paper-tint); color: var(--ink-mute); border: 1px solid var(--rule); }

/* ── Instructor strip ──────────────────────────────────────── */
.teacher { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
.teacher-photo { border-radius: 14px; overflow: hidden; background: var(--paper-tint); border: 1px solid var(--rule); }
.teacher h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.teacher-role { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.teacher p + p { margin-top: 14px; }

/* ── Callout ───────────────────────────────────────────────── */
.callout {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-left: 4px solid var(--gold); border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px;
}
.callout p + p { margin-top: 12px; }
.callout strong { color: var(--ink); }

/* ── Enroll band ───────────────────────────────────────────── */
.enroll-band { background: var(--navy); color: #dbe4ef; padding-block: 72px; }
.enroll-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.enroll-band h2 em { font-style: normal; color: var(--gold-soft); }
.enroll-band p { color: #b9c7d8; font-size: 17px; max-width: 58ch; }
.enroll-band .btn { background: #fff; border-color: #fff; color: var(--navy); }
.enroll-band .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }
.enroll-band .cta-terms { color: #9fb1c6; }
.enroll-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.enroll-band .btn-quiet { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.enroll-band .btn-quiet:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── Prose (lessons, policy pages) ─────────────────────────── */
.page-head { padding-block: 56px 40px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 12px; }
.page-head p { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.page-head .meta { font-size: 14px; color: var(--ink-mute); margin-top: 14px; }

.prose { padding-block: 48px 72px; font-size: 17.5px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 19px; color: var(--ink); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #9aa8b8; padding-block: 56px 40px; font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--serif); font-size: 19px; color: #fff; margin-bottom: 8px; }
.footer-blurb { max-width: 40ch; margin-bottom: 16px; }
.footer-contact { font-size: 14px; line-height: 1.9; }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c3d0de; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-legal { font-size: 12.5px; line-height: 1.75; color: #74828f; margin-top: 28px; max-width: 100ch; }
.footer-copy { font-size: 13px; color: #74828f; margin-top: 20px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding-block: 48px 44px; }
  .section { padding-block: 48px; }
  .skills, .lesson-grid { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 1fr; gap: 24px; }
  .teacher-photo { max-width: 160px; }

  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: transparent; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: relative; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after  { top: 4px; }

  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; padding-bottom: 16px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta a { display: block; text-align: center; }
  .masthead-inner { flex-wrap: wrap; }
}

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

/* ── Curriculum ────────────────────────────────────────────── */
.mod-stats { display: flex; flex-wrap: wrap; gap: 32px; padding: 24px 0 0; }
.mod-stat strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 600; }
.mod-stat span { font-size: 14px; color: var(--ink-mute); }

.modules { display: grid; gap: 18px; }
.module {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 26px 28px;
}
.module-n {
  font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.module-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.module h3 { font-size: 20px; }
.module-summary { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 16px; max-width: 68ch; }
.module-covers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
.module-covers li { position: relative; padding-left: 22px; font-size: 15px; }
.module-covers li::before {
  content: ''; position: absolute; left: 3px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft);
}
.module-meta { font-size: 13.5px; color: var(--ink-mute); border-top: 1px solid var(--rule); padding-top: 12px; }

.not-list { display: grid; gap: 10px; list-style: none; padding: 0; margin-top: 16px; }
.not-list li { position: relative; padding-left: 26px; }
.not-list li::before {
  content: '\00d7'; position: absolute; left: 4px; top: -1px;
  color: #b4463a; font-weight: 700; font-size: 18px;
}

/* ── Enroll ────────────────────────────────────────────────── */
.price-box {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: 14px; padding: 32px; box-shadow: var(--shadow);
}
.price-now { font-family: var(--serif); font-size: 42px; color: var(--ink); font-weight: 600; line-height: 1; }
.price-then { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
.price-then strong { color: var(--ink); }
.price-rule { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.price-box .btn { width: 100%; }

.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; list-style: none; padding: 0; }
.includes li { position: relative; padding-left: 26px; font-size: 15.5px; }
.includes li::before {
  content: '\2713'; position: absolute; left: 2px; top: -1px;
  color: var(--ok); font-weight: 700;
}
.includes li strong { color: var(--ink); }

.tools-note {
  background: var(--paper-tint); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 22px 26px; margin-top: 28px;
}
.tools-note h3 { font-size: 17px; margin-bottom: 8px; }
.tools-note p { font-size: 15.5px; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 18px 22px;
}
.faq summary {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ' +'; color: var(--gold); font-family: var(--sans); }
.faq details[open] summary::after { content: ' \2212'; }
.faq details p { font-size: 15.5px; margin-top: 12px; }
.faq details p + p { margin-top: 10px; }

@media (max-width: 760px) {
  .module { grid-template-columns: 1fr; gap: 12px; }
  .includes { grid-template-columns: 1fr; }
}

/* ── Figures inside lessons ────────────────────────────────── */
.figure { margin: 30px 0; }
.figure img { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); display: block; }
.figure-placeholder {
  border: 2px dashed var(--rule); border-radius: var(--r);
  background: var(--paper-warm); padding: 34px 28px; text-align: center;
}
.figure-placeholder .fp-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.figure-placeholder .fp-what { font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.figure-placeholder .fp-how { font-size: 14px; color: var(--ink-mute); max-width: 52ch; margin: 0 auto; }
.figure figcaption {
  font-size: 14.5px; color: var(--ink-mute); line-height: 1.6;
  margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--gold-soft);
}
.figure figcaption strong { color: var(--ink-soft); }

/* Numbers pulled out of the text */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 30px; }
.three-up div {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--r); padding: 20px 18px; text-align: center;
}
.three-up .n { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.three-up .l { font-size: 13.5px; color: var(--ink-mute); margin-top: 8px; line-height: 1.45; }

/* Do-this-now step */
.do-this {
  background: var(--navy); color: #dbe4ef; border-radius: 12px;
  padding: 28px 30px; margin: 34px 0 10px;
}
.do-this h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.do-this p { color: #b9c7d8; margin-bottom: 12px; }
.do-this ol { margin: 0 0 18px 20px; }
.do-this li { color: #cdd9e6; margin-bottom: 8px; }
.do-this .btn { background: #fff; border-color: #fff; color: var(--navy); }
.do-this .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); }
.do-this .cta-terms { color: #93a7bd; }

@media (max-width: 640px) {
  .three-up { grid-template-columns: 1fr; }
}

/* Punchy closing line, for the short-beat article style */
.prose .closer {
  font-family: var(--serif); font-size: 26px; color: var(--ink);
  font-weight: 600; margin: 6px 0 4px; letter-spacing: -.01em;
}
.prose .smallprint { font-size: 14.5px; color: var(--ink-mute); margin-top: 26px; }
/* Figures that sit directly under a heading need a little less air above */
.prose h2 + .figure { margin-top: 20px; }

/* Numbered checklist inside a lesson */
.prose ol.four-up {
  margin: 26px 0;
  padding: 22px 26px 22px 46px;
  background: #f7f5f0;
  border-left: 3px solid var(--gold, #b08d33);
  border-radius: 4px;
}
.prose ol.four-up li { margin: 6px 0; font-weight: 500; }