/* jd-intel landing — single-column, light, accessible */

:root {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --link: #5b1a1a;
  --link-hover: #3d1010;
  --code-bg: #f1ece4;
  --code-text: #1a1a1a;
  --pre-bg: #1e1c18;
  --pre-text: #e6dfd0;
  --border: #e3ddd1;
  --nav-bg: #1a1a1a;
  --nav-border: #2a2a2a;
  --nav-text: #ffffff;
  --nav-muted: #a0a0a0;
  --nav-accent: #d97a7a;
  --max-width: 1400px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

@media (max-width: 600px) {
  main { padding: 24px 20px 48px; }
}

/* === TOPNAV === */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.topnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.topnav-brand-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.15s ease;
}

.topnav-brand:hover .topnav-brand-img {
  opacity: 0.85;
}

.topnav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  display: flex;
  gap: 22px;
  align-items: center;
}

.topnav-links li { margin: 0; }

.topnav-links a {
  color: var(--nav-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topnav-links a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.topnav-links a.active {
  color: var(--nav-text);
  border-bottom-color: var(--nav-accent);
}

@media (max-width: 600px) {
  .topnav-inner { padding: 12px 20px; gap: 12px; }
  .topnav-links { gap: 14px; }
  /* On mobile, keep the brand visible and hide the nav links;
     the masthead install callout is the primary mobile CTA. */
  .topnav-links { display: none; }
}

/* === ACCESSIBILITY === */

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === TYPOGRAPHY === */

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 8px;
  line-height: 1.3;
  color: var(--text);
}

p { margin: 0 0 16px; }

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

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

ul, ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

li { margin-bottom: 4px; }

code {
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--code-text);
}

pre {
  background: var(--pre-bg);
  color: var(--pre-text);
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 12px 0 16px;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* === RHYTHM === */

section, header {
  margin-bottom: 56px;
}

footer { margin-bottom: 0; }

@media (max-width: 600px) {
  section, header { margin-bottom: 40px; }
}

/* === MASTHEAD === */

.masthead { padding-top: 8px; }

.masthead-headline {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.masthead-intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hook {
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .hook { font-size: 1.4rem; }
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.hero-tagline strong {
  font-weight: 700;
  color: var(--text);
}

.masthead-headline .badges {
  flex-shrink: 0;
  margin: 0;
  padding-top: 4px;
}

/* === HERO LEFT COL: prompts === */

.hero-prompts {
  margin: 0;
  list-style: none;
  padding: 0;
}

.hero-prompts .prompt-pair {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--link);
  border-radius: 6px;
  margin-bottom: 12px;
  font-style: normal;
}

.hero-prompts .prompt-pair:last-child { margin-bottom: 0; }

.hero-prompts .prompt-q {
  font-style: italic;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-prompts .prompt-a {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.45;
}

/* === WHAT IT IS (below hero, 2-col) === */

.what-it-is {
  margin: 0 0 56px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.what-col-positioning p {
  margin: 6px 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

.what-col-positioning .positioning-resolve {
  margin-top: 16px;
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.what-col-how .how-block-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.what-col-how .how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.what-col-how .how-steps li {
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.what-col-how .how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 26px;
}

.sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: stretch;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .masthead-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.masthead-col-left,
.masthead-col-right {
  min-width: 0;
}

.masthead-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

/* Left-column blocks (positioning + how-it-works) */
.positioning-block {
  margin: 0 0 32px;
}

.positioning-block p {
  margin: 6px 0;
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

.positioning-block .positioning-resolve {
  margin-top: 18px;
  font-size: 1.5rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.how-block { margin: 0; }

.how-block-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.how-steps-compact li {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.install-callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 0 0 24px;
}

.install-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.install-cmd {
  margin: 0 0 12px;
  font-size: 1rem;
}

.install-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.install-note a {
  color: var(--link);
  font-weight: 600;
  white-space: nowrap;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  align-items: center;
}

.badges img { height: 24px; }

/* === PROOF (in masthead right column) === */

.proof-figure {
  margin: 0;
  padding: 0;
}

.proof-caption-top {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.proof-gif {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  background: var(--bg-alt);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.proof-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* === PROMPTS === */

.prompt-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.prompt-list li {
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--link);
  border-radius: 6px;
  margin-bottom: 8px;
  font-style: italic;
  color: var(--text);
}

.prompts-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 16px 0 0;
}

/* === INSTALL === */

.install h3 {
  margin-top: 32px;
}

.install h3:first-of-type {
  margin-top: 24px;
}

.install-steps {
  padding-left: 24px;
}

.install-steps li {
  margin-bottom: 12px;
}

.install-steps li pre {
  margin: 8px 0 0;
}

.config-paths {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.config-paths li {
  margin-bottom: 6px;
  padding-left: 0;
}

/* === HOW === */

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.how-steps li {
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: 16px;
}

.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 26px;
}

.how-steps strong { font-weight: 700; }

/* === COVERAGE === */

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 600px) {
  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.coverage-grid h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.coverage-grid > div > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.coverage-grid li {
  font-weight: 600;
  padding: 4px 0;
  margin: 0;
}

.coverage-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* === FOOTER === */

footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  text-align: center;
}

.built-by {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 12px;
}

.footer-links {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-links a {
  margin: 0 4px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
