/* ── WORKFLOW DETAIL PAGES ── */

/* Hero */
.workflow-hero {
  background: var(--steel-blue);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.workflow-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 50%, rgba(201,168,76,0.09) 0%, transparent 70%),
    linear-gradient(rgba(214,224,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,224,240,0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.workflow-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: center;
}

.workflow-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workflow-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.workflow-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.workflow-hero-sub {
  font-size: 1.0625rem;
  color: var(--light-steel-blue);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.workflow-hero-desc {
  font-size: 0.9375rem;
  color: rgba(214,224,240,0.7);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.workflow-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.workflow-hero-img {
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  width: 100%;
  display: block;
  border: 1px solid rgba(214,224,240,0.1);
}

/* ── Problem Section ── */
.problem-section { background: var(--white); }

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.problem-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.problem-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--steel-blue);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.problem-body {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.problem-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
}

.problem-list-icon {
  width: 20px;
  height: 20px;
  background: #FEE2E2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.6rem;
  color: #DC2626;
  font-weight: 900;
}

.problem-list-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.problem-close {
  font-size: 0.9375rem;
  color: var(--steel-blue);
  line-height: 1.8;
  font-weight: 500;
  padding: 1rem 1.25rem;
  background: var(--light-gold);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Problem visual */
.problem-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.problem-visual-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31,56,100,0.1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pvc-header {
  background: var(--steel-blue);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--light-steel-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pvc-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.pvc-status--bad { background: #FEE2E2; color: #DC2626; }
.pvc-status--good { background: #D1FAE5; color: #065F46; }

.pvc-body { padding: 1rem; }

.pvc-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 3px;
}

.pvc-row--head {
  background: var(--light-steel-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--steel-blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pvc-row--alt { background: var(--light-gray); }

.pvc-row--total {
  background: var(--light-gold);
  font-family: var(--font-display);
  font-weight: 700;
  border-top: 2px solid var(--gold);
  margin-top: 0.25rem;
}

.pvc-pos { color: #065F46; font-weight: 600; }
.pvc-neg { color: #DC2626; font-weight: 700; }
.pvc-warn { color: #D97706; font-weight: 600; }

/* ── Workflow Section ── */
.workflow-section { background: var(--light-gray); }

.workflow-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.flow-step-label {
  background: var(--steel-blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  padding: 0 0.1rem;
}

.workflow-desc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.wdb-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(31,56,100,0.08);
  box-shadow: var(--shadow-sm);
}

.wdb-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--steel-blue);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wdb-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Custom Section ── */
.custom-section { background: var(--white); }

.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.custom-body {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.custom-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.custom-list-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--steel-blue);
  font-weight: 600;
  font-family: var(--font-display);
}

.custom-list-item::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
  flex-shrink: 0;
}

.custom-close {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 1.25rem 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--steel-blue);
}

.custom-close strong { color: var(--steel-blue); }

/* Custom visual */
.custom-visual {
  background: var(--steel-blue);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.custom-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(214,224,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,224,240,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.custom-visual-inner { position: relative; z-index: 1; }

.custom-tag-heading {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.custom-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(214,224,240,0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--light-steel-blue);
  letter-spacing: 0.03em;
}

.custom-tag--gold {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
}

/* ── CTA ── */
.workflow-cta {
  background: var(--steel-blue);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.workflow-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(201,168,76,0.12) 0%, transparent 70%);
}

.workflow-cta .container { position: relative; }

.workflow-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.875rem;
}

.workflow-cta-sub {
  color: var(--light-steel-blue);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.workflow-cta-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(214,224,240,0.55);
  font-family: var(--font-serif);
  font-style: italic;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .workflow-hero .container { grid-template-columns: 1fr; }
  .workflow-hero-img { display: none; }
  .problem-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-visual { position: static; }
  .workflow-desc-block { grid-template-columns: 1fr; }
  .custom-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .custom-visual { display: none; }
  .custom-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .workflow-flow { gap: 0.2rem; }
  .flow-step-label { font-size: 0.62rem; padding: 0.4rem 0.6rem; }
}
