/* Sub-page–specific styles */

/* How it works · step list */
.step-list { display: grid; gap: 24px; }
.step {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step-side { display: flex; flex-direction: column; gap: 6px; }
.step-num { color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.step-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.step-body { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.step-features { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.step-features li { padding-left: 18px; position: relative; }
.step-features li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--font-mono); font-size: 13px;
}

/* Pricing · fine-print */
.price-fine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-fine-cell {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper);
}

/* Per-tier "this tier is for you if..." inline copy on each price card */
.price-tier-fit {
  margin: 0;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}
.price-card.featured .price-tier-fit {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border-left-color: var(--accent-soft);
}

/* Userback callout band — the price moat in one strip */
.price-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 36px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
}
.price-callout-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
.price-callout-body h3 { color: var(--ink); }
.price-callout-body p em { color: var(--accent-deep); font-style: italic; }

/* Within-tier feature comparison matrix */
.pricing-matrix-wrap {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.pricing-matrix thead th {
  background: var(--paper-2);
  padding: 16px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
}
.pricing-matrix thead th:first-child {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.pricing-matrix tbody th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: middle;
}
.pricing-matrix tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-2);
  vertical-align: middle;
  font-size: 14px;
}
.pricing-matrix tbody tr:last-child th,
.pricing-matrix tbody tr:last-child td { border-bottom: none; }
.pricing-matrix tbody tr:hover {
  background: var(--paper-2);
}
.pricing-matrix .pricing-matrix-featured {
  background: color-mix(in oklab, var(--accent-soft) 35%, var(--paper));
  color: var(--accent-deep);
  font-weight: 500;
}
.pricing-matrix tbody tr:hover .pricing-matrix-featured {
  background: color-mix(in oklab, var(--accent-soft) 55%, var(--paper));
}
.pricing-matrix th:nth-child(1), .pricing-matrix td:nth-child(1) { width: 38%; }
.pricing-matrix th:not(:first-child), .pricing-matrix td:not(:first-child) { width: 15.5%; }

@media (max-width: 900px) {
  .price-callout { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .pricing-matrix { font-size: 13px; }
  .pricing-matrix thead th, .pricing-matrix tbody th, .pricing-matrix tbody td { padding: 10px 8px; }
  .pricing-matrix th:nth-child(1), .pricing-matrix td:nth-child(1) { width: 40%; }
}

/* Docs layout */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.docs-nav { position: sticky; top: 96px; align-self: start; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.docs-nav a {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  border-bottom: 1px dashed transparent;
}
.docs-nav a:hover { color: var(--accent); }
.docs-nav a[data-active="true"] {
  color: var(--accent-deep);
  font-weight: 500;
}
.docs-num { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.docs-nav a[data-active="true"] .docs-num { color: var(--accent); }

.docs-aside-card {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-2);
}

.docs-content { display: flex; flex-direction: column; gap: 80px; max-width: 72ch; }
.docs-section { scroll-margin-top: 96px; }
.docs-section-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
}
.docs-content p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; }
.docs-content ul.docs-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.docs-content ul.docs-list li {
  padding-left: 22px; position: relative; font-size: 15.5px; line-height: 1.6;
}
.docs-content ul.docs-list li::before {
  content: "·"; position: absolute; left: 4px; color: var(--accent);
  font-weight: 700; font-size: 22px; line-height: 1; top: 0;
}
.docs-content b { color: var(--ink); font-weight: 600; }

