/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #1a1a1b;
  font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.jf-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background-color: #000;
  height: 45px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.jf-navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.jf-navbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.jf-navbar-play {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 14px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  transition: background 0.15s;
}

.jf-navbar-play:hover { background: rgba(255,255,255,0.1); }

/* ── Page shell ── */
.jf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 45px;
}

.jf-main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  width: 100%;
}

/* ── Hero ── */
.jf-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.jf-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #4a8440;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.jf-h1 {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: #1a1a1b;
}

.jf-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #555;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Demo board ── */
.jf-board-link {
  display: block;
  text-decoration: none;
  margin: 0 auto 2rem;
  max-width: 320px;
  cursor: pointer;
}
.jf-board-link:hover .jf-board-img {
  box-shadow: 0 6px 28px rgba(74,132,64,0.22);
  transform: translateY(-2px);
}
.jf-board-wrap {
  margin: 0 auto 2rem;
  max-width: 320px;
}

.jf-board-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}

.jf-board-caption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── CTA buttons ── */
.jf-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.jf-btn-primary {
  display: inline-block;
  background-color: #4a8440;
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.jf-btn-primary:hover { background-color: #3a6e32; }

.jf-btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #4a8440;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #4a8440;
  transition: background-color 0.15s, color 0.15s;
}
.jf-btn-secondary:hover { background-color: #4a8440; color: #fff; }

/* ── Sections ── */
.jf-section {
  margin-bottom: 4rem;
}

.jf-section h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #1a1a1b;
}

.jf-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* ── Markdown body content ── */
.jf-markdown { font-size: 1.05rem; line-height: 1.7; color: #333; }
.jf-markdown h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; color: #1a1a1b; }
.jf-markdown h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #1a1a1b; }
.jf-markdown p { margin-bottom: 1rem; }
.jf-markdown ul, .jf-markdown ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.jf-markdown li { margin-bottom: 0.4rem; }
.jf-markdown strong { font-weight: 700; color: #1a1a1b; }
.jf-markdown a { color: #4a8440; }
.jf-markdown a:hover { text-decoration: underline; }
.jf-markdown hr { border: none; border-top: 1px solid #e0e0e0; margin: 2rem 0; }

/* ── How it works ── */
.jf-how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.jf-how-list > li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

.jf-how-list > li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background-color: #4a8440;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.jf-how-list ul {
  list-style: none;
  padding-left: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.jf-how-list ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.jf-how-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
}

.jf-how-list ul li.jf-bullet-correct::before {
  background-color: #4a8440;
}

.jf-how-list ul li.jf-bullet-present::before {
  background-color: #BE8D01;
}

.jf-how-list ul li.jf-bullet-absent::before {
  background-color: #858788;
}

/* ── FAQ ── */
.jf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.jf-faq-list dt {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a1b;
  margin-bottom: 0.4rem;
}

.jf-faq-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* ── Also Try grid ── */
.jf-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.jf-topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jf-topic-card:hover {
  border-color: #4a8440;
  box-shadow: 0 2px 12px rgba(74,132,64,0.12);
}

.jf-topic-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1b;
}

.jf-topic-cta {
  font-size: 0.85rem;
  color: #4a8440;
}

/* ── Footer ── */
.jf-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.875rem;
  color: #777;
  margin-top: auto;
}

.jf-footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.jf-footer-links a { color: #555; text-decoration: none; }
.jf-footer-links a:hover { color: #4a8440; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .jf-navbar-brand { font-size: 20px; }

  .jf-main { padding: 2rem 1.25rem 4rem; }

  .jf-cta-row { flex-direction: column; align-items: center; }

  .jf-btn-primary, .jf-btn-secondary {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  .jf-topics-grid { grid-template-columns: 1fr; }
}
