/* "The Pipeline" — send anything → Anzen → structured fields */
.pipe-band { padding: 4px 0 80px; }
.pipe { position: relative; height: 320px; width: 100%; }

.pipe-track { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; z-index: 3; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 110px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 110px), transparent 100%); }
.pipe-tile { position: absolute; top: 50%; left: 2%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 11px; width: 152px; will-change: left, transform, opacity; }
.tl-card { position: relative; width: 152px; height: 188px; background: #fff; border: 1px solid var(--line-sage); border-radius: 12px; box-shadow: 0 16px 36px rgba(8,31,9,0.16); }
.tl-page { position: absolute; inset: 24px 20px 48px 20px; display: flex; flex-direction: column; gap: 11px; }
.tl-line { height: 7px; border-radius: 3px; background: #e2e7e0; }
.tl-line.s { width: 58%; }
.tl-bar { margin-top: auto; align-self: flex-end; width: 62%; height: 12px; border-radius: 3px; background: var(--brand-500); }
.tl-seal { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--brand-200); margin-bottom: 6px; }
.tl-table { position: absolute; inset: 24px 20px 48px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; align-content: start; }
.tl-table .tc-h { height: 13px; border-radius: 3px; background: var(--brand-300); }
.tl-table .tc-c { height: 11px; border-radius: 3px; background: #e9ede8; }
.tl-fmt { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .3px; color: var(--brand-500); background: var(--brand-100); border: 1px solid var(--brand-200); border-radius: 6px; padding: 4px 8px; }
.tl-fmt i { font-size: 13px; }
.tl-clip { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--brand-500); background: var(--brand-100); border: 1px solid var(--brand-200); border-radius: 50%; }
.tl-name { font-size: 13px; font-weight: 500; letter-spacing: -0.2px; color: var(--ink-2); white-space: nowrap; }

.pipe-line { position: absolute; left: 50%; top: 24px; bottom: 24px; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--line-sage) 0 7px, transparent 7px 14px); z-index: 1; }
.pipe-core { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--line-sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 32px rgba(8,31,9,0.16); z-index: 4; }
.pipe-core img, .pipe-core svg { width: 32px; height: auto; }
.pipe-core::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; transform: scale(0.85); }
@media (prefers-reduced-motion: no-preference) {
  .pipe-core.pulse::after { animation: pipePulse .6s ease-out; }
}
@keyframes pipePulse { 0% { opacity: 0.9; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.5); } }

.pipe-out { position: absolute; right: 1%; top: 50%; transform: translateY(-50%); width: 300px; display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.pipe-field { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line-sage); border-radius: 9px; padding: 11px 15px; box-shadow: 0 10px 24px rgba(8,31,9,0.10); opacity: 0; transform: translateX(-14px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.2,.5,1); }
.pipe-field.in { opacity: 1; transform: translateX(0) scale(1); }
.pf-k { font-family: var(--mono); font-size: 12px; color: var(--brand-300); }
.pf-v { font-size: 13px; font-weight: 500; color: var(--ink); }

@media (max-width: 980px) {
  .pipe { height: 280px; }
  .pipe-out { width: 220px; }
}
@media (max-width: 640px) {
  .pipe-band { padding: 4px 0 56px; }
  .pipe { height: 580px; }
  .pipe-track { top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 50%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 84px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 84px), transparent 100%); }
  .pipe-tile { left: 50%; top: 6%; width: 132px; }
  .tl-card { width: 132px; height: 158px; }
  .tl-page, .tl-table { inset: 18px 16px 40px 16px; }
  .pipe-line { left: 24px; right: 24px; top: 50%; bottom: auto; width: auto; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(to right, var(--line-sage) 0 7px, transparent 7px 14px); }
  .pipe-out { left: 50%; right: auto; top: 58%; bottom: auto; transform: translateX(-50%); width: min(320px, 88%); }
}
@media (prefers-reduced-motion: reduce) {
  .pipe-field { transition: opacity .3s ease; }
}