.docs-table { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.docs-row {
  display: grid; grid-template-columns: 1.4fr 1fr 2fr; gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  background: var(--paper);
}
.docs-row:last-child { border-bottom: none; }

@media (max-width: 900px) {
  .step, .docs-layout, .price-fine-grid, .docs-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .docs-nav { position: static; }
}

/* ============================================================
   /security page — receipts tables, contrast grid, doc cells
   Added 2026-05-24 (Wave 2)
   ============================================================ */

.receipts-table-wrap {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.receipts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.receipts-table thead th {
  text-align: left;
  background: var(--paper-2);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.receipts-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}
.receipts-table tbody tr:last-child td { border-bottom: none; }
.receipts-table tbody tr:hover { background: var(--paper-2); }
.receipts-table tbody td:first-child { width: 22%; color: var(--ink); }
.receipts-table tbody td:nth-child(2) { color: var(--ink-2); }
.receipts-table .receipt-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  width: 1%;
}

.receipts-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.receipts-contrast-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.receipts-contrast-cell .contrast-tool {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.receipts-contrast-cell .contrast-gate {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.receipts-contrast-cell .contrast-vs {
  color: var(--accent-deep);
  font-size: 14px;
  line-height: 1.6;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}

.receipts-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.receipts-doc-cell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.receipts-doc-cell:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.receipts-doc-cell .doc-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.receipts-doc-cell p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 6px 0 0;
}
.receipts-doc-cell-pending {
  background: var(--paper-2);
  border-style: dashed;
}
.receipts-doc-cell-pending:hover { transform: none; border-color: var(--rule); }

@media (max-width: 900px) {
  .receipts-contrast-grid { grid-template-columns: 1fr; }
  .receipts-docs-grid { grid-template-columns: 1fr; }
  .receipts-table { font-size: 13px; }
  .receipts-table thead th, .receipts-table tbody td { padding: 12px; }
  .receipts-table tbody td:first-child { width: auto; }
  .receipts-table .receipt-source { white-space: normal; }
}

/* ============================================================
   /about page — stats / clients / services / founder
   ============================================================ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.about-stat {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-align: center;
}
.about-stat-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.about-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.about-clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.about-client-cell {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.about-client-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}
.about-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.about-service-cell {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.about-founder {
  margin-top: 32px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ============================================================
   /onpath-qa-bundle page — fit cards / includes sections / pricing card
   ============================================================ */
.bundle-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.bundle-fit-cell {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.bundle-fit-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
  font-weight: 600;
}
.bundle-fit-cell h3 { margin-top: 4px; margin-bottom: 12px; }
.bundle-fit-cell p { font-size: 14.5px; line-height: 1.6; margin: 0; }

.bundle-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.bundle-include-section {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.bundle-include-section h3 { margin: 0 0 16px; color: var(--accent-deep); }
.bundle-include-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bundle-include-section li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.bundle-include-section li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.bundle-pricing-card {
  margin-top: 32px;
  padding: 48px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}

/* ============================================================
   /ai-loop page — loop steps / MCP configs / stats / backstop
   ============================================================ */
.ai-loop-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.ai-loop-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  align-items: start;
}
.ai-loop-num {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

.ai-loop-mcp-configs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.ai-loop-mcp-cell {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.ai-loop-mcp-cell h3 { margin: 0 0 12px; }
.ai-loop-mcp-cell .code-block {
  font-size: 11.5px;
  line-height: 1.5;
}

.ai-loop-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.ai-loop-stat {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.ai-loop-stat-num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--accent-deep);
}
.ai-loop-stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 14px;
}
.ai-loop-stat-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.ai-loop-stat-source a { color: var(--accent); }

.ai-loop-backstop {
  margin-top: 32px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ============================================================
   /integrations page — integration cards + not-yet grid
   ============================================================ */
.integrations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.integration-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.integration-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.integration-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.integration-card-direction {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.integration-card-summary {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.integrations-not-yet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.integrations-not-yet-cell {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}

/* ============================================================
   /changelog page — timeline layout
   ============================================================ */
.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 32px;
}
.changelog-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}
.changelog-date {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 8px;
  border-right: 1px solid var(--rule);
  padding-right: 24px;
  text-align: right;
}
.changelog-content { min-width: 0; }
.changelog-month-title {
  margin: 0 0 24px;
  color: var(--ink);
}
.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.changelog-list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.changelog-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}
.changelog-list strong { color: var(--ink); }

@media (max-width: 900px) {
  .about-stats, .ai-loop-stats { grid-template-columns: repeat(2, 1fr); }
  .about-clients, .about-services, .bundle-fit-grid, .bundle-includes,
  .ai-loop-mcp-configs, .integrations-not-yet-grid { grid-template-columns: 1fr; }
  .ai-loop-step { grid-template-columns: 1fr; gap: 12px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 12px; }
  .changelog-date { border-right: none; padding-right: 0; text-align: left; }
  .bundle-pricing-card { padding: 32px; }
}
@media (max-width: 600px) {
  .about-stats, .ai-loop-stats { grid-template-columns: 1fr; }
  .integration-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
