/* ============================================================
   Khepera AI Technologies — pages.css
   Service pages and Insights articles. Loaded after style.css,
   which supplies the tokens, nav, buttons, FAQ and footer.
   ============================================================ */

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 2rem;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--gold-deep); }
.crumbs a { color: var(--parchment-dim); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.page-section { padding-top: 0; padding-bottom: 4.5rem; }
.page-section > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--parchment);
  margin-bottom: 1.6rem;
}
.page-section > h2 em { color: var(--gold); }

/* Two-up facts row: price, timeline, format */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.fact { padding: 1.6rem 1.8rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment-dim); margin-bottom: 0.5rem;
}
.fact dd { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-bright); line-height: 1.2; }
.fact dd small { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--parchment-dim); margin-top: 0.3rem; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* Checklist of what is included */
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; max-width: 70rem; }
.checks li { position: relative; padding-left: 1.8rem; color: var(--parchment-dim); line-height: 1.6; }
.checks li strong { color: var(--parchment); font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.75rem; height: 0.42rem;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); padding-top: 0.3rem;
}
.steps h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--parchment); margin-bottom: 0.3rem; }
.steps p { color: var(--parchment-dim); }

/* Cards linking to other pages */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.link-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(15, 28, 51, 0.4);
  padding: 1.8rem;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.link-card:hover { border-color: var(--line-strong); background: rgba(15, 28, 51, 0.7); }
.link-card .kicker {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.link-card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; color: var(--parchment); line-height: 1.2; margin-bottom: 0.6rem; }
.link-card p { color: var(--parchment-dim); font-size: 0.95rem; flex: 1; }
.link-card .more { margin-top: 1.2rem; color: var(--gold); font-size: 0.9rem; }

/* Closing call to action */
.page-cta {
  border: 1px solid var(--line);
  background: rgba(15, 28, 51, 0.45);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.page-cta p.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--parchment); line-height: 1.2; margin-bottom: 0.8rem;
}
.page-cta p { color: var(--parchment-dim); max-width: 52ch; margin: 0 auto 1.8rem; }
.page-cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Long-form article text */
.prose { max-width: 46rem; }
.prose .byline {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--parchment-dim); margin-bottom: 2.5rem;
}
.prose h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 400;
  color: var(--parchment); line-height: 1.2; margin: 3rem 0 1rem;
}
.prose h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--parchment); margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: var(--parchment-dim); font-size: 1.04rem; line-height: 1.8; }
.prose p { margin-bottom: 1.2rem; }
.prose strong { color: var(--parchment); font-weight: 500; }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.8rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--parchment-dim); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.prose td:first-child { color: var(--parchment); }
.table-wrap { overflow-x: auto; }

/* Homepage: "Learn more" link under each service card */
.service-more {
  display: inline-block; margin-top: 1.2rem;
  color: var(--gold); font-size: 0.88rem; text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.service-more:hover { border-color: var(--gold); }
