/* =========================================
   SOURCEPEPTIDECO — TRANSPARENCY PAGE CSS
   /transparency — chain-of-custody page
   ========================================= */

/* ── HERO ── */
.tp-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  padding-top: 80px;
}

.tp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tp-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) 40px;
  width: 100%;
}

.tp-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--bg);
  margin-bottom: 32px;
  max-width: 680px;
}

.tp-hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}

.tp-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.btn-primary-light {
  display: inline-block;
  background: var(--accent);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary-light:hover {
  background: #d4b45a;
  transform: translateY(-1px);
}

.btn-ghost-light {
  display: inline-block;
  border: 1px solid rgba(245, 240, 232, 0.3);
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost-light:hover {
  border-color: rgba(245, 240, 232, 0.6);
  color: var(--bg);
}

/* ── SECTION LABEL ── */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 72px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── CHAIN OF CUSTODY SECTION ── */
.chain-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.chain-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.chain-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Chain nodes */
.chain-node {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  position: relative;
}

.chain-node:first-child { border-radius: var(--border-radius) 0 0 var(--border-radius); }
.chain-node:last-child  { border-radius: 0 var(--border-radius) var(--border-radius) 0; }

.node-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}

.node-icon svg { width: 100%; height: 100%; }

.node-icon-accent {
  color: var(--forest);
  background: var(--accent);
  border-radius: 50%;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.node-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rule-heavy);
  margin-bottom: 10px;
}

.node-number-accent { color: var(--accent-dark); }

.chain-node h3.node-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1.3;
}

.node-you h3.node-title {
  color: var(--accent-dark);
}

.chain-node .node-body {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.node-test-list {
  list-style: none;
  margin-bottom: 14px;
}

.node-test-list li {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 8px;
}

.node-test-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

.node-lab-partner {
  font-size: 0.78rem;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 8px;
}

.node-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dark);
  padding-bottom: 1px;
  margin-top: 8px;
  transition: color 0.2s;
}

.node-link:hover { color: var(--forest); border-color: var(--forest); }

.node-coa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.node-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: background 0.2s;
}

.node-btn:hover { background: #d4b45a; }

.node-btn-ghost {
  display: inline-block;
  border: 1px solid var(--rule-heavy);
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: color 0.2s, border-color 0.2s;
}

.node-btn-ghost:hover { color: var(--forest); border-color: var(--fg); }

/* Node "You" accent box */
.node-you {
  background: var(--forest);
  border-color: var(--forest);
}

.node-you .node-body {
  color: rgba(245, 240, 232, 0.65);
}

/* Chain arrows */
.chain-arrow {
  display: flex;
  align-items: center;
  padding: 0 6px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 80px;
}

.chain-arrow svg { width: 24px; height: 24px; }

.arrow-mobile { display: none; }

/* ── MANUFACTURER CRITERIA ── */
.criteria-section {
  padding: var(--section-pad) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.criteria-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.criteria-header {
  margin-bottom: 64px;
}

.criteria-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 20px;
  margin-top: 12px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.criteria-item {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.criteria-check {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.criteria-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 10px;
}

.criteria-item p {
  font-size: 0.87rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ── LIVE EXAMPLES ── */
.live-examples-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.live-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.live-header {
  margin-bottom: 64px;
}

.live-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 20px;
  margin-top: 12px;
}

.live-header a {
  color: var(--accent-dark);
  font-weight: 500;
}

.live-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.live-example-card {
  background: var(--surface);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.example-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.example-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
}

.example-category {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.example-batch-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}

.example-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.example-batch {
  font-size: 0.78rem;
  color: var(--forest);
  font-weight: 500;
  text-align: right;
}

.example-value {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: right;
}

.mono { font-family: 'Courier New', monospace; letter-spacing: 0.02em; }

.example-results {
  margin-top: 16px;
  margin-bottom: 20px;
  flex: 1;
}

.example-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}

.result-test {
  font-size: 0.8rem;
  color: var(--fg-muted);
  flex: 1;
}

.result-val {
  font-size: 0.8rem;
  color: var(--forest);
  font-weight: 500;
}

.result-badge {
  font-size: 0.78rem;
  font-weight: 600;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.result-pass { color: #2a7a3a; }
.result-fail { color: #c0392b; }

.example-more-note {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: 8px;
}

.example-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: background 0.2s;
  margin-top: auto;
}

.example-cta:hover { background: #d4b45a; }

/* ── WHAT WE WON'T DO ── */
.wont-do-section {
  padding: var(--section-pad) 0;
  background: var(--forest);
}

.wont-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.wont-header {
  margin-bottom: 64px;
}

.wont-header .overline {
  color: rgba(199, 168, 75, 0.8);
}

.wont-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 20px;
  margin-top: 12px;
}

.wont-header .section-lede {
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 0;
}

.wont-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.wont-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 44px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wont-x {
  font-size: 1.2rem;
  color: rgba(199, 168, 75, 0.6);
  font-weight: 600;
  flex-shrink: 0;
  width: 28px;
  margin-top: 3px;
}

.wont-content h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 14px;
}

.wont-content p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.85;
  max-width: 720px;
}

/* ── FOOTER CTA ── */
.tp-footer-cta {
  padding: var(--section-pad) 0;
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
}

.tp-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 60px;
  align-items: center;
}

.tp-cta-divider {
  background: var(--rule-heavy);
  height: 100%;
  min-height: 160px;
}

.tp-cta-block .overline {
  margin-bottom: 14px;
}

.tp-cta-block h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 12px;
}

.tp-cta-block p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Active nav state */
.nav-active {
  color: var(--fg) !important;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .chain-flow {
    flex-direction: column;
    gap: 2px;
  }

  .chain-node {
    border-radius: var(--border-radius) !important;
  }

  .chain-arrow {
    justify-content: center;
    margin-top: 0;
    padding: 4px 0;
    transform: rotate(90deg);
  }

  .arrow-desktop { display: none; }
  .arrow-mobile { display: block; }

  .live-examples-grid {
    grid-template-columns: 1fr;
  }

  .tp-cta-inner {
    grid-template-columns: 1fr;
  }

  .tp-cta-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .tp-hero-content { padding: 60px 24px; }

  .chain-inner,
  .criteria-inner,
  .live-inner,
  .wont-inner,
  .tp-cta-inner {
    padding: 0 24px;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .tp-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .wont-item {
    gap: 16px;
  }
}
