/* ===== WAVE 6 SECTIONS — ghost-ownership + prompt-to-packet ===== */

/* ===== GHOST OWNERSHIP — 3-Schritt-Flow ===== */

#ghost-ownership {
  padding: 80px 24px 40px;   /* bottom reduced — caption translateY does the rest */
  background: #0D1117;
  text-align: center;
  position: relative;
  z-index: 2;                /* render above .section-statement stacking context */
}

.go-heading {
  margin-bottom: 12px;
}

.go-sub {
  font-size: 15px;
  color: #8B949E;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Horizontal 3-step row */
.go-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}

/* Single step card */
.go-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #30363D;
  background: #161B22;
  min-width: 180px;
  max-width: 260px;
  transition: border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  opacity: 0.45;
}

.go-step--active {
  border-color: #00C9A7;
  background: #161B22;
  opacity: 1;
  box-shadow: 0 0 16px #00C9A733;
}

.go-step--done {
  opacity: 0.7;
  border-color: #30363D;
}

.go-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.go-step-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.go-step-label {
  font-size: 13px;
  font-weight: 600;
  color: #E6EDF3;
  line-height: 1.3;
}

.go-step-sub {
  font-size: 11px;
  color: #8B949E;
  margin-top: 4px;
  line-height: 1.5;
  word-break: break-word;
}

/* Arrow connector */
.go-arrow {
  font-size: 20px;
  color: #30363D;
  padding: 0 8px;
  flex-shrink: 0;
}

.go-caption {
  display: inline-block;
  background: #0D1117;
  border-radius: 100px;
  padding: 0.65rem 2rem;
  border: 1px solid #30363D;
  box-shadow: 0 4px 28px rgba(0,0,0,0.65);
  font-size: 1rem;
  color: #BA7517;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 36px;
  position: relative;
  transform: translateY(50%);   /* half extends into the green stripe */
  z-index: 10;
}

/* Mobile: stack steps vertically */
@media (max-width: 600px) {
  .go-stage { flex-direction: column; gap: 4px; }
  .go-arrow { transform: rotate(90deg); padding: 2px 0; }
  .go-step  { width: 100%; max-width: 320px; }
}


/* ===== PROMPT-TO-PACKET GALLERY ===== */

#prompt-to-packet {
  padding: 80px 24px;
  background: #0D1117;
}

.ptp-caption {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #E6EDF3;
  font-style: normal;
  margin-bottom: 10px;
}

.ptp-clarification {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #BA7517;
  font-style: normal;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal scroll-snap track */
.ptp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 16px;
  /* Hide scrollbar visually but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: #30363D #0D1117;
  -webkit-overflow-scrolling: touch;
}

.ptp-track::-webkit-scrollbar {
  height: 4px;
}
.ptp-track::-webkit-scrollbar-track {
  background: #0D1117;
}
.ptp-track::-webkit-scrollbar-thumb {
  background: #30363D;
  border-radius: 2px;
}

/* Individual card — 440px min so compound German words don't wrap */
.ptp-card {
  min-width: 440px;
  max-width: 480px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease, border-color 0.22s ease;
}

.ptp-card:hover {
  border-color: rgba(15,110,86,0.5);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 16px rgba(15,110,86,0.10);
}

/* Left column — client quote */
.ptp-quote-col {
  display: flex;
  align-items: center;
}

.ptp-quote {
  font-size: 13px;
  font-style: italic;
  color: #F59E0B;
  line-height: 1.6;
}

/* Right column — data card */
.ptp-data-col {
  background: #0D1117;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptp-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8B949E;
  margin-bottom: 4px;
}

/* Tags container */
.ptp-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Node/Edge tags — no forced word-break (cards are wide enough) */
.ptp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: transparent;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clarification note below PTP gallery */
.ptp-clarification {
  text-align: center;
  font-size: 12px;
  color: #6E7681;
  font-style: italic;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ptp-edge-tag {
  color: #8B949E;
}

/* Gate dot — Governance signal indicator */
.ptp-gate-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* CTA wrap */
.ptp-cta-wrap {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ptp-cta-text {
  font-size: 15px;
  color: #E6EDF3;
  font-weight: 500;
}

.ptp-cta-btn {
  background: #00C9A7;
  color: #0D1117;
}

.ptp-cta-btn:hover {
  background: #00b396;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ptp-track {
    overflow-x: scroll;
  }

  /* On mobile: card snaps to full viewport width */
  .ptp-card {
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    grid-template-columns: 1fr;
    white-space: normal;
  }

  /* Re-enable wrapping inside tags on narrow screens */
  .ptp-tag {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .ptp-quote-col {
    border-bottom: 1px solid #30363D;
    padding-bottom: 12px;
  }
}
